MATH 32
Worksheet 11: Hypothesis Testing (One Sample)
Spring 2026
A hypothesis test evaluates evidence against a null hypothesis H0 . The p-value is the probability
of observing a result at least as extreme as the data, assuming H0 is true. We reject H0 when the
p-value < α (significance level).
Key formulas (Chapter 24, Dekking et al.):
Setting
Test statistic
σ known, or n large
z=
σ unknown, normal population
Proportion / count (exact)
Distribution under H0
x̄n − µ0
√
σ/ n
x̄n − µ0
√
t=
sn / n
N (0, 1)
t(n − 1)
K ∼ Bin(n, p0 ) under H0
Binomial
Error types:
Reject H0
Fail to reject H0
H0 is true
H0 is false (H1 true)
Type I error (prob = α)
Correct decision (power = 1 − β)
Correct decision
Type II error (prob = β)
Type I error (false positive): rejecting H0 when it is actually true. The probability of a Type I
error equals the significance level α, chosen by the researcher.
Type II error (false negative): failing to reject H0 when H1 is actually true. Its probability β
depends on the true effect size, n, and α. The power of the test is 1 − β.
1. (Is your TA psychic?) Your TA claims to have psychic ability to predict the outcome of
a fair coin flip.
In-class activity: One student volunteers to administer the challenge. That student flips a
fair coin n = 10 times; before each flip, the TA states their prediction out loud. The class
records the number of correct predictions k. Once the score is recorded, work through parts
(a)–(e) below. In part (b), compute the p-value by hand using the Binomial formula. In
part (c), verify your answer in R. In parts (d) and (e), interpret and conclude.
Recorded score: the TA correctly predicted k =
out of 10 flips.
(a) State the null and alternative hypotheses clearly.
(b) Under H0 , the number of correct predictions K follows a Binomial distribution. Compute
the p-value using the exact Binomial distribution. (Hint: the p-value for a one-sided
upper-tail test is P (K ≥ 8) under K ∼ Bin(10, 0.5).)
(c) To compute the p-value in R, use the following command (replacing k with your recorded
score) and explain what it returns:
1
MATH 32
Worksheet 11: Hypothesis Testing (One Sample)
Spring 2026
sum(dbinom(k:10, size=10, prob=0.5))
(d) In your own words, explain what the p-value means in this context.
(e) At the α = 0.05 significance level, is there sufficient evidence to conclude the TA is
psychic? What if the TA had predicted 9 out of 10 correctly?
2. (Cholesterol drug trial) A pharmaceutical company claims that a new drug reduces
mean LDL cholesterol. Before treatment, patients have a known population mean of µ0 =
190 mg/dL. A clinical trial enrolls n = 10 patients; after treatment the sample mean is
x̄10 = 178 mg/dL with sample standard deviation s = 15 mg/dL. Assume cholesterol levels
are approximately normally distributed.
(a) State H0 and H1 (one-sided).
(b) Compute the test statistic t and the degrees of freedom.
(c) Using the t-table provided, determine whether you reject H0 at α = 0.05.
(d) Type I error: Describe what a Type I error would mean in this medical context. What
is its probability?
(e) Type II error: Describe what a Type II error would mean here. Which error do you
think is more serious for a drug trial, and why?
3. (Guinea pig tooth growth with Vitamin C) A biologist investigates whether a higher
dose of Vitamin C increases the mean tooth length of guinea pigs. Historical records indicate
that the mean tooth length under a standard dose is µ0 = 18.0 mm. A sample of n = 8 guinea
pigs given the higher dose yields x̄8 = 21.5 mm and sample standard deviation s = 4.2 mm.
Assume tooth lengths are normally distributed.
(a) State H0 and H1 (one-sided upper-tail test).
(b) Compute the t test statistic and identify the degrees of freedom.
(c) At α = 0.05, is there sufficient evidence that the higher dose increases tooth length?
State your conclusion in the context of the problem.
(d) At α = 0.01, does your conclusion change? Explain why or why not.
4. (Battery life: is the process in control?) A manufacturer targets a mean battery life of
µ0 = 500 hours. Quality control samples n = 10 batteries and records the following lifetimes
(in hours):
487
512
498
505
491
516
479
503
495
514
(a) Compute the sample mean x̄10 and sample standard deviation s.
(b) State H0 and H1 for a two-sided test of whether the process is in control.
(c) Compute the t test statistic and determine whether to reject H0 at α = 0.05.
(d) What does failing to reject H0 tell us about the manufacturing process?
2
MATH 32
Worksheet 11: Hypothesis Testing (One Sample)
Spring 2026
t-Distribution Critical Values (right-tail probabilities)
The table gives tp,ν such that P (T > tp,ν ) = p for T ∼ t(ν), as in Dekking Table B.1.
α = 0.05
α = 0.01
d.f. ν
t0.05,ν (one-sided)
t0.025,ν (two-sided)
t0.01,ν (one-sided)
t0.005,ν (two-sided)
1
6.314
12.706
31.821
63.657
2
2.920
4.303
6.965
9.925
3
2.353
3.182
4.541
5.841
4
2.132
2.776
3.747
4.604
5
2.015
2.571
3.365
4.032
6
1.943
2.447
3.143
3.707
7
1.895
2.365
2.998
3.499
8
1.860
2.306
2.896
3.355
9
1.833
2.262
2.821
3.250
10
1.812
2.228
2.764
3.169
11
1.796
2.201
2.718
3.106
12
1.782
2.179
2.681
3.055
13
1.771
2.160
2.650
3.012
14
1.761
2.145
2.624
2.977
15
1.753
2.131
2.602
2.947
16
1.746
2.120
2.583
2.921
Standard Normal Critical Values (right-tail probabilities)
The table gives zp such that P (Z > zp ) = p for Z ∼ N (0, 1).
Significance level α
α/2
zα (one-sided)
zα/2 (two-sided)
0.10
0.05
1.282
1.645
0.05
0.025
1.645
1.960
0.01
0.005
2.326
2.576
3