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.

A normal distribution representing the sampling distribution of the sample mean, with the population mean (μ) at the center.

1.2 The hypothesis testing process (traditional approach)

The traditional approach involves a structured five-step process.

  1. State hypotheses: Define the null hypothesis (H0H_0) and the alternative hypothesis (H1H_1).
  • H0H_0 is the neutral statement, assumed true, and always includes an equals sign.
  • H1H_1 is the statement to be tested and can be one-sided (left or right) or two-sided 6.
  1. Find the critical value: Determine the critical value(s) based on the significance level (α\alpha), typically 0.01, 0.05, or 0.1. These values define the rejection region(s).

Three types of hypothesis tests are illustrated: one-sided to the left, one-sided to the right, and two-sided.

  1. 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 H0H_0 8.

Common test statistics include:

  • One-sample z-test for a mean (when σ\sigma is known): z=xˉ−μ0σ/nz = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}.
  • One-sample t-test for a mean (when σ\sigma is unknown): t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s / \sqrt{n}} with df=n−1df = n-1.
  • One-sample z-test for a proportion: z=p−π0π0(1−π0)/nz = \frac{p - \pi_0}{\sqrt{\pi_0(1-\pi_0)/n}} 9.
  1. Make a decision: Compare the test statistic to the rejection region.
  • If the test statistic falls within the rejection region, reject H0H_0.
  • If the test statistic falls outside the rejection region, fail to reject H0H_0.

It's important to note that we never "accept" H0H_0, only "fail to reject" it, as we cannot definitively prove it true 10.

  1. Reach a conclusion: Interpret the decision in the context of the original problem and H1H_1.
  • If H0H_0 is rejected, there is sufficient evidence to support H1H_1.
  • If H0H_0 is not rejected, there is insufficient evidence to support H1H_1 11.

1.3 Critical values and rejection regions

Critical values are thresholds used to define the rejection region. The significance level (α\alpha) and the type of test (one-sided or two-sided) determine these values 7.

  • For a one-sided left test with α=0.01\alpha = 0.01, the critical value is typically negative.

A normal distribution curve with a shaded area representing alpha = 0.01 on the left tail, and the critical value is indicated as -2.327.

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

A normal distribution curve shown with a shaded rejection region on the left tail.

  • For t-tests, critical values depend on both α\alpha and degrees of freedom (dfdf), calculated as n−1n-1 16.
Test Typeα\alpha LevelCritical ValuesDistribution
One-sided Left0.01-2.327Normal (Z)
Two-sided0.05±\pm2.093t-distribution
One-sided Right0.101.282Normal (Z)

A t-distribution table showing critical t-values for various degrees of freedom (df) and significance levels (α).

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.8H_0: \mu = 1.8, H1:μ<1.8H_1: \mu < 1.8. Significance level α=0.01\alpha = 0.01 12.

  • Calculations: Critical value (one-sided left, α=0.01\alpha=0.01) ≈−2.327\approx -2.327. Test statistic z=1.6−1.80.5/36=−2.4z = \frac{1.6 - 1.8}{0.5 / \sqrt{36}} = -2.4.

  • Decision: Test statistic (-2.4) is in the rejection region (< -2.327). Reject H0H_0.

  • 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:μ=25H_0: \mu = 25, H1:μ≠25H_1: \mu \neq 25. Significance level α=0.05\alpha = 0.05, df=19df = 19 15.

  • Calculations: Critical values (two-sided, α=0.05\alpha=0.05, df=19df=19) ≈±2.093\approx \pm 2.093. Test statistic t=23−256.7/20≈−1.335t = \frac{23 - 25}{6.7 / \sqrt{20}} \approx -1.335.

  • Decision: Test statistic (-1.335) is outside the rejection region (±2.093\pm 2.093). Fail to reject H0H_0.

  • 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.75H_0: \pi = 0.75, H1:π>0.75H_1: \pi > 0.75. Significance level α=0.10\alpha = 0.10 18.

  • Calculations: Sample proportion p=158/200=0.79p = 158/200 = 0.79. Critical value (one-sided right, α=0.10\alpha=0.10) ≈1.282\approx 1.282. Test statistic z=0.79−0.750.75×0.25/200≈1.306z = \frac{0.79 - 0.75}{\sqrt{0.75 \times 0.25 / 200}} \approx 1.306.

  • Decision: Test statistic (1.306) is in the rejection region (> 1.282). Reject H0H_0.

  • 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.

A table of Student's t-distribution values is presented, showing critical values for different degrees of freedom and alpha levels.

🔑 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 H0H_0 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 (H0H_0) 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 (α\alpha) at which H0H_0 can be rejected.
  • A smaller p-value means stronger evidence against H0H_0 and in favor of H1H_1.
  • 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 (H0H_0) and alternative (H1H_1) hypotheses.
  • Step 2: Calculate the test statistic.
  • Step 3: Calculate the p-value.
  • Step 4: Make a decision about H0H_0 by comparing the p-value to α\alpha.
  • Step 5: Reach a conclusion in terms of H1H_1 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 (H1H_1). 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 H1H_1.

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:μ<μ0H_1: \mu < \mu_0): p-value=P(Z<zcalc)p\text{-value} = P(Z < z_{\text{calc}}) 23. This is the size of the area less than the test statistic.

Two normal distribution curves illustrating the calculation of a p-value for a one-sided hypothesis test.

  • Right-tailed test (H1:μ>μ0H_1: \mu > \mu_0): p-value=P(Z>zcalc)p\text{-value} = P(Z > z_{\text{calc}}) 24. This is the size of the area greater than the test statistic.

Diagram illustrating the calculation of a p-value for a one-sided hypothesis test.

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:μ≠μ0H_1: \mu \neq \mu_0): p-value=2×P(Z>∣zcalc∣)p\text{-value} = 2 \times P(Z > |z_{\text{calc}}|) 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.

Diagram illustrating the calculation of a two-sided p-value using normal distribution curves.

2.4 Decision making and conclusion

The decision to reject or fail to reject H0H_0 is made by comparing the p-value to the chosen significance level (α\alpha).

  • Decision Rule:

  • If p-value<αp\text{-value} < \alpha: Reject H0H_0 at the α\alpha level of significance.

  • If p-value>αp\text{-value} > \alpha: Fail to reject H0H_0 at the α\alpha level of significance 26.

  • Interpreting the strength of evidence for H1H_1: The p-value can also indicate the strength of evidence against H0H_0.

p-value RangeEvidence for H1H_1
0<p-value<0.010 < p\text{-value} < 0.01Very strong
0.01<p-value<0.050.01 < p\text{-value} < 0.05Strong
0.05<p-value<0.100.05 < p\text{-value} < 0.10Moderate
0.10<p-value<1.000.10 < p\text{-value} < 1.00Weak/no evidence
27

The conclusion about H1H_1 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:μ<μ0H_1: \mu < \mu_0 and zcalc=−0.4z_{\text{calc}} = -0.4.

  • p-value=P(Z<−0.4)=0.3446p\text{-value} = P(Z < -0.4) = 0.3446.

  • Scenario 2: H1:μ>μ0H_1: \mu > \mu_0 and zcalc=2.1z_{\text{calc}} = 2.1.

  • p-value=P(Z>2.1)=1−P(Z<2.1)=1−0.9821=0.0179p\text{-value} = P(Z > 2.1) = 1 - P(Z < 2.1) = 1 - 0.9821 = 0.0179.

  • Scenario 3: H1:μ≠μ0H_1: \mu \neq \mu_0 and zcalc=−0.4z_{\text{calc}} = -0.4.

  • p-value=2×P(Z<−0.4)=2×0.3446=0.6892p\text{-value} = 2 \times P(Z < -0.4) = 2 \times 0.3446 = 0.6892.

  • Scenario 4: H1:μ≠μ0H_1: \mu \neq \mu_0 and zcalc=2.1z_{\text{calc}} = 2.1.

  • p-value=2×P(Z>2.1)=2×0.0179=0.0358p\text{-value} = 2 \times P(Z > 2.1) = 2 \times 0.0179 = 0.0358 28.

A normal distribution curve is shown with a p-value of 0.0082 and a test statistic of -2.4.

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=36n=36, xˉ=1.6\bar{x}=1.6 min, s=0.55s=0.55 min) are collected. Test at α=0.01\alpha = 0.01 29.
  • Hypotheses: H0:μ=1.8H_0: \mu = 1.8, H1:μ<1.8H_1: \mu < 1.8.
  • Test statistic: zcalc=−2.4z_{\text{calc}} = -2.4.
  • p-value: P(Z<−2.4)=0.0082P(Z < -2.4) = 0.0082.
  • Interpretation: 0<0.0082<0.010 < 0.0082 < 0.01, indicating very strong evidence for H1H_1.
  • Conclusion: Reject H0H_0 at the 1% significance level 30.

2.6.2 Exercise 3.2

  • Problem: Sodium chloride concentration is normally distributed with mean 25 cm3^3/m3^3. A sample (n=20n=20, xˉ=23\bar{x}=23 cm3^3/m3^3, s=6.7s=6.7 cm3^3/m3^3) is tested at α=0.05\alpha = 0.05 31.
  • Hypotheses: H0:μ=25H_0: \mu = 25, H1:μ≠25H_1: \mu \neq 25. This is a two-sided t-test.
  • Test statistic: tcalc=−1.335t_{\text{calc}} = -1.335.
  • p-value: 0.19930.1993.
  • Interpretation: 0.10<0.1993<1.000.10 < 0.1993 < 1.00, indicating weak or no evidence for H1H_1.
  • Conclusion: Fail to reject H0H_0 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\alpha = 0.10 33.
  • Hypotheses: H0:π=0.75H_0: \pi = 0.75, H1:π>0.75H_1: \pi > 0.75. This is a one-sided proportion test (Z-distribution).
  • Test statistic: zcalc=1.306≈1.31z_{\text{calc}} = 1.306 \approx 1.31.
  • p-value: P(Z>1.31)=1−P(Z<1.31)=1−0.9049=0.0951P(Z > 1.31) = 1 - P(Z < 1.31) = 1 - 0.9049 = 0.0951.
  • Interpretation: 0.05<0.0951<0.100.05 < 0.0951 < 0.10, indicating moderate evidence for H1H_1.
  • Conclusion: Reject H0H_0 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 α\alpha 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 (H0H_0). It occurs when H0H_0 is actually true, but the test leads to its rejection.
  • Type II error: This is the probability of failing to reject the null hypothesis (H0H_0) when it is false. It means the test concludes H0H_0 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 (α\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 (β\beta).

🔑 Important: You choose α\alpha, but β\beta is influenced by factors like sample size and effect size.

The table below summarizes the definitions and associated probabilities of these errors.

Error TypeDefinitionProbabilityNotes
Type I errorRejecting H0H_0 when H0H_0 is true.α\alphaControlled by significance level.
Type II errorFailing to reject H0H_0 when H0H_0 is false.β\betaInfluenced by test power.

35

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 H0H_0 when it is true. The probability of this is 1−α1 - \alpha.
  • The power of a test is the probability of correctly rejecting H0H_0 when it is false. This probability is calculated as 1−β1 - \beta.

🔑 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.

RealityDecisionOutcomeProbability
H0H_0 is trueReject H0H_0Type I errorα\alpha
H0H_0 is trueFail to reject H0H_0Correct decision1−α1 - \alpha
H0H_0 is falseReject H0H_0Correct decision (Power)1−β1 - \beta
H0H_0 is falseFail to reject H0H_0Type II errorβ\beta

36

🔑 Important: The goal in hypothesis testing is to minimize both α\alpha and β\beta 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.

A normal distribution curve is shown with a test statistic of 1.31 marked on the x-axis, illustrating the calculation of a p-value. 34.

🔑 Important: The p-value helps determine whether to reject H0H_0, influencing the possibility of Type I or Type II errors.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also