Hypothesis Test - 1
Hypothesis Test - 1
Outline
• Introduction
• Type I and Type II errors
• Power of a Test
• Rejection of Null Hypothesis
• Steps of Hypothesis Testing
• Hypothesis test for the mean (Large and Small
Sample)
Introduction
• There two types of statistical inferences, Estimation and
Hypothesis Testing.
• Hypothesis: A hypothesis is a claim (assumption) about one or
more population parameters.
– The population mean of monthly cell phone bill of
University students is: μ = Tk. 500.
– The average number of children in a family in Dhaka city is
equal to two; μ = 2.
• It is always about a population parameter, not about a sample
statistic.
• Sample evidence is used to assess the probability that the claim
about the population parameter is true.
Introduction
• Goal: Make statement(s) regarding unknown population
parameter based on sample data.
• Elements of a hypothesis test:
– Null hypothesis - Statement regarding the value(s) of unknown
parameter(s). (will always contain an equality).
– Alternative hypothesis - Statement contradictory to the null
hypothesis (will always contain an inequality).
– Test statistic - Quantity based on sample data and used to test
the null hypothesis (z or t statistic).
– Rejection region - Values of the test statistic for which we
reject the null in favor of the alternative hypothesis.
Introduction
Hypothesis Testing Process:
Assume the
population
mean age is 50.
(Null Hypothesis)
Population
The Sample
Mean is 20
No, not likely!
REJECT
Null Hypothesis Sample
Type I and II Errors
The size of α , the rejection region, affects the risk of making
different types of incorrect decisions.
Type I Error
α = P(Type I error) = P(reject H0 when H0 is true)
– Considered a serious type of error
– It is also called level of significance of the test
Type II Error
β =P(Type II error) = P(Fail to reject H0 when H0 is false)
• 1 – β = “Power”
= probability of avoiding a Type II error
1– β = P(reject H0 | H0 false)
Rejection of Null Hypothesis
There are two approach to decide whether or not null
hypothesis is rejected.
1. Rejection Region/Critical value Approach.
2. p- value approach
Rejection Region/Critical value Approach
• Divide the distribution into rejection and non-rejection
regions
• Rejection region(s) is designated by α , (level of
significance). Typical values are .01, .05, or .10.
• α is selected by the researcher at the beginning.
• α provides the critical value(s) of the test.
Rejection of Null Hypothesis
Rejection Region / critical value approach:
Level of significance = α Non-rejection region
Represents
H0: μ = 12 α /2 α /2 critical value
H1: μ ≠ 12
Two-tail test 0
H0: μ = 12
α
H1: μ < 12
Lower-tail test 0
Rejection of Null Hypothesis
Critical Value Approach:
or
OR
Steps to Hypothesis Testing
σ known σ unknown
(large sample) (small sample)
The test statistic is: The test statistic is:
Rejection Region:
Reject H0 if z > 2.33.
Test Statistic
Example (Small Sample):
Difference between Two Means
Test Statistic
Critical Value: