Hypothesis Testing
Hypothesis Testing
Hypothesis Testing
Himadri Mukherjee
Department of Mathematics
BITS PILANI K K Birla Goa Campus, Goa
Definition
A null hypothesis, Ho , is a hypothesis that is a prior belief. An
alternate hypothesis, Ha is a hypothesis that is contradictory to
the null hypothesis.
Acceptance and rejection of a hypothesis
Definition
A test statistics is a function of the sample data, which is used
to decide whether H0 should be rejected or not.
Hypothesis testing goals
H0 is true H0 is false
Accept H0 Correct decision Type-II error
Reject H0 Type-I error Correct decision
Errors in hypothesis testing
Definition
A p value for a test statistic is the probability of obtaining a
sample as contradictory to the null hypothesis as the sample
assuming the null hypothesis is true.
Significance level
Theorem
The probability of a Type-I error to take place is precisely the
significance level.
Theorem
The probability of committing a type-II error is denoted by β.
Definition
A critical region or a rejection region is the value of the test
statistic for which the null hypothesis is rejected.
Example 4.
Theorem
Let the population be a normal distribution with standard
deviation σ,
• H0 : µ = µ0 , Ha : µ 6= µ accept if (else reject)
σ
| X − µ0 |≤ zα/2 √
n
• H0 : µ ≤ µ0 , Ha : µ > µ0 , accept if (else reject)
σ
X − µ 0 ≤ zα √
n
• H0 : µ ≥ µ0 , Ha : µ < µ0 , accept if (else reject)
σ
X − µ0 ≥ −zα √
n
Continued