Testing of Hypothesis
Testing of Hypothesis
Hypothesis
Presented by: Group 7
What is Hypothesis
Hypothesis
Hypothesisshould
shouldbe
beamenable
amenableto
totesting
testingwithin
withinaa
reasonable
reasonabletime.
time.
Points to be considered while formulating
Hypothesis
Hypothesisshould
Hypothesis shouldbe
bestated
statedasasfar
faras
aspossible
possibleinin
mostsimple
most simpleterms
termssosothat
thatthe
thesame
sameisiseasily
easily
understandableby
understandable byall
allconcerned.
concerned.
Hypothesis
Hypothesisshould
shouldbe
beamenable
amenableto
totesting
testingwithin
withinaa
reasonable
reasonabletime.
time.
This is the variable that you, as the This is the variable that you measure or
researcher, change or manipulate in an observe to see how it responds to changes
experiment. It's what you think will have an in the independent variable. It's the
effect on the dependent variable. In simpler outcome or result you're interested in, and it
terms, it's the cause or factor you're testing. depends on what you do to the independent
variable. In simpler terms, it's the effect or
response you're studying.
Scenario: Investigating how the amount of water
affects plant growth.
Research Hypothesis
A research hypothesis is a tentative solution for
the problem being investigated. In research, the
researcher determines whether or not their
supposition can be supported through scientific
investigation.
Example
Higher levels of physical exercise (independent variable) will result in lower
body mass index (BMI) scores (dependent variable) among adults
(negative relationship)
Types of Hypothesis
Statistical Hypothesis
Statistical hypothesis is a statement about the
population which we want to verify on the basis of
sample taken from population. Statistical
hypothesis is stated in such a way that they may be
evaluated by appropriate statistical techniques
Example :
Increasing the amount of fertilizer (independent variable) will result in higher
crop yields (dependent variable) in the experimental field (positive
relationship)."
Types of Statistical Hypothesis
Alternative Hypothesis
(H1 or Ha)
α β
Type 1 error Type II error
To reject the null hypothesis when it is true
is to make what is known as a type I error. If we do not reject the null hypothesis when in
The level at which a result is declared fact there is a difference between the groups,
significant is known as the type I error rate, we make what is known as a type II error. The
often denoted by α. type II error rate is often denoted as β.
EXAMPLE SCENARIO
You're responsible for airport security, and
you're using a metal detector to screen
Type 1 Error (False Positive):
passengers for prohibited items like weapons
This occurs when the metal detector falsely
or dangerous objects before they board a
alarms, and you detain a passenger, suspecting
flight.
they have prohibited items when they do not. It's
like accusing an innocent person of wrongdoing.
Decision
Particulars
Accept H0 Reject H0
Type I error
H0 (True) Correct Decision
(α error)
Type II error
H0 (False) Correct decision
(β error)
The Level of Significance :
The level of significance denoted by alpha or 𝛂 refers to the degree of
significance in which we accept or reject the null hypothesis.
100% accuracy is not possible in accepting or rejecting a hypothesis.
The level of significance is the maximum probability of committing a Type
1 Error.
In public health research, alpha is usually 0.01 or 1%.
The probability to commit type 1 error is 1 % and the probability
of the correct decision is 99%.
In social science, alpha is usually 0.05 or 5 %.
The probability to commit type 1 error is 5 % and the
probability of the correct decision is 95%.
And 0.10 or 10% in other studies.
The probability to commit type 1 error is 10 % and
the probability of the correct decision is 90%.
The Level of Significance :
In symbol, it is written as
𝛂 = 0.01 (1 %)
𝛂 = 0.05 (5 %)
𝛂 = 0.10 (10 %)
𝛂/2 = 0.005
𝛂 /2= 0.025
𝛂 /2= 0.05
1
Example:
In symbol, it is written as:
Determine the value of 𝛂 or 𝛂 /2 based on the alternative
𝛂 = 0.01 hypothesis in decimal form.
𝛂 = 0.05 1. Maria uses 5% level of significance in proving that there
𝛂 = 0.10 is no significant change in the average number of
enrollees in the 10 sections for the last two years. It
If the alternative hypothesis means that the chance that the null hypothesis (𝐻𝑜)
used ≠, then alpha will be would be rejected when it is true is 5%
divided by 2.
𝛂/2 = 0.005
𝛂 /2= 0.025
𝛂 /2= 0.05
Right-tailed
>
greater than, above, higher than, ≠ not equal, different from, changed
from, not the same as
longer than, bigger than, increased
𝐻𝑎: 𝜇 > 𝜇0
Left-tailed
The mean height of grade 12 student is less The standard deviation of their height is not
than 66 inches. equal to 5 inches.
The proportion of senior male students' height Male Grade 7 and Grade 12 students differ in
is significantly higher than that of senior height on average.
female students.
Null Hypothesis (H0): There is no significant difference in the wages of men and
women in the industry (μ_men = μ_women).
Alternative Hypothesis (Ha): There is a significant difference in the wages of men and
women in the industry (μ_men ≠ μ_women).
Decision rule or Test of Hypothesis :
Getting the P-Value
significance level
α = 0.05.
If the p-value is less than or equal to α (0.05), you would reject the null hypothesis,
Decision rule or Test of Hypothesis :
Getting the P-Value
Suppose you are interested in investigating whether there is a significant difference in
the wages of men and women in a particular industry. You collect data on the annual
wages of a random sample of 30 men and 30 women in this industry.
Null Hypothesis (H0): There is no significant difference in the wages of men and women in the industry (μ_men = μ_women).
Alternative Hypothesis (Ha): There is a significant difference in the wages of men and women in the industry (μ_men ≠ μ_women).
Normality
Dependent variable is in interval scale
Equal variance between groups
Independence
https://www.youtube.com/watch?v=6LRGhWEyUIQ&t=11s&ab_channel=LouisMontano
IMPORTANT
PARAMETRIC TESTS
IMPORTANT PARAMETRIC TESTS
1 Z- Test
2 T- Test
3 F- Test
https://www.cuemath.com/data/z-test/
T- TEST
F test is a statistical test that is used in hypothesis testing to check whether the variances
of two populations or two samples are equal or not. In an f test, the data follows an f
distribution. This test uses the f statistic to compare two variances by dividing them. An f
test can either be one-tailed or two-tailed depending upon the parameters of the
problem.
https://www.cuemath.com/data/f-test/
Z-TEST EXAMPLE
Step 1 Step 2
Step 3
Step 4
T-TEST EXAMPLE
Step 1 Step 2
Step 3
Step 4
Procedure of Hypothesis
Testing
Procedure for hypothesis testing refers
to all those steps that we undertake for
making a choice between the two
actions i.e., rejection and acceptance of
a null hypothesis.
Procedure of Hypothesis Testing
Making a formal
statement
The step consists in
1
making a formal
statement of the null
hypothesis (H0) and also
of the alternative
hypothesis (Ha or H1).
This means that
hypotheses should be
clearly stated,
considering the nature of
the research problem.
Example:
Imagine we work for a chocolate company and want to test if a new recipe makes our
chocolate bars taste better.
Null Hypothesis (H0): The new recipe does not change the taste of the chocolate
bars (μ_new = μ_old).
Alternative Hypothesis (Ha): The new recipe improves the taste of the chocolate
bars (μ_new > μ_old).
Procedure of Hypothesis Testing
1
the research problem.
Selecting a
significance level
The hypotheses are tested 2
on a pre-determined level
of significance and as
such the same should be
specified. Generally, in
practice, either 5% level or
1% level is adopted for the
purpose.
Example:
Light Bulb Factory
Null Hypothesis (H0): The new manufacturing process has no effect on bulb
longevity; it's the same as the old process (μ_new = μ_old).
Alternative Hypothesis (Ha): The new manufacturing process results in longer-
lasting bulbs (μ_new > μ_old).
The factory sets α at 10% (0.10). This means they're okay with a 10% chance of
being wrong.
To say the new process improves bulb longevity, they need strong evidence (p-
value < 0.10).
Procedure of Hypothesis Testing
1
the research problem.
After deciding the level of
significance, the next
Selecting a significance level step in hypothesis testing
The hypotheses are tested on a pre-
determined level of significance and as
such the same should be specified.
2 is to determine the
appropriate sampling
Generally, in practice, either 5% level or 1% distribution. The choice
3
level is adopted for the purpose.
generally remains
between normal
distribution and the
t-distribution.
Procedure of Hypothesis Testing
2
The hypotheses are tested on a pre-
random sample(s) and
determined level of significance and as compute an appropriate
such the same should be specified.
Generally, in practice, either 5% level or 1% value from the sample data
3 4
level is adopted for the purpose. concerning the test statistic
utilizing the relevant
Deciding the distribution to use distribution. In other words,
: After deciding the level of significance, the next step draw a sample to furnish
in hypothesis testing is to determine the appropriate
sampling distribution. The choice generally remains empirical data.
between normal distribution and the t-distribution.
Step 4: Selecting a random sample and computing an appropriate value
1
the research problem.
to furnish empirical data.
Comparing the
Making a formal statement
probability and Decision
The step consists in making a formal statement of
making
the null hypothesis (H0) and also of the alternative
hypothesis (Ha or H1). This means that hypotheses Yet another step consists in
should be clearly stated, considering the nature of
comparing the probability
1 6
the research problem.
thus calculated with the
specified value for α, the
Selecting a significance level significance level. If the
The hypotheses are tested on a pre-
determined level of significance and as
such the same should be specified.
2 5 calculated probability is
equal to or smaller than the α
Generally, in practice, either 5% level or 1% value in case of one-tailed
3 4
level is adopted for the purpose.
test (and α /2 in case of two-
tailed test), then reject the
Deciding the distribution to use null hypothesis (i.e., accept
: After deciding the level of significance, the next step the alternative hypothesis),
in hypothesis testing is to determine the appropriate
sampling distribution. The choice generally remains but if the calculated
between normal distribution and the t-distribution.
probability is greater, then
accept the null hypothesis.
Interpretation of the p-value:
A small p-value (typically less than your chosen significance level, α) suggests that
your observed result is unlikely to occur purely by chance if H0 is true. This indicates
strong evidence against H0.
A large p-value suggests that your observed result is reasonably likely to happen
even if there's no real effect, so you don't have strong evidence against H0.
Decision Making:
Based on your chosen significance level (α), you make a decision:
If p ≤ α, you reject H0. You conclude that there's evidence for the effect or
difference you were testing (supporting Ha).
If p > α, you fail to reject H0. You don't have enough evidence to conclude that the
effect or difference exists.
6
relevant distribution. In other words, draw a sample
1
the research problem.
to furnish empirical data.
3 4
level is adopted for the purpose.