Hypothesis Testing (Extended)
Hypothesis Testing (Extended Treatment)
Section titled “Hypothesis Testing (Extended Treatment)”This document provides a rigorous treatment of hypothesis testing methodology, including null and Alternative hypotheses, significance levels, Type I and II errors, one-tailed and two-tailed tests, And critical regions.
1. The Hypothesis Testing Framework
Section titled “1. The Hypothesis Testing Framework”1.1 Null and alternative hypotheses
Section titled “1.1 Null and alternative hypotheses”The null hypothesis is the default assumption — a statement of “no effect” or “no difference.” It is assumed to be true unless the evidence is sufficiently compelling to reject It.
The alternative hypothesis specifies what we believe might be true instead. It is only Accepted if the evidence against is strong enough.
1.2 Test statistic
Section titled “1.2 Test statistic”A test statistic is a function of the sample data whose distribution is known under . Common test statistics include sample proportions, sample means, and sample correlation Coefficients.
1.3 Significance level
Section titled “1.3 Significance level”The significance level is the maximum probability of rejecting when it is Actually true. Common values are (5%), (1%), and (10%).
1.4 The decision rule
Section titled “1.4 The decision rule”- Assume is true.
- Calculate the probability of obtaining a test statistic at least as extreme as the observed value, assuming .
- If this probability (the -value) is less than Reject . Otherwise, do not reject .
1.5 Critical value approach
Section titled “1.5 Critical value approach”Alternatively, find the critical value such that (for an upper-tailed test). If the observed test statistic exceeds Reject .
1.6 Interpreting the conclusion
Section titled “1.6 Interpreting the conclusion”- “Reject ”: there is sufficient evidence at the significance level to support .
- “Do not reject ”: there is insufficient evidence to reject . This does not mean is true.
2. Type I and Type II Errors
Section titled “2. Type I and Type II Errors”2.1 Definitions
Section titled “2.1 Definitions”| Decision | true | false |
|---|---|---|
| Reject | Type I error | Correct decision |
| Do not reject | Correct decision | Type II error |
Type I error: Rejecting when it is true (false positive).
Type II error: Failing to reject when it is false (false negative).
2.2 The power of a test
Section titled “2.2 The power of a test”The power of a test is the probability of correctly rejecting when it is false:
The power depends on:
- The significance level (increasing increases power).
- The sample size (increasing increases power).
- The true value of the parameter (the further from The greater the power).
2.3 Worked example
Section titled “2.3 Worked example”Problem. A machine produces bolts with mean length . The standard deviation is . A sample of 16 bolts has mean . Test at the 5% significance Level whether the mean length has changed.
, (two-tailed).
Under : .
Critical values: such that .
for a two-tailed 5% test.
Critical region: or .
Test statistic: .
Since We do not reject . There is insufficient evidence at the 5% level To conclude that the mean length has changed.
2.4 Finding the probability of Type II error
Section titled “2.4 Finding the probability of Type II error”Continuing the example above, suppose the true mean is .
Power .
3. One-Tailed and Two-Tailed Tests
Section titled “3. One-Tailed and Two-Tailed Tests”3.1 One-tailed tests
Section titled “3.1 One-tailed tests”A one-tailed test is used when specifies a direction:
- (upper-tailed): critical region in the upper tail.
- (lower-tailed): critical region in the lower tail.
The entire significance level is in one tail, making it easier to detect an effect in the Specified direction.
3.2 Two-tailed tests
Section titled “3.2 Two-tailed tests”A two-tailed test is used when does not specify a direction:
- : critical region split between both tails, with in each.
3.3 Choosing one-tailed vs two-tailed
Section titled “3.3 Choosing one-tailed vs two-tailed”- Use a two-tailed test unless there is a strong prior reason to expect a specific direction.
- A one-tailed test has greater power in the specified direction but cannot detect effects in the opposite direction.
- The choice must be made before examining the data.
3.4 Critical values table
Section titled “3.4 Critical values table”For a standard normal test at significance level :
| Test type | |||
|---|---|---|---|
| Two-tailed | |||
| Upper-tailed | |||
| Lower-tailed |
4. Hypothesis Tests for the Binomial Proportion
Section titled “4. Hypothesis Tests for the Binomial Proportion”4.1 Setting up the test
Section titled “4.1 Setting up the test”To test whether a population proportion equals a specified value :
Under If is the number of successes in trials, then .
4.2 Worked example: binomial test
Section titled “4.2 Worked example: binomial test”Problem. A coin is tossed 20 times and lands heads 15 times. Test at the 5% significance level Whether the coin is biased.
, (two-tailed).
Under : .
For a two-tailed test at 5%, we need the critical region in each tail to have probability .
Lower tail: .
. So (critical region: ).
Upper tail: .
. So (critical region: ).
Since falls in the critical region, we reject . There is sufficient evidence at the 5% level to conclude the coin is biased.
4.3 Finding the actual significance level
Section titled “4.3 Finding the actual significance level”The actual significance level is the probability of being in the critical region under :
This is approximately 4.14%, which is the closest we can get to 5% with a discrete distribution.
Intuition
Section titled “Intuition”Mathematics is the study of structure, quantity, and change. Algebra provides symbols for unknown quantities, geometry describes spatial relationships, and calculus captures motion and growth. Together, these branches form a powerful toolkit for solving problems that range from calculating areas to predicting population dynamics. Mathematical literacy is essential for science, technology, and informed citizenship.