9 - Introduction to Hypothesis Testing
9 - Introduction to Hypothesis Testing
HYPOTHESIS TESTING
Prepared by: Danah A. Mama, RPm
HYPOTHESIS
• A claim or premise that we want to test
• To test hypothesis, we make use of
INFERENTIAL STATISTICS—where we
study a sample and use the result to
generalize an entire population
NULL HYPOTHESIS ()
• The hypothesis that an apparent effect is due to chance;
read as “H-naught”; contains equality
• Currently accepted (or established) value for a parameter
• If we’re looking for the difference:
H0: = 5g
Ha: 5g
SIGNIFICANCE LEVEL
CRITICAL VALUES
P-VALUES
CRITICAL VALUES, P-VALUES, & SIGNIFICANCE
LEVEL
• When we say that we Reject , this implies that the null hypothesis is false
if the probability value is less than 0.05 (or any set )
• The probability value that is less than 0.05 is called the ALPHA LEVEL or
SIGNIFICANCE LEVEL “”
to 𝜶
area under the tail that is exactly equal
Where:
• mean of the first sample
• mean of the second sample
• number of items in the first sample
• number of items in the second sample
• population standard deviation
CRITICAL VALUES, P-VALUES, & SIGNIFICANCE
LEVEL
• When is rejected, the effect is “statistically
significant”
• Note:
• Significant Important
• It only means that you can have confidence that the effect is
not exactly zero (0).
• Statistical Significance Practical Significance
• It just means that the effect is real and not due to chance
alone.
STEPS IN HYPOTHESIS TESTING
❶ STATE THE HYPOTHESIS
• Your hypotheses are the first thing you need to lay out.
Otherwise, there is nothing to test! You have to state the null
hypothesis (which is what we test) and the alternative
hypothesis (which is what we expect).
• These should be stated mathematically as they were presented
above AND in words, explaining in normal English what each
one means in terms of the research question.
STEPS IN HYPOTHESIS TESTING
❷ FIND THE CRITICAL VALUES
Next, we formally lay out the criteria we will use to test our
hypotheses. There are two pieces of information that inform our
critical values:
• α, which determines how much of the area under the curve
composes our rejection region, and
• the directionality of the test, which determines where the
region will be.
STEPS IN HYPOTHESIS TESTING
❸ COMPUTE THE TEST STATISTIC
Note: In this case, we don’t know if the bags will be too full or
not full enough, so we do a two-tailed alternative hypothesis
that there is a difference.
Step 2: Find the Critical Values
• α = 0.05
• Direction: Two-tailed test
z* = ±1.96
Step 3: Calculate the Test Statistic
• Let’s say that the manager collects data and finds that the
average weight of this employee’s popcorn bags is X ̅ = 7.75
cups.
Step 4: Make the Decision
• Compare the obtained z value
to the critical value: in terms
of absolute value, -2.50 > -
1.96, so we reject the null
hypothesis
Conclusion:
Reject H0. Based on the
sample of 25 bags, we can
conclude that the average
popcorn bag from this
employee is smaller (X ̅ = 7.75
cups) than the average weight
of popcorn bags at this movie
theater, z = 2.50, p < 0.05.
Step 4: Make the Decision
Reject the null hypothesis. Based on the sample
of 25 bags, we can conclude that the average
popcorn bag from this employee is smaller (X ̅ =
7.75 cups) than the average weight of popcorn
bags at this movie theater, z = 2.50, p < 0.05.
• Decision
• Average sample size we calculated
• Conclusion
• Z-statistic
• P-value (unknown exact value, but we can assume that it must be
less than alpha, since we rejected the null)
Step 5: Effect Size
Proper Interpretation:
The probability value is the probability of a result as extreme or
more extreme given that the null hypothesis is true. It is the
probability of the data given the null hypothesis. It is not the
probability that the null hypothesis is false.
MISCONCEPTIONS IN HYPOTHESIS TESTING
Proper Interpretation:
A low probability value indicates that the sample outcome (or
one more extreme) would be very unlikely if the null hypothesis
were true. A low probability value can occur with small effect
sizes, particularly if the sample size is large.
MISCONCEPTIONS IN HYPOTHESIS TESTING
Proper Interpretation:
A non-significant outcome means that the data do not
conclusively demonstrate that the null hypothesis is false.