Math ClubMath Club
v1 · padrão canônico

Lesson 103 — Hypothesis testing: structure and logic

Formal structure of hypothesis testing: H0 vs H1, test statistic, p-value, significance level, Type I and Type II errors, and test power.

Used in: 3.º ano do EM (17-18 anos) · Equiv. Stochastik LK alemão · Equiv. Math B japonês · H2 Statistics singapurense

p-value=P(TtobsH0)αreject H0p\text{-value} = P(T \geq t_{\mathrm{obs}} \mid H_0) \leq \alpha \Rightarrow \text{reject } H_0

The p-value measures the probability of observing a result as extreme or more extreme than what was obtained, assuming that H0H_0 is true. When pαp \leq \alpha, the data are incompatible with H0H_0 at the chosen significance level, and we reject H0H_0.

Choose your door

Rigorous notation, full derivation, hypotheses

Rigorous definition

The five elements of a hypothesis test

"The null hypothesis H0H_0 represents a claim of skepticism. It is the status quo that would be maintained unless there is sufficient evidence against it." — OpenIntro Statistics, §5.1

Errors and test power

Formal definition of p-value

"The p-value measures how consistent the data are with H0H_0. A small p-value indicates that the data are incompatible with H0H_0 — not that H0H_0 is false with probability 1p1-p." — OpenIntro Statistics, §5.1

Types of alternative hypothesis

Worked examples

Exercise list

42 exercises · 10 with worked solution (25%)

Application 26Understanding 5Modeling 6Challenge 3Proof 2
  1. Ex. 103.1ApplicationAnswer key

    A consumer protection agency wants to check whether the average weight of a 500 g flour package is as stated. Formulate the hypotheses H0H_0 and H1H_1 for this scenario.

    Select the correct option
    Select an option first
    Show solution
    H0:μ=500H_0: \mu = 500 g (weight as claimed), H1:μ500H_1: \mu \neq 500 g (two-tailed, since weight can be above or below). Two-tailed test because both overweight and underweight are concerns.
  2. Ex. 103.2ApplicationAnswer key

    Researchers want to check whether Brazilian teenagers sleep less than the recommended 8 hours per night. Formulate H0H_0 and H1H_1.

    Select the correct option
    Select an option first
    Show solution
    H0:μ8H_0: \mu \geq 8 hours (sufficient sleep), H1:μ<8H_1: \mu < 8 hours (insufficient sleep). One-tailed test to the left because the concern is with sleep below the recommended amount.
  3. Ex. 103.3Application

    H0:μ=50H_0: \mu = 50, H1:μ50H_1: \mu \neq 50. Data: n=25n = 25, Xˉ=52\bar X = 52, σ=10\sigma = 10 (known). Calculate the z-statistic and p-value. Conclude for α=0.05\alpha = 0.05.

    Select the correct option
    Select an option first
    Show solution
    Z=(Xˉμ0)/(σ/n)=(5250)/(10/25)=2/2=1.00Z = (\bar X - \mu_0)/(\sigma/\sqrt{n}) = (52 - 50)/(10/\sqrt{25}) = 2/2 = 1.00. Two-tailed p-value: 2×P(Z>1.00)=2×0.1587=0.31742 \times P(Z > 1.00) = 2 \times 0.1587 = 0.3174. Since p=0.32>0.05p = 0.32 > 0.05, we fail to reject H0H_0. Insufficient evidence that the mean changed.
  4. Ex. 103.4Application

    A manufacturer claims its light bulbs last an average of 1000 h. A sample of n=64n = 64 bulbs gives Xˉ=985\bar X = 985 h with σ=50\sigma = 50 h (known). At the 5% level, is the mean lifetime less than claimed?

    Select the correct option
    Select an option first
    Show solution
    Z=2.40Z = -2.40. One-tailed p-value =0.0082<0.05= 0.0082 < 0.05. We reject H0H_0: evidence that the mean lifetime is less than 1000 h.
    Show step-by-step (with the why)
    1. Hypotheses: H0:μ=1000H_0: \mu = 1000 h, H1:μ<1000H_1: \mu < 1000 h (one-tailed to the left).
    2. Statistic: Z=(9851000)/(50/64)=15/6.25=2.40Z = (985 - 1000)/(50/\sqrt{64}) = -15/6.25 = -2.40.
    3. One-tailed p-value: P(Z<2.40)=1Φ(2.40)=10.9918=0.0082P(Z < -2.40) = 1 - \Phi(2.40) = 1 - 0.9918 = 0.0082.
    4. Since p=0.0082<0.05p = 0.0082 < 0.05, we reject H0H_0.
    5. Shortcut: For one-tailed tests, p-value is half the two-tailed p-value for the same Z|Z|. Here two-tailed would be 0.0164, one-tailed is 0.0082.
  5. Ex. 103.5Application

    In a criminal trial, H0H_0 is "the defendant is innocent" and H1H_1 is "the defendant is guilty." Describe Type I and Type II Errors in this context. Which is considered more serious in the Brazilian legal system? Why?

    Select the correct option
    Select an option first
    Show solution
    Type I Error: convict an innocent (legal system says "guilty" when actually innocent). Type II Error: acquit a guilty person (system says "innocent" when actually guilty). In a democratic legal system, Type I is more serious because "it is better to acquit 100 guilty people than to convict 1 innocent" — the requirement level ("beyond reasonable doubt") is very high, equivalent to very small α\alpha.
  6. Ex. 103.6Understanding

    A test yields p=0.03p = 0.03. Which statement below is correct?

    Select the correct option
    Select an option first
    Show solution
    The p-value is a probability about the data (given H0H_0), not about hypotheses. The correct interpretation is always: "probability of observing a result as extreme or more extreme, assuming H0H_0 is true".
  7. Ex. 103.7Understanding

    A test with n=10n = 10 yields p=0.12p = 0.12. The researcher concludes "the effect does not exist." What may be wrong?

    Select the correct option
    Select an option first
    Show solution
    Failing to reject H0H_0 does not mean H0H_0 is true. The effect may exist but the sample may be too small (insufficient power) to detect it. Absence of evidence is not evidence of absence.
  8. Ex. 103.8Application

    A school implemented a new methodology. The historical average score is μ0=35\mu_0 = 35 points. After intervention, n=40n = 40 students achieved Xˉ=37\bar X = 37 and σ=8\sigma = 8 (known). At the 5% level, did the score improve?

    Select the correct option
    Select an option first
    Show solution
    H0:μ=35H_0: \mu = 35 points, H1:μ>35H_1: \mu > 35 (one-tailed to the right). Z=(3735)/(8/40)=2/(8/6.324)=2/1.265=1.581Z = (37 - 35)/(8/\sqrt{40}) = 2/(8/6.324) = 2/1.265 = 1.581. p-value: P(Z>1.581)=10.943=0.057P(Z > 1.581) = 1 - 0.943 = 0.057. Since p=0.057>0.05p = 0.057 > 0.05, we fail to reject H0H_0 at the 5% level. Marginally non-significant.
  9. Ex. 103.9Application

    An urgent care center wants to detect a 5 min reduction in response time (δ=5\delta = 5, σ=10\sigma = 10). With α=0.05\alpha = 0.05 and 90% power, what is the minimum nn?

    Select the correct option
    Select an option first
    Show solution
    n=(1.960+1.282)2×100/2543n = (1.960 + 1.282)^2 \times 100/25 \approx 43 visits.
    Show step-by-step (with the why)
    1. n = (z_{\alpha/2} + z_{eta})^2 \sigma^2/\delta^2.
    2. δ=5\delta = 5 min, σ=10\sigma = 10 min, z0.025=1.960z_{0.025} = 1.960, 90% power: z0.10=1.282z_{0.10} = 1.282.
    3. n=(1.960+1.282)2×100/25=(3.242)2×4=10.51×4=42.04n = (1.960 + 1.282)^2 \times 100/25 = (3.242)^2 \times 4 = 10.51 \times 4 = 42.04.
    4. Round: n=43n = 43 visits.
    5. Shortcut: Increasing power from 80% to 90% adds approximately 30% to sample size (z0.10=1.282z_{0.10} = 1.282 vs z0.20=0.842z_{0.20} = 0.842).
  10. Ex. 103.10ApplicationAnswer key

    A coin is flipped 100 times and lands heads 60 times. At the 5% level, is the coin fair?

    Select the correct option
    Select an option first
    Show solution
    H0:p=0.50H_0: p = 0.50 (fair coin), H1:p0.50H_1: p \neq 0.50. Statistic: Z=(0.600.50)/0.50×0.50/100=0.10/0.05=2.00Z = (0.60 - 0.50)/\sqrt{0.50 \times 0.50/100} = 0.10/0.05 = 2.00. Two-tailed p-value: 2×0.0228=0.0456<0.052 \times 0.0228 = 0.0456 < 0.05. We reject H0H_0: evidence that the coin is biased.
  11. Ex. 103.11Application

    A researcher changes the significance level from α=0.05\alpha = 0.05 to α=0.01\alpha = 0.01 while keeping nn fixed. Explain the effect on Type II Error and test power.

    Select the correct option
    Select an option first
    Show solution
    For fixed nn and σ\sigma, decreasing α\alpha from 0.05 to 0.01 increases the critical value, shrinking the rejection region. This increases β\beta (harder to reject H0H_0 when false) and reduces power. The fundamental trade-off: fewer false positives means more false negatives for fixed nn.
  12. Ex. 103.12Application

    Normal fasting glucose level: μ0=120\mu_0 = 120 mg/dL. A sample of n=50n = 50 diabetic patients gives Xˉ=128\bar X = 128 mg/dL with σ=20\sigma = 20 mg/dL. At the 1% level, is average glucose elevated?

    Select the correct option
    Select an option first
    Show solution
    H0:μ=120H_0: \mu = 120 mg/dL, H1:μ>120H_1: \mu > 120 mg/dL. Z=(128120)/(20/50)=8/2.828=2.83Z = (128 - 120)/(20/\sqrt{50}) = 8/2.828 = 2.83. p-value: P(Z>2.83)=10.9977=0.0023<0.01P(Z > 2.83) = 1 - 0.9977 = 0.0023 < 0.01. We reject H0H_0: strong evidence that average blood glucose is above normal.
  13. Ex. 103.13Understanding

    A result is "statistically significant at 5%." What does this correctly mean?

    Select the correct option
    Select an option first
    Show solution
    "Statistically significant" only means the p-value fell below α\alpha. It does not imply practical relevance, causality, or absence of bias. With very large nn, trivial differences become "significant".
  14. Ex. 103.14Application

    A company wants to detect whether the average weight of its products fell from μ0=250\mu_0 = 250 g to μ1=245\mu_1 = 245 g, with σ=20\sigma = 20 g, α=0.05\alpha = 0.05, and 80% power. What is the minimum nn?

    Select the correct option
    Select an option first
    Show solution
    H0:μ=250H_0: \mu = 250 g, H1:μ<250H_1: \mu < 250 g (one-tailed). With σ=20\sigma = 20 g and α=0.05\alpha = 0.05, critical value: Xˉc=2501.645×20/n\bar X_c = 250 - 1.645 \times 20/\sqrt{n}. To detect μ1=245\mu_1 = 245 g with 80% power: n=(1.645+0.842)2×400/25=(2.487)2×16=6.185×1699n = (1.645 + 0.842)^2 \times 400/25 = (2.487)^2 \times 16 = 6.185 \times 16 \approx 99.
  15. Ex. 103.15ApplicationAnswer key

    A genomics study performs 1000 simultaneous tests with α=0.05\alpha = 0.05. All tested genes are null (no true effect). How many false positives are expected? If 60 genes are "significant," what is the estimated false discovery rate?

    Select the correct option
    Select an option first
    Show solution
    Significance level 5%: reject if p0.05p \leq 0.05. In 1000 tests, expect 1000×0.05=501000 \times 0.05 = 50 false positives. If only 60 are significant and all are true positives, estimated FDR = 50/60 = 83%. Most "discovered" effects may be false.
  16. Ex. 103.16Application

    A coin is flipped 800 times and lands heads 384 times. At the 5% level, is the coin fair?

    Select the correct option
    Select an option first
    Show solution
    Z=(0.480.50)/0.50×0.50/800=0.02/0.01768=1.131Z = (0.48 - 0.50)/\sqrt{0.50 \times 0.50/800} = -0.02/0.01768 = -1.131. Two-tailed p-value: 2×P(Z<1.131)=2×0.129=0.2582 \times P(Z < -1.131) = 2 \times 0.129 = 0.258. Since p=0.258>0.05p = 0.258 > 0.05, we fail to reject H0H_0. The data are consistent with a fair coin.
  17. Ex. 103.17Application

    A survey of n=30n = 30 teenagers recorded average sleep of Xˉ=7.5\bar X = 7.5 h with σ=1.5\sigma = 1.5 h (from prior studies). At the 5% level, do they sleep less than 8 hours?

    Select the correct option
    Select an option first
    Show solution
    Z=1.825Z = -1.825, p-value 0.034<0.05\approx 0.034 < 0.05. We reject H0H_0: evidence that teenagers sleep less than 8 hours.
    Show step-by-step (with the why)
    1. Hypotheses: H0:μ=8H_0: \mu = 8 h, H1:μ<8H_1: \mu < 8 h.
    2. Statistic: Z=(7.58)/(1.5/30)=0.5/0.274=1.825Z = (7.5 - 8)/(1.5/\sqrt{30}) = -0.5/0.274 = -1.825.
    3. One-tailed p-value: P(Z<1.825)=1Φ(1.825)0.034P(Z < -1.825) = 1 - \Phi(1.825) \approx 0.034.
    4. Since p=0.034<0.05p = 0.034 < 0.05, we reject H0H_0. Teenagers sleep significantly less than 8 hours.
    5. Note: p = 0.034 is close to 0.05. A responsible researcher would report the exact value, not just "significant." With α=0.01\alpha = 0.01 we would not reject.
  18. Ex. 103.18Understanding

    Which statement about statistical significance is correct?

    Select the correct option
    Select an option first
    Show solution
    With very large nn, tiny differences become "statistically significant." The p-value depends on both the effect size AND the sample size. With n=1,000,000n = 1{,}000{,}000, an effect of 0.001 units may have p<0.001p < 0.001 but be clinically irrelevant.
  19. Ex. 103.19Modeling

    A clinical trial tests 20 endpoints simultaneously with α=0.05\alpha = 0.05. What is the probability of at least one false positive without correction? Describe how Bonferroni correction solves the problem and discuss its limitation.

    Select the correct option
    Select an option first
    Show solution
    FWER with Bonferroni correction: uses αcorrected=0.05/20=0.0025\alpha_{\text{corrected}} = 0.05/20 = 0.0025 per test. Controls the FWER at 5%. Alternative: FDR (Benjamini-Hochberg) is more powerful when many effects are expected. In the clinical trial with 20 endpoints, Bonferroni may be excessively conservative if endpoints are correlated — the Holm-Bonferroni method is considered a compromise.
  20. Ex. 103.20Application

    The historical ENEM pass rate at a school is 30%. After a new methodology, 38 of 100 students passed. At the 5% level, did the rate improve?

    Select the correct option
    Select an option first
    Show solution
    H0:p=0.30H_0: p = 0.30 (historical approval rate), H1:p>0.30H_1: p > 0.30. p^=38/100=0.38\hat p = 38/100 = 0.38. Z=(0.380.30)/0.30×0.70/100=0.08/0.0458=1.748Z = (0.38 - 0.30)/\sqrt{0.30 \times 0.70/100} = 0.08/0.0458 = 1.748. p-value: P(Z>1.748)=0.040P(Z > 1.748) = 0.040. Since p=0.040<0.05p = 0.040 < 0.05, we reject H0H_0: the new methodology appears to improve approval rate.
  21. Ex. 103.21Application

    Test H0:μ=50H_0: \mu = 50 vs H1:μ50H_1: \mu \neq 50 with σ=10\sigma = 10 and Xˉ=51\bar X = 51. Calculate the p-value for n=10n = 10 and n=10000n = 10000. What does this reveal about p-value and effect size?

    Select the correct option
    Select an option first
    Show solution
    With n=10n = 10: Z=(5150)/(10/10)=1/3.162=0.316Z = (51 - 50)/(10/\sqrt{10}) = 1/3.162 = 0.316. Two-tailed p-value: 2×P(Z>0.316)=2×0.376=0.7522 \times P(Z > 0.316) = 2 \times 0.376 = 0.752. Do not reject. With n=10000n = 10000: Z=(5150)/(10/10000)=1/0.1=10.0Z = (51 - 50)/(10/\sqrt{10000}) = 1/0.1 = 10.0. p0p \approx 0. Reject with certainty. A difference of 1 unit: trivial with n=10n = 10, "highly significant" with n=10000n = 10000. Illustrates that p-value measures incompatibility with H0H_0, not effect size.
  22. Ex. 103.22ApplicationAnswer key

    Normal systolic pressure: μ0=120\mu_0 = 120 mmHg. Sample of n=60n = 60 sedentary adults: Xˉ=125\bar X = 125 mmHg, σ=15\sigma = 15 mmHg. At the 1% level, is average pressure elevated?

    Select the correct option
    Select an option first
    Show solution
    H0:μ=120H_0: \mu = 120 mmHg, H1:μ>120H_1: \mu > 120. Z=(125120)/(15/60)=5/1.936=2.583Z = (125 - 120)/(15/\sqrt{60}) = 5/1.936 = 2.583. p-value: P(Z>2.583)=0.0049<0.01P(Z > 2.583) = 0.0049 < 0.01. We reject H0H_0: strong evidence that average blood pressure is elevated in the sample.
  23. Ex. 103.23ApplicationAnswer key

    A veterinary study wants to detect that the average weight of pigs of a breed changed from 125 kg to 120 kg (δ=5\delta = 5, σ=15\sigma = 15). With α=0.05\alpha = 0.05 two-tailed and 80% power, how many animals are needed?

    Select the correct option
    Select an option first
    Show solution
    n=(1.960+0.842)2×225/2571n = (1.960 + 0.842)^2 \times 225/25 \approx 71 animals.
    Show step-by-step (with the why)
    1. To detect μ1=120\mu_1 = 120 kg vs μ0=125\mu_0 = 125 kg with σ=15\sigma = 15: δ=5\delta = 5.
    2. 80% power: z_{eta} = 0.842. Two-tailed 5% level: zα/2=1.960z_{\alpha/2} = 1.960.
    3. n=(1.960+0.842)2×225/25=7.851×9=70.7n = (1.960 + 0.842)^2 \times 225/25 = 7.851 \times 9 = 70.7. Round: n=71n = 71.
    4. Shortcut: The formula n = (z_{\alpha/2} + z_{eta})^2 \sigma^2/\delta^2 shows that sample size scales quadratically with σ/δ\sigma/\delta (inverse signal-to-noise ratio).
  24. Ex. 103.24Modeling

    ENEM at a school has Xˉ=52\bar X = 52 points against μ0=50\mu_0 = 50 from state average, with s=10s = 10 and n=10000n = 10000 students. The result is "highly significant" (p<0.001p < 0.001). Calculate Cohen's effect size dd. Is a 2-point difference educationally relevant? Discuss.

    Select the correct option
    Select an option first
    Show solution
    Cohen's effect size: d=Xˉμ0/s=5250/10=0.2d = |\bar X - \mu_0|/s = |52 - 50|/10 = 0.2 (small effect by Cohen's convention). With n=10000n = 10000, even d=0.2d = 0.2 generates p<0.0001p < 0.0001. In educational research, a 2-point difference on a 100-point scale may not justify policy change, despite "significance." Reporting confidence intervals and effect size is essential.
  25. Ex. 103.25Challenge

    Show that, under H0H_0 true, the p-value has Uniform(0,1)(0,1) distribution for continuous tests. Use this result to verify that P(reject H0H0)=αP(\text{reject } H_0 \mid H_0) = \alpha.

    Select the correct option
    Select an option first
    Show solution
    Under H0H_0 true, the p-value has distribution Uniform(0,1)\text{Uniform}(0,1). Therefore P(p0.05H0)=0.05P(p \leq 0.05 \mid H_0) = 0.05 exactly — the level α\alpha controls Type I error rate exactly. Under H1H_1, the p-value distribution concentrates near 0, with the fraction below α\alpha equal to power 1β1-\beta.
  26. Ex. 103.26Proof

    Use the Neyman-Pearson Lemma to show that the one-tailed z-test (reject if Xˉ>c\bar X > c) is the most powerful level α\alpha test for H0:μ=μ0H_0: \mu = \mu_0 vs H1:μ=μ1>μ0H_1: \mu = \mu_1 > \mu_0 with normal data and σ\sigma known.

    Select the correct option
    Select an option first
    Show solution
    The optimal rejection region by Neyman-Pearson Lemma for H0:μ=μ0H_0: \mu = \mu_0 vs H1:μ=μ1>μ0H_1: \mu = \mu_1 > \mu_0 with normal data is: reject if Xˉ>c\bar X > c where cc is determined by P(Xˉ>cH0)=αP(\bar X > c \mid H_0) = \alpha. This is equivalent to the one-tailed z-test. Proof: the likelihood ratio L(μ1)/L(μ0)=exp((μ1μ0)(Xˉ(μ0+μ1)/2)/σ2/n)L(\mu_1)/L(\mu_0) = \exp((\mu_1 - \mu_0)(\bar X - (\mu_0 + \mu_1)/2)/\sigma^2/n) is monotonically increasing in Xˉ\bar X for μ1>μ0\mu_1 > \mu_0.
  27. Ex. 103.27Application

    An organization reported that teenagers spent an average of 4.5 hours weekly on their phones. You believe the current average is higher. Formulate H0H_0 and H1H_1 and justify the test type (one-tailed/two-tailed).

    Select the correct option
    Select an option first
    Show solution
    H0:μ=4.5H_0: \mu = 4.5 hours, H1:μ>4.5H_1: \mu > 4.5 (one-tailed — you believe usage has increased). One-tailed test to the right because the interest is in whether current average exceeds the historical value.
  28. Ex. 103.28Application

    Researchers study app usage among 273 teenagers: 63 use the app. They test whether more than 30% of teenagers use the app. Formulate H0H_0 and H1H_1, then describe Type I and Type II Errors in this context.

    Select the correct option
    Select an option first
    Show solution
    H0:p=0.30H_0: p = 0.30, H1:p>0.30H_1: p > 0.30. Type I Error: conclude that more than 30% use the app when actually they do not. Type II Error: fail to detect that more than 30% use the app when they actually do.
  29. Ex. 103.29Application

    Engineers at a start-up work an average of 60 hours per week. A new hire suspects the average is less. Surveys 10 colleagues and obtains: 70, 45, 55, 60, 65, 55, 55, 60, 50, 55 hours. At the 5% level, is the average less than 60?

    Select the correct option
    Select an option first
    Show solution
    One-tailed test to the left: H0:μ60H_0: \mu \geq 60, H1:μ<60H_1: \mu < 60. Sample of 10 engineers: hours worked = 70, 45, 55, 60, 65, 55, 55, 60, 50, 55. Xˉ=57\bar X = 57, s7.07s \approx 7.07. t=(5760)/(7.07/10)=3/2.236=1.342t = (57 - 60)/(7.07/\sqrt{10}) = -3/2.236 = -1.342. p-value: P(t9<1.342)0.106P(t_9 < -1.342) \approx 0.106. Do not reject at α=0.05\alpha = 0.05.
  30. Ex. 103.30Application

    A Gallup survey indicates that 40% of Americans fear public speaking. A student believes the percentage at her school is lower. She surveys 361 peers and 141 report fearing public speaking. At the 5% level, is the proportion less than 40%?

    Select the correct option
    Select an option first
    Show solution
    H0:p=0.40H_0: p = 0.40, H1:p<0.40H_1: p < 0.40. p^=141/3610.3906\hat p = 141/361 \approx 0.3906. Z=(0.39060.40)/0.40×0.60/361=0.0094/0.025800.364Z = (0.3906 - 0.40)/\sqrt{0.40 \times 0.60/361} = -0.0094/0.02580 \approx -0.364. p-value: P(Z<0.364)0.358P(Z < -0.364) \approx 0.358. We fail to reject H0H_0: no evidence that the proportion at the school is less than 40%.
  31. Ex. 103.31ApplicationAnswer key

    The average US career length before retirement is 34 years. Formulate hypotheses to test whether this mean still holds. Describe Type I and Type II Errors and their practical consequences.

    Select the correct option
    Select an option first
    Show solution
    H0:μ=34H_0: \mu = 34 years of work before retirement, H1:μ34H_1: \mu \neq 34. Type I Error: wrongly claim the mean is not 34 years. Type II Error: fail to detect that the mean has changed when it truly did.
    Show step-by-step (with the why)
    1. Hypotheses: H0:μ=34H_0: \mu = 34 years, H1:μ34H_1: \mu \neq 34 years (two-tailed).
    2. With σ=8\sigma = 8 years (known): Z=(Xˉ34)/(8/n)Z = (\bar X - 34)/(8/\sqrt{n}).
    3. If nn and Xˉ\bar X are not specified, recognize that for the stated mean of 34 years, the test would be two-tailed with rejection if Z>1.960|Z| > 1.960 at 5%.
    4. Type I Error is concluding the mean differs from 34 when it actually equals 34 (false alarm). Type II Error is failing to reject when the mean truly differs from 34 (missing a real effect).
  32. Ex. 103.32Application

    National data show that 68% of online courses at community colleges are taught by full-time faculty. A researcher tests if this applies to California. Surveys 45 instructors at LBCC: 34 are full-time. At the 5% level, is there evidence of a difference?

    Select the correct option
    Select an option first
    Show solution
    H0:p=0.68H_0: p = 0.68, H1:p0.68H_1: p \neq 0.68. p^=34/450.7556\hat p = 34/45 \approx 0.7556. Z=(0.75560.68)/0.68×0.32/45=0.0756/0.069541.087Z = (0.7556 - 0.68)/\sqrt{0.68 \times 0.32/45} = 0.0756/0.06954 \approx 1.087. Two-tailed p-value: 2×P(Z>1.087)2×0.1385=0.2772 \times P(Z > 1.087) \approx 2 \times 0.1385 = 0.277. We fail to reject H0H_0: no evidence that the proportion in California differs from 68%.
  33. Ex. 103.33Understanding

    Which statement about the p-value is correct?

    Select the correct option
    Select an option first
    Show solution
    The p-value is P(data as extremeH0)P(\text{data as extreme} \mid H_0). It depends on the observed effect AND the sample size. With very large nn, tiny effects become "significant." The p-value does not measure practical relevance nor the probability of H0H_0 being true.
  34. Ex. 103.34ApplicationAnswer key

    A city had 14% of residents who walked for exercise. This year, 9 of 70 surveyed residents walk for exercise. At the 5% level, did the rate decrease?

    Select the correct option
    Select an option first
    Show solution
    H0:p0.14H_0: p \leq 0.14, H1:p<0.14H_1: p < 0.14. p^=9/700.1286\hat p = 9/70 \approx 0.1286. Z=(0.12860.14)/0.14×0.86/70=0.0114/0.04142=0.275Z = (0.1286 - 0.14)/\sqrt{0.14 \times 0.86/70} = -0.0114/0.04142 = -0.275. p-value: P(Z<0.275)0.392P(Z < -0.275) \approx 0.392. We fail to reject: no evidence that the rate fell.
  35. Ex. 103.35Modeling

    The average national income of registered nurses is US69,110annually.Asurveyof41Californianursesobtained69,110 annually. A survey of 41 California nurses obtained \bar X = US US71,121andands = US US7,489$. At the 5% level, do California nurses earn more than the national average?

    Select the correct option
    Select an option first
    Show solution
    See the reference indicated in source for the detailed solution.
  36. Ex. 103.36Modeling

    According to the AAA, approximately 54% of fatal accidents are caused by driver error. In a sample of 30 accidents, 14 were caused by driver error. At the 5% level, is there evidence that the proportion in the sample differs from 54%?

    Select the correct option
    Select an option first
    Show solution
    Z=0.802Z = -0.802, p-value 0.422\approx 0.422. We fail to reject H0H_0: no evidence that the proportion of accidents from driver error differs from 54%.
    Show step-by-step (with the why)
    1. Hypotheses: H0:p=0.54H_0: p = 0.54, H1:p0.54H_1: p \neq 0.54 (two-tailed).
    2. With 30 accidents, 14 from driver error: p^=14/300.467\hat p = 14/30 \approx 0.467.
    3. Z=(0.4670.54)/0.54×0.46/30=0.073/0.09105=0.802Z = (0.467 - 0.54)/\sqrt{0.54 \times 0.46/30} = -0.073/0.09105 = -0.802.
    4. Two-tailed p-value: 2×P(Z<0.802)2×0.211=0.4222 \times P(Z < -0.802) \approx 2 \times 0.211 = 0.422.
    5. Since p=0.422>0.05p = 0.422 > 0.05, we fail to reject H0H_0.
  37. Ex. 103.37Modeling

    The New York Times reported an average commute time of 25.4 minutes in major US cities. Austin believes the local commute is shorter. Surveys 25 workers: Xˉ=24.2\bar X = 24.2 min, s=4.3s = 4.3 min. At the 5% level, does Austin have a significantly shorter commute?

    Select the correct option
    Select an option first
    Show solution
    Two-tailed mean test with unknown $\sigma$. H0:μ=25.4H_0: \mu = 25.4 minutes, H1:μ<25.4H_1: \mu < 25.4. With n=25n = 25, Xˉ=24.2\bar X = 24.2, s=4.3s = 4.3: t=(24.225.4)/(4.3/25)=1.2/0.86=1.395t = (24.2 - 25.4)/(4.3/\sqrt{25}) = -1.2/0.86 = -1.395. p-value with t24t_{24}: 0.088\approx 0.088. Do not reject at 5%: no evidence Austin has shorter commute.
  38. Ex. 103.38ModelingAnswer key

    A clinical trial tests 20 endpoints with α=0.05\alpha = 0.05 each. (a) What is the probability of at least one false positive, assuming all H0H_0 are true? (b) Apply Bonferroni correction and indicate the new level per test.

    Select the correct option
    Select an option first
    Show solution
    Without correction: P(1 false positive)=1(10.05)2010.358=0.642P(\geq 1\text{ false positive}) = 1 - (1-0.05)^{20} \approx 1 - 0.358 = 0.642. That is, over 60% chance of at least one false positive without correction. With Bonferroni: αcorr=0.05/20=0.0025\alpha_{\text{corr}} = 0.05/20 = 0.0025 per test. Application to clinical trial: only results with p-value below 0.0025 would be declared significant, drastically reducing false positives at the cost of less power for each individual test.
  39. Ex. 103.39Challenge

    Exercise 103.20 showed approval of 38 of 100 students versus historical rate of 30%, with p=0.040p = 0.040. Calculate Cohen's effect size hh for proportions. Is the result educationally relevant? Compare statistical significance with practical relevance.

    Select the correct option
    Select an option first
    Show solution
    Cohen's effect size for proportions: h=2arcsin(p^)2arcsin(p0)h = 2\arcsin(\sqrt{\hat p}) - 2\arcsin(\sqrt{p_0}). For p^=0.38\hat p = 0.38 and p0=0.30p_0 = 0.30: h2(0.666)2(0.580)=0.172h \approx 2(0.666) - 2(0.580) = 0.172 (small effect). With n=100n = 100: Z1.748Z \approx 1.748, p-value 0.040<0.05\approx 0.040 < 0.05. Statistically significant, but effect is small. The pedagogical decision to adopt the methodology should consider cost, scalability, and magnitude of 8 percentage points — not just the p-value.
  40. Ex. 103.40Proof

    Derive the analytical expression for the power of a one-tailed z-test (H1:μ>μ0H_1: \mu > \mu_0) as a function of nn, δ=μ1μ0\delta = \mu_1 - \mu_0, and σ\sigma. Show that power increases with nn and with δ/σ\delta/\sigma (signal-to-noise ratio).

    Select the correct option
    Select an option first
    Show solution
    Power is 1β=P(reject H0H1 true)1 - \beta = P(\text{reject } H_0 \mid H_1 \text{ true}). For one-tailed test with $\\sigma$ known and μ1>μ0\mu_1 > \mu_0: we reject if Z=(Xˉμ0)/(σ/n)>zαZ = (\bar X - \mu_0)/(\sigma/\sqrt{n}) > z_{\alpha}. Under H1H_1: XˉN(μ1,σ2/n)\bar X \sim \mathcal{N}(\mu_1, \sigma^2/n). Power = P(Z>zalphaμ1)=P(Xˉμ0σ/n>zalphaμ1)=P(Z>zalpha(μ1μ0)nσ)=1Φ(zalphaδnσ)P(Z > z_{alpha} \mid \mu_1) = P\left(\frac{\bar X - \mu_0}{\sigma/\sqrt{n}} > z_{alpha} \mid \mu_1\right) = P\left(Z > z_{alpha} - \frac{(\mu_1 - \mu_0)\sqrt{n}}{\sigma}\right) = 1 - \Phi\left(z_{alpha} - \frac{\delta\sqrt{n}}{\sigma}\right) where δ=μ1μ0\delta = \mu_1 - \mu_0. Increases with nn, δ\delta and decreases with σ\sigma.
  41. Ex. 103.41ChallengeAnswer key

    A genome-wide association study (GWAS) tests 5,000 genetic polymorphisms in 10 students, using α=0.05\alpha = 0.05 for each test without correction. (a) How many false positives are expected? (b) What would the Bonferroni-corrected level be? (c) Discuss why GWAS studies with small samples have low reliability.

    Select the correct option
    Select an option first
    Show solution
    Type I inflation via multiple testing: with 10 students testing 5,000 genetic polymorphisms each, at 5% level, expect 5000×0.05=2505000 \times 0.05 = 250 false positives per student, or 2,500 total. Bonferroni correction: α=0.05/5000=105\alpha = 0.05/5000 = 10^{-5} per test. Alternative: FDR (Benjamini-Hochberg) is more powerful in GWAS. In studies with small nn relative to the number of tests, most "significant" results are false positives — illustration of the replicability crisis in genomics.
  42. Ex. 103.42Application

    The natural birth ratio is approximately 100 girls per 105 boys (proportion of girls ≈ 48.8%). In China it is reported as 100:114 (≈ 46.7% girls). A researcher studies 150 births and finds 60 girls. At the 5% level, is the proportion of girls significantly different from 48.8%?

    Select the correct option
    Select an option first
    Show solution
    H0:p=0.488H_0: p = 0.488 (natural ratio), H1:p0.488H_1: p \neq 0.488. China: p^=60/150=0.40\hat p = 60/150 = 0.40. Z=(0.400.488)/0.488×0.512/150=0.088/0.0408=2.157Z = (0.40 - 0.488)/\sqrt{0.488 \times 0.512/150} = -0.088/0.0408 = -2.157. Two-tailed p-value: 2×P(Z<2.157)2×0.0155=0.0312 \times P(Z < -2.157) \approx 2 \times 0.0155 = 0.031. We reject at 5%: the proportion of girls in the studied births is significantly different from the natural ratio.

Sources

Updated on 2026-05-06 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.