LU 3 incl answers
📚 LU 3_incl answers_copy.pdf
Brief overview
This document introduces the core principles and methodologies of hypothesis testing, a critical statistical tool for drawing conclusions from data. Understanding these concepts is essential for interpreting research and making data-driven decisions.
Key points
- Overview of the fundamental purpose and two main approaches to hypothesis testing.
- Step-by-step details of the traditional method for hypothesis testing.
- Explanation and interpretation of the p-value approach to hypothesis testing.
- Identification and distinction between Type I and Type II errors in hypothesis testing.
- Concepts of alpha, beta, and statistical power in the context of hypothesis testing.
1. Introduction to hypothesis testing
Hypothesis testing uses sample data to evaluate statements about unknown population parameters. It starts with an assumption about a population parameter, then uses sample data to see if there is evidence against this assumption.
We can prove something false but not necessarily true 2.
1.1 Logic of hypothesis testing
The core idea is to compare a sample statistic to a theoretical distribution based on an initial assumption about the population parameter. If the sample statistic is close to the center of the distribution, the assumption might be correct.
However, if the sample statistic falls in the tails (an "unusual outcome"), it suggests the original assumption may be wrong 3 4.
Unusual outcomes can occur due to:
- Incorrect sampling methodology.
- Pure chance.
- An incorrect initial assumption about the parameter.
Hypothesis testing focuses on identifying unusual outcomes to challenge the initial assumption 5.

1.2 The hypothesis testing process (traditional approach)
The traditional approach involves a structured five-step process.
- State hypotheses: Define the null hypothesis (H0) and the alternative hypothesis (H1).
- H0 is the neutral statement, assumed true, and always includes an equals sign.
- H1 is the statement to be tested and can be one-sided (left or right) or two-sided 6.
- Find the critical value: Determine the critical value(s) based on the significance level (α), typically 0.01, 0.05, or 0.1. These values define the rejection region(s).

- Calculate the test statistic: Compute a standardized value from the sample data. This value indicates where the sample statistic falls relative to the assumed distribution under H0 8.
Common test statistics include:
- One-sample z-test for a mean (when σ is known): z=σ/nxˉ−μ0.
- One-sample t-test for a mean (when σ is unknown): t=s/nxˉ−μ0 with df=n−1.
- One-sample z-test for a proportion: z=π0(1−π0)/np−π0 9.
- Make a decision: Compare the test statistic to the rejection region.
- If the test statistic falls within the rejection region, reject H0.
- If the test statistic falls outside the rejection region, fail to reject H0.
It's important to note that we never "accept" H0, only "fail to reject" it, as we cannot definitively prove it true 10.
- Reach a conclusion: Interpret the decision in the context of the original problem and H1.
- If H0 is rejected, there is sufficient evidence to support H1.
- If H0 is not rejected, there is insufficient evidence to support H1 11.
1.3 Critical values and rejection regions
Critical values are thresholds used to define the rejection region. The significance level (α) and the type of test (one-sided or two-sided) determine these values 7.
- For a one-sided left test with α=0.01, the critical value is typically negative.

- For a two-sided test, the rejection region is split between both tails, with α/2 in each tail.

- For t-tests, critical values depend on both α and degrees of freedom (df), calculated as n−1 16.
| Test Type | α Level | Critical Values | Distribution |
|---|---|---|---|
| One-sided Left | 0.01 | -2.327 | Normal (Z) |
| Two-sided | 0.05 | ±2.093 | t-distribution |
| One-sided Right | 0.10 | 1.282 | Normal (Z) |

1.4 Examples of hypothesis testing
Here are examples applying the traditional approach:
-
Example 1: Testing a new machine's speed
-
Problem: A new machine is claimed to be faster than the old one (mean time 1.8 minutes).
-
Sample: 36 reams, average time 1.6 minutes, standard deviation 0.55 minutes.
-
Test: One-sample Z-test, H0:μ=1.8, H1:μ<1.8. Significance level α=0.01 12.
-
Calculations: Critical value (one-sided left, α=0.01) ≈−2.327. Test statistic z=0.5/361.6−1.8=−2.4.
-
Decision: Test statistic (-2.4) is in the rejection region (< -2.327). Reject H0.
-
Conclusion: At 1% significance, there's evidence the new machine is faster 14.
-
Example 2: Sodium chloride concentration change
-
Problem: Is the mean sodium chloride concentration changing from the assumed 25 cm³/m³?
-
Sample: 20 samples, mean 23 cm³/m³, standard deviation 6.7 cm³/m³.
-
Test: One-sample t-test, H0:μ=25, H1:μ=25. Significance level α=0.05, df=19 15.
-
Calculations: Critical values (two-sided, α=0.05, df=19) ≈±2.093. Test statistic t=6.7/2023−25≈−1.335.
-
Decision: Test statistic (-1.335) is outside the rejection region (±2.093). Fail to reject H0.
-
Conclusion: At 5% significance, there's insufficient evidence that the concentration has changed 17.
-
Example 3: Worker interruptions
-
Problem: Manager suspects more than 75% of workers are interrupted by personal calls.
-
Sample: 200 workers, 158 reported interruptions.
-
Test: One-sample proportion Z-test, H0:π=0.75, H1:π>0.75. Significance level α=0.10 18.
-
Calculations: Sample proportion p=158/200=0.79. Critical value (one-sided right, α=0.10) ≈1.282. Test statistic z=0.75×0.25/2000.79−0.75≈1.306.
-
Decision: Test statistic (1.306) is in the rejection region (> 1.282). Reject H0.
-
Conclusion: At 10% significance, there's evidence that more than 75% of workers are interrupted 20.
🔑 Important: The traditional approach provides a clear decision rule by comparing a calculated test statistic to a predefined critical value which defines the rejection region.

🔑 Important: Hypothesis testing allows us to use sample data to make informed decisions about population parameters, but it's crucial to remember that failing to reject H0 does not prove it true.
2. The p-value approach to hypothesis testing
2.1 Understanding the p-value
- p-value: The probability that the test statistic will take on values as extreme as, or more extreme than, the observed test statistic, assuming the null hypothesis (H0) is true.
- It indicates how far the observed value is in the tail of the distribution.
- The p-value is also called the observed level of significance.
- It represents the smallest significance level (α) at which H0 can be rejected.
- A smaller p-value means stronger evidence against H0 and in favor of H1.
- This approach involves calculating the p-value and comparing it to various significance levels.
2.2 Steps in the p-value approach
The p-value approach follows similar steps to the traditional method, with a key difference in calculating and interpreting the p-value.
- Step 1: State the null (H0) and alternative (H1) hypotheses.
- Step 2: Calculate the test statistic.
- Step 3: Calculate the p-value.
- Step 4: Make a decision about H0 by comparing the p-value to α.
- Step 5: Reach a conclusion in terms of H1 or the strength of evidence 22.
2.3 Calculating the p-value
The calculation of the p-value depends on the form of the alternative hypothesis (H1). The p-value is the area in the tail(s) of the distribution that corresponds to the observed test statistic and the direction specified by H1.
2.3.1 One-sided tests
For a one-sided test, the p-value is the area in the tail beyond the calculated test statistic.
- Left-tailed test (H1:μ<μ0): p-value=P(Z<zcalc) 23. This is the size of the area less than the test statistic.

- Right-tailed test (H1:μ>μ0): p-value=P(Z>zcalc) 24. This is the size of the area greater than the test statistic.

2.3.2 Two-sided tests
For a two-sided test, the p-value is twice the area in the tail beyond the absolute value of the calculated test statistic.
- Two-sided test (H1:μ=μ0): p-value=2×P(Z>∣zcalc∣) 25. This is twice the area in the tail beyond the positive value of the test statistic or twice the area smaller than the negative value.

2.4 Decision making and conclusion
The decision to reject or fail to reject H0 is made by comparing the p-value to the chosen significance level (α).
-
Decision Rule:
-
If p-value<α: Reject H0 at the α level of significance.
-
If p-value>α: Fail to reject H0 at the α level of significance 26.
-
Interpreting the strength of evidence for H1: The p-value can also indicate the strength of evidence against H0.
| p-value Range | Evidence for H1 |
|---|---|
| 0<p-value<0.01 | Very strong |
| 0.01<p-value<0.05 | Strong |
| 0.05<p-value<0.10 | Moderate |
| 0.10<p-value<1.00 | Weak/no evidence |
| 27 |
The conclusion about H1 is then stated based on this interpretation.
2.5 Examples of p-value calculation and interpretation
Let's look at a few examples to illustrate the process.
-
Scenario 1: H1:μ<μ0 and zcalc=−0.4.
-
p-value=P(Z<−0.4)=0.3446.
-
Scenario 2: H1:μ>μ0 and zcalc=2.1.
-
p-value=P(Z>2.1)=1−P(Z<2.1)=1−0.9821=0.0179.
-
Scenario 3: H1:μ=μ0 and zcalc=−0.4.
-
p-value=2×P(Z<−0.4)=2×0.3446=0.6892.
-
Scenario 4: H1:μ=μ0 and zcalc=2.1.
-
p-value=2×P(Z>2.1)=2×0.0179=0.0358 28.

2.6 Exercise examples
Here are some exercises demonstrating the p-value approach in practice.
2.6.1 Exercise 3.1
- Problem: A machine's production time follows a normal distribution. A new machine is claimed to be faster. Sample data (n=36, xˉ=1.6 min, s=0.55 min) are collected. Test at α=0.01 29.
- Hypotheses: H0:μ=1.8, H1:μ<1.8.
- Test statistic: zcalc=−2.4.
- p-value: P(Z<−2.4)=0.0082.
- Interpretation: 0<0.0082<0.01, indicating very strong evidence for H1.
- Conclusion: Reject H0 at the 1% significance level 30.
2.6.2 Exercise 3.2
- Problem: Sodium chloride concentration is normally distributed with mean 25 cm3/m3. A sample (n=20, xˉ=23 cm3/m3, s=6.7 cm3/m3) is tested at α=0.05 31.
- Hypotheses: H0:μ=25, H1:μ=25. This is a two-sided t-test.
- Test statistic: tcalc=−1.335.
- p-value: 0.1993.
- Interpretation: 0.10<0.1993<1.00, indicating weak or no evidence for H1.
- Conclusion: Fail to reject H0 at all significance levels 32.
2.6.3 Exercise 3.3
- Problem: A manager suspects over 75% of workers are interrupted by personal calls. A survey of 200 workers found 158 such interruptions. Test at α=0.10 33.
- Hypotheses: H0:π=0.75, H1:π>0.75. This is a one-sided proportion test (Z-distribution).
- Test statistic: zcalc=1.306≈1.31.
- p-value: P(Z>1.31)=1−P(Z<1.31)=1−0.9049=0.0951.
- Interpretation: 0.05<0.0951<0.10, indicating moderate evidence for H1.
- Conclusion: Reject H0 at the 10% significance level 34.
🔑 Important: The p-value approach offers a more nuanced interpretation of evidence by providing a continuous measure rather than a binary reject/fail-to-reject decision at a single α level 21.
3. Errors in hypothesis testing
3.1 Types of errors in hypothesis testing
Hypothesis testing involves making decisions that can lead to two kinds of errors. These errors are classified as Type I and Type II errors.
- Type I error: This is the probability of incorrectly rejecting the null hypothesis (H0). It occurs when H0 is actually true, but the test leads to its rejection.
- Type II error: This is the probability of failing to reject the null hypothesis (H0) when it is false. It means the test concludes H0 is true, but in reality, it is false.
🔑 Important: All hypothesis testing decisions carry a risk of error.
3.1.1 Probabilities of errors
The probabilities associated with these errors are denoted by specific Greek letters.
- The probability of a Type I error is represented by alpha (α). This probability is directly controlled by the chosen level of significance for the test.
- The probability of a Type II error is represented by beta (β).
🔑 Important: You choose α, but β is influenced by factors like sample size and effect size.
The table below summarizes the definitions and associated probabilities of these errors.
| Error Type | Definition | Probability | Notes |
|---|---|---|---|
| Type I error | Rejecting H0 when H0 is true. | α | Controlled by significance level. |
| Type II error | Failing to reject H0 when H0 is false. | β | Influenced by test power. |
3.1.2 Statistical power and correct decisions
Beyond errors, hypothesis testing also involves correct decisions.
- A correct decision occurs when you fail to reject H0 when it is true. The probability of this is 1−α.
- The power of a test is the probability of correctly rejecting H0 when it is false. This probability is calculated as 1−β.
🔑 Important: Higher statistical power means a better chance of detecting a true effect.
The relationship between reality, the decision made, and the probabilities of error or correct outcomes can be visualized.
| Reality | Decision | Outcome | Probability |
|---|---|---|---|
| H0 is true | Reject H0 | Type I error | α |
| H0 is true | Fail to reject H0 | Correct decision | 1−α |
| H0 is false | Reject H0 | Correct decision (Power) | 1−β |
| H0 is false | Fail to reject H0 | Type II error | β |
🔑 Important: The goal in hypothesis testing is to minimize both α and β while maximizing power.
A conceptual visualization of a test statistic within a distribution can illustrate the p-value calculation, which relates to the decision-making process.
34.
🔑 Important: The p-value helps determine whether to reject H0, influencing the possibility of Type I or Type II errors.
© 2026 Maeve. All rights reserved. This content is protected by copyright.