StatisticsHypothesis Tests4 of 8
Hypothesis Tests · 4

One-Sample t-Test for a Population Mean

When someone claims a population has a certain average and our sample gives a different average, we need a way to tell whether the claim is wrong or our sample was just a random fluke.

1

Judging the Gap Against Expected Random Bounce

Suppose a battery company claims its batteries last μ=500 hours\truth{\mu} = \truth{500}\text{ hours} on average, and a random batch of n=9n = 9 batteries gives a sample mean of xˉ=480 hours\stat{\bar{x}} = \stat{480}\text{ hours}. Why can't we just look at the 20-hour\spread{20}\text{-hour} gap by itself to decide whether the company's claim is wrong?

Why the Gap Alone Isn't Enough
μ=500\htmlClass{lc-violet}{\mu} = \htmlClass{lc-violet}{500}
hours\text{hours}
n=9xˉ=480 hoursn = 9 \quad \htmlClass{lc-blue}{\bar{x}} = \htmlClass{lc-blue}{480}\text{ hours}
440\htmlClass{lc-mute}{440}
460\htmlClass{lc-mute}{460}
480\htmlClass{lc-blue}{480}
500\htmlClass{lc-violet}{500}
520\htmlClass{lc-mute}{520}
540\htmlClass{lc-mute}{540}
20 hours\htmlClass{lc-pink}{20\text{ hours}}
World 1\text{World 1}
479 to 481\text{479 to 481}
20 hours\htmlClass{lc-pink}{20\text{ hours}}
xˉ=480\htmlClass{lc-blue}{\bar{x} = 480}
μ=500\htmlClass{lc-violet}{\mu = 500}
300\htmlClass{lc-mute}{300}
400\htmlClass{lc-mute}{400}
500\htmlClass{lc-mute}{500}
600\htmlClass{lc-mute}{600}
hours\htmlClass{lc-mute}{\text{hours}}
World 2\text{World 2}
310 to 640\text{310 to 640}
20 hours\htmlClass{lc-pink}{20\text{ hours}}
xˉ=480\htmlClass{lc-blue}{\bar{x} = 480}
μ=500\htmlClass{lc-violet}{\mu = 500}
300\htmlClass{lc-mute}{300}
400\htmlClass{lc-mute}{400}
500\htmlClass{lc-mute}{500}
600\htmlClass{lc-mute}{600}
hours\htmlClass{lc-mute}{\text{hours}}
2

Measuring the Gap in Standard Errors

We want to find how many expected random wobbles (standard errors) sit between our sample mean xˉ=480 hours\stat{\bar{x}} = \stat{480}\text{ hours} and the claimed mean of 500 hours\truth{500}\text{ hours} when our 99 batteries have a sample standard deviation of s=30 hours\spread{s} = \spread{30}\text{ hours}.

The t-Statistic and Degrees of Freedom
nn
=9{} = 9
xˉ\htmlClass{lc-blue}{\bar{x}}
=480{} = \htmlClass{lc-blue}{480}
s\htmlClass{lc-pink}{s}
=30{} = \htmlClass{lc-pink}{30}
t\htmlClass{lc-pink}{t}
=  ?{} = \;?
440\htmlClass{lc-mute}{440}
460\htmlClass{lc-mute}{460}
480\htmlClass{lc-blue}{480}
500\htmlClass{lc-violet}{500}
520\htmlClass{lc-mute}{520}
540\htmlClass{lc-mute}{540}
20 hours\htmlClass{lc-pink}{20\text{ hours}}

To measure the gap in standard errors, we divide the distance from the claim by the standard error of the sample mean:

t\displaystyle \steps{t} =xˉ−μ0⏞gap from claimsn⏟standard error,df=n−1⏟degrees of freedom\displaystyle = \frac{\overbrace{\stat{\bar{x}} - \truth{\mu_0}}^{\text{gap from claim}}}{\underbrace{\spread{\tfrac{s}{\sqrt{n}}}}_{\text{standard error}}}, \qquad \underbrace{df = n - 1}_{\text{degrees of freedom}}

The subscript 00 in μ0\truth{\mu_0} just marks the specific number claimed in the null hypothesis (here, μ0=500 hours\truth{\mu_0} = \truth{500}\text{ hours}), not the number zero.

Text solution
Standard error of the sample meanDivide the single-battery spread s=30 hours\spread{s} = \spread{30}\text{ hours} by n\sqrt{n} to find how much a 99-battery average naturally wobbles.
Standard Error\displaystyle \text{Standard Error} =sn\displaystyle = \frac{\spread{s}}{\sqrt{n}} =309\displaystyle = \frac{\spread{30}}{\sqrt{9}} =303\displaystyle = \frac{\spread{30}}{3} =10 hours\displaystyle = \spread{10}\text{ hours}
Gap in standard errors (t\steps{t}-statistic)Divide the gap between the sample mean and the claimed mean by the 10-hour\spread{10}\text{-hour} standard error.
t\displaystyle \steps{t} =xˉ−μ0sn\displaystyle = \frac{\stat{\bar{x}} - \truth{\mu_0}}{\spread{\tfrac{s}{\sqrt{n}}}} =480−50010\displaystyle = \frac{\stat{480} - \truth{500}}{\spread{10}} =−2010\displaystyle = \frac{\spread{-20}}{\spread{10}} =−2.0\displaystyle = \steps{-2.0}
Degrees of freedomSubtract 11 from the sample size to set the tail thickness of the tt-curve.
df\displaystyle df =n−1\displaystyle = n - 1 =9−1\displaystyle = 9 - 1 =8\displaystyle = 8

So our 480-hour\stat{480}\text{-hour} sample average sits 2.0\steps{2.0} standard errors below the 500-hour\truth{500}\text{-hour} claim on the df=8df = 8 tt-curve.

When the individual battery lifetimes cluster more tightly, the standard error sn\spread{\tfrac{s}{\sqrt{n}}} shrinks. More of those smaller standard errors fit inside the 20-hour\spread{20}\text{-hour} gap, pushing t\steps{t} further into the tail of the df=8df = 8 tt-curve.

Even when the sample average stays at 480 hours, the spread of the 9 batteries changes the size of a standard error step and how many steps fit in that 20-hour gap.
3

Running a One-Sample tt-Test

Now that we know our sample sits 2.0\steps{2.0} standard errors below the claim (t=−2.0\steps{t} = \steps{-2.0}), we want to find the p\share{p}-value (the probability, if the 500-hour\truth{500}\text{-hour} claim is true, of getting a random 99-battery average at least 20 hours\spread{20}\text{ hours} away from 500 hours\truth{500}\text{ hours} by pure luck) and decide whether to reject the company's claim at α=0.05\cutoff{\alpha} = \cutoff{0.05}.

Running a One-Sample t-Test
claim: μ\displaystyle \text{claim: } \truth{\mu} =500 hours\displaystyle = \truth{500} \text{ hours}
n\displaystyle n =9,xˉ\displaystyle = 9, \quad \stat{\bar{x}} =480,s\displaystyle = \stat{480}, \quad \spread{s} =30\displaystyle = \spread{30}
α\displaystyle \cutoff{\alpha} =0.05\displaystyle = \cutoff{0.05}
reject the claim?\displaystyle \text{reject the claim?}
df=8df = 8
−2.00\htmlClass{lc-pink}{-2.00}
0\htmlClass{lc-pink}{0}
+2.00\htmlClass{lc-pink}{+2.00}
two-tail\text{two-tail}
one-tail\text{one-tail}
0.10\htmlClass{lc-green}{0.10}
0.05\htmlClass{lc-green}{0.05}
0.05\htmlClass{lc-green}{0.05}
0.025\htmlClass{lc-green}{0.025}
df=7df = 7
1.8951.895
2.3652.365
df=8df = 8
1.860\htmlClass{lc-pink}{1.860}
<<
2.00\htmlClass{lc-pink}{2.00}
<<
2.306\htmlClass{lc-pink}{2.306}
df=9df = 9
1.8331.833
2.2622.262
Text solution
Hypotheses and significance levelSet the company's claim as the null hypothesis and test for a difference in either direction at the α=0.05\cutoff{\alpha} = \cutoff{0.05} cutoff.
H0:μ\displaystyle H_0: \truth{\mu} =500 hours,Ha:μ≠500 hours,α\displaystyle = \truth{500}\text{ hours}, \qquad H_a: \truth{\mu} \neq \truth{500}\text{ hours}, \qquad \cutoff{\alpha} =0.05\displaystyle = \cutoff{0.05}
Conditions for trusting the tt-curveCheck that the 99 batteries are a random sample and that their plotted lifetimes look roughly bell-shaped with no strong skewness or extreme outliers (needed whenever n<30n < 30).
Random sample of n=9<30  ⟹  check that the plotis roughly bell-shapedwith no extreme outliers\displaystyle \begin{aligned} &\text{Random sample of } n = 9 < 30 \\ &\implies \text{check that the plot} \\ &\qquad \text{is roughly bell-shaped} \\ &\qquad \text{with no extreme outliers} \end{aligned}
Bracketing ∣t∣\steps{|t|} on the df=8df = 8 rowIgnore the negative sign on t=−2.00\steps{t} = \steps{-2.00} and find the two values it sits between on the df=8df = 8 row of the tt-table.
1.860<2.00<2.306(on row df=8)\displaystyle \steps{1.860} < \steps{2.00} < \steps{2.306} \quad (\text{on row } df = 8)
Finding the two-tailed p\share{p}-valueDouble the one-tail column headers (0.05\share{0.05} and 0.025\share{0.025}) because Ha:μ≠500H_a: \truth{\mu} \neq \truth{500} shades both tails.
2(0.025)<p<2(0.05)  ⟹  0.05<p<0.10(calculator: p≈0.08)\displaystyle \begin{aligned} 2(\share{0.025}) &< \share{p} < 2(\share{0.05}) \\ \implies \share{0.05} &< \share{p} < \share{0.10} \\ &\quad (\text{calculator: } \share{p} \approx \share{0.08}) \end{aligned}
Decision against α=0.05\cutoff{\alpha} = \cutoff{0.05}Compare the p\share{p}-value against the 0.05\cutoff{0.05} cutoff to decide whether random luck is still a plausible explanation.
p>0.05  ⟹  fail to reject H0\displaystyle \share{p} > \cutoff{0.05} \implies \text{fail to reject } H_0

Because a random 99-pack of batteries lands at least 20 hours\spread{20}\text{ hours} from 500 hours\truth{500}\text{ hours} about 8%\share{8\%} of the time by pure luck when the 500-hour\truth{500}\text{-hour} claim is true, we do not have convincing evidence that the true average battery life differs from 500 hours\truth{500}\text{ hours}.

A tt-table only bounds the p\share{p}-value between two values (0.05<p<0.10\share{0.05} < \share{p} < \share{0.10}) rather than giving the calculator's 0.08\share{0.08}, but that bracket is all we need to see that p>0.05\share{p} > \cutoff{0.05}.

If the standard error stays at 10 hours\spread{10}\text{ hours}, moving the sample mean further from 500 hours\truth{500}\text{ hours} pushes −t\steps{-t} and +t\steps{+t} further into the tails. Once the sample mean is more than 2.306\steps{2.306} standard errors from the claim, the combined tail area drops below 0.05\cutoff{0.05}.

Drag the sample mean away from the 500-hour claim to see how many standard-error steps it takes to push the two-tail area below 0.05.
4

How Sample Size Changes the Test

What happens to our test if we get the exact same sample mean (xˉ=480 hours\stat{\bar{x}} = \stat{480}\text{ hours}) and the exact same sample standard deviation (s=30 hours\spread{s} = \spread{30}\text{ hours}), but from a sample of n=36n = 36 batteries instead of n=9n = 9?

How Sample Size Changes the Test
n=9,s=30n = 9, \quad \htmlClass{lc-pink}{s} = \htmlClass{lc-pink}{30}
460\htmlClass{lc-mute}{460}
480\htmlClass{lc-blue}{480}
500\htmlClass{lc-violet}{500}
520\htmlClass{lc-mute}{520}
10\htmlClass{lc-pink}{10}
10\htmlClass{lc-pink}{10}
20 hours\htmlClass{lc-pink}{20\text{ hours}}
t\htmlClass{lc-pink}{t}
=−2.0{} = \htmlClass{lc-pink}{-2.0}
n=36,s=30n = 36, \quad \htmlClass{lc-pink}{s} = \htmlClass{lc-pink}{30}
460\htmlClass{lc-mute}{460}
480\htmlClass{lc-blue}{480}
500\htmlClass{lc-violet}{500}
520\htmlClass{lc-mute}{520}
20 hours\htmlClass{lc-pink}{20\text{ hours}}
t\htmlClass{lc-pink}{t}
=  ?{} = \;?
Text solution
Smaller standard error for n=36n = 36Divide the same 30-hour\spread{30}\text{-hour} sample spread by 36\sqrt{36} to see how much a 3636-battery average wobbles.
Standard Error\displaystyle \text{Standard Error} =sn\displaystyle = \frac{\spread{s}}{\sqrt{n}} =3036\displaystyle = \frac{\spread{30}}{\sqrt{36}} =306\displaystyle = \frac{\spread{30}}{6} =5 hours\displaystyle = \spread{5}\text{ hours}
Larger ∣t∣\steps{|t|} and more degrees of freedomMeasure the same −20-hour\spread{-20}\text{-hour} gap in units of the new 5-hour\spread{5}\text{-hour} standard error on the df=35df = 35 curve.
t\displaystyle \steps{t} =480−5005\displaystyle = \frac{\stat{480} - \truth{500}}{\spread{5}} =−205\displaystyle = \frac{\spread{-20}}{\spread{5}} =−4.0,df\displaystyle = \steps{-4.0}, \qquad df =36−1\displaystyle = 36 - 1 =35\displaystyle = 35
Tail probability and decisionAround df=35df = 35 on the tt-table, ∣t∣=4.0\steps{|t|} = \steps{4.0} sits past the furthest column on the right, making the two-tail area tiny compared to α=0.05\cutoff{\alpha} = \cutoff{0.05}.
p<0.001(calculator: p≈0.0003)<0.05  ⟹  reject H0\displaystyle \begin{aligned} \share{p} &< \share{0.001} \\ &\quad (\text{calculator: } \share{p} \approx \share{0.0003}) \\ &< \cutoff{0.05} \implies \text{reject } H_0 \end{aligned}

So the exact same 20-hour\spread{20}\text{-hour} gap that could easily be random noise in a batch of 99 batteries (p≈0.08\share{p} \approx \share{0.08}) becomes overwhelming evidence against the 500-hour\truth{500}\text{-hour} claim in a batch of 3636 batteries (p≈0.0003\share{p} \approx \share{0.0003}).

Even when the sample mean and spread stay the same, a larger sample size nn shrinks the standard error sn\spread{\tfrac{s}{\sqrt{n}}} and thins the tails of the tt-curve (df=n−1df = n - 1). The smaller standard error pushes t\steps{t} further out, and the thinner tails leave less area beyond it, so the shaded p\share{p}-value tails nearly vanish.

With the same 20-hour gap and 30-hour spread, testing more batteries shrinks the chance variation of the average and turns random luck into clear evidence against the 500-hour claim.

Key concepts

When you test a claim H0:μ=μ0H_0: \truth{\mu} = \truth{\mu_0} about a population mean and only have the sample standard deviation s\spread{s} to estimate the spread, use a one-sample tt-test:

t\displaystyle \steps{t} =xˉ−μ0sn,df\displaystyle = \frac{\stat{\bar{x}} - \truth{\mu_0}}{\spread{\tfrac{s}{\sqrt{n}}}}, \qquad df =n−1\displaystyle = n - 1
When you can (and cannot) trust the tt-curve

The sample must be random, and either the sample size is large (n≥30n \ge 30) or a plot of the sample looks roughly bell-shaped with no strong skewness or extreme outliers (like n=9n = 9 roughly bell-shaped battery lifetimes). Do not use the tt-test if the sample was pulled from a single shelf, or if a small sample (n<30n < 30) is strongly skewed or has an extreme outlier.

Turning the gap into t\steps{t}

Divide the gap xˉ−μ0\stat{\bar{x}} - \truth{\mu_0} (such as 480−500=−20 hours\stat{480} - \truth{500} = \spread{-20}\text{ hours}) by the expected random wobble of the sample average, sn\spread{\tfrac{s}{\sqrt{n}}} (such as 309=10 hours\tfrac{\spread{30}}{\sqrt{9}} = \spread{10}\text{ hours}), to count how many standard errors the sample sits from the claim (t=−2.0\steps{t} = \steps{-2.0} on the df=8df = 8 curve).

One tail vs. two tails on the tt-table

Scan row df=n−1df = n - 1 for ∣t∣\steps{|t|} (ignoring any minus sign). If HaH_a tests a single direction (μ<500\truth{\mu} < \truth{500} or μ>500\truth{\mu} > \truth{500}), read the one-tail probability headers directly; if HaH_a tests either direction (μ≠500\truth{\mu} \neq \truth{500}), double the one-tail headers to include both tails.

Making the call

If p<α\share{p} < \cutoff{\alpha}, reject H0H_0 (convincing evidence for HaH_a). If p>α\share{p} > \cutoff{\alpha}, fail to reject H0H_0, which means the gap could plausibly be random sample variation, never that we proved H0H_0 is true.

5

Practice

1

A cereal company claims its boxes contain μ=368 grams\truth{\mu} = \truth{368}\text{ grams} of cereal on average. You weigh a random sample of n=16n = 16 boxes and find a sample mean of xˉ=362 grams\stat{\bar{x}} = \stat{362}\text{ grams} with a sample standard deviation of s=8 grams\spread{s} = \spread{8}\text{ grams}. Find the standard error, the t\steps{t}-statistic, and the degrees of freedom, and explain in plain language what the t\steps{t}-statistic tells you.

First find how much a 1616-box average naturally bounces around (sn\spread{\tfrac{s}{\sqrt{n}}}), then measure the gap xˉ−μ0\stat{\bar{x}} - \truth{\mu_0} in units of that standard error.

Standard error
Standard Error\displaystyle \text{Standard Error} =sn\displaystyle = \frac{\spread{s}}{\sqrt{n}} =816\displaystyle = \frac{\spread{8}}{\sqrt{16}} =84\displaystyle = \frac{\spread{8}}{4} =2 grams\displaystyle = \spread{2}\text{ grams}
(Watch out: divide s=8\spread{s} = \spread{8} by 16=4\sqrt{16} = 4, not by 1616 itself. Dividing by 1616 gives a standard error of 0.5 grams0.5\text{ grams} and t=−12.0t = -12.0, while forgetting n\sqrt{n} altogether gives t=−68=−0.75t = -\tfrac{6}{8} = -0.75.)
t\steps{t}-statistic and degrees of freedom
t\displaystyle \steps{t} =xˉ−μ0Standard Error\displaystyle = \frac{\stat{\bar{x}} - \truth{\mu_0}}{\spread{\text{Standard Error}}} =362−3682\displaystyle = \frac{\stat{362} - \truth{368}}{\spread{2}} =−62\displaystyle = \frac{\spread{-6}}{\spread{2}} =−3.0,df\displaystyle = \steps{-3.0}, \qquad df =n−1\displaystyle = n - 1 =16−1\displaystyle = 16 - 1 =15\displaystyle = 15
(Keep the order xˉ−μ0\stat{\bar{x}} - \truth{\mu_0}: subtracting 368−362\truth{368} - \stat{362} flips the sign to +3.0+3.0.)
MeaningThe t\steps{t}-statistic of −3.0\steps{-3.0} means your 1616-box sample average lies 3.0\steps{3.0} standard errors (expected random wobbles) below the company's 368-gram\truth{368}\text{-gram} claim.
2

In each scenario below, decide whether the conditions for trusting the tt-distribution in a one-sample tt-test for a mean are met, and explain why or why not: (a) A quality inspector takes a random sample of n=12n = 12 steel bolts, and a plot of their lengths looks roughly bell-shaped with no outliers. (b) An auditor takes a random sample of n=10n = 10 hospital bills, and a plot of the bills shows strong right skewness with one extreme outlier. (c) A student weighs n=15n = 15 loaves of bread all pulled from the front shelf of one grocery store on Monday morning, and a plot of the weights is roughly bell-shaped with no outliers.

Check both conditions in every scenario: how the sample was chosen (Random) and whether the sample size or data plot allows the tt-curve (Normal or Large Sample).

(a) MetThe bolts are a random sample, and although n=12n = 12 is under 3030, the plot is roughly bell-shaped with no outliers. (Watch out: do not say the condition fails just because n<30n < 30; a small sample is fine when its plot is roughly bell-shaped without outliers.)
(b) Not metAlthough the sample is random, the sample size is small (n=10<30n = 10 < 30) and the data show strong right skewness and an extreme outlier, violating the Normal or Large Sample condition.
(c) Not metPulling all 1515 loaves from the front shelf of one store on one morning is not a random sample, violating the Random condition. (Watch out: a bell-shaped plot with no outliers cannot fix a non-random sample.)
3

A coffee shop claims its medium cups hold 12.0 ounces\truth{12.0}\text{ ounces} on average. Walking in specifically to test whether the shop is underfilling its cups, you measure a random sample of n=25n = 25 cups (whose fill amounts are roughly bell-shaped with no outliers) and find xˉ=11.7 ounces\stat{\bar{x}} = \stat{11.7}\text{ ounces} and s=0.6 ounces\spread{s} = \spread{0.6}\text{ ounces}. On the df=24df = 24 row of a tt-table, the columns with one-tail probabilities 0.025\share{0.025}, 0.01\share{0.01}, and 0.005\share{0.005} have t\steps{t}-values 2.064\steps{2.064}, 2.492\steps{2.492}, and 2.797\steps{2.797}. State the hypotheses, compute t\steps{t}, use the table to bound the p\share{p}-value, and state your conclusion at α=0.01\cutoff{\alpha} = \cutoff{0.01}.

Testing whether the shop is "underfilling its cups" points in one direction for HaH_a. Once you bracket ∣t∣\steps{|t|} on the df=24df = 24 row, check whether HaH_a calls for one tail or two before reading the probability headers.

Hypotheses
H0:μ\displaystyle H_0: \truth{\mu} =12.0 ounces,Ha:μ<12.0 ounces\displaystyle = \truth{12.0}\text{ ounces}, \qquad H_a: \truth{\mu} < \truth{12.0}\text{ ounces}
Standard error and t\steps{t}-statistic
Standard Error=0.625=0.65=0.12 ouncest=11.7−12.00.12=−0.30.12=−2.50,df=25−1=24\displaystyle \begin{aligned} \text{Standard Error} &= \frac{\spread{0.6}}{\sqrt{25}} = \frac{\spread{0.6}}{5} \\ &= \spread{0.12}\text{ ounces} \\ \steps{t} &= \frac{\stat{11.7} - \truth{12.0}}{\spread{0.12}} \\ &= \frac{\spread{-0.3}}{\spread{0.12}} = \steps{-2.50}, \\ df &= 25 - 1 = 24 \end{aligned}
Bounding the p\share{p}-valueIgnoring the minus sign, ∣t∣=2.50\steps{|t|} = \steps{2.50} falls between 2.492\steps{2.492} and 2.797\steps{2.797} on the df=24df = 24 row. Because Ha:μ<12.0H_a: \truth{\mu} < \truth{12.0} is one-sided, we read the one-tail headers directly:
2.492<2.50<2.797  ⟹  0.005<p<0.01\displaystyle \steps{2.492} < \steps{2.50} < \steps{2.797} \implies \share{0.005} < \share{p} < \share{0.01}
(Watch out: do not double the one-tail areas for a one-sided test. Doubling them gives 0.01<p<0.020.01 < p < 0.02, which reverses the decision at α=0.01\cutoff{\alpha} = \cutoff{0.01}.)
ConclusionSince p<0.01\share{p} < \cutoff{0.01}, we reject H0H_0: there is convincing evidence that the true average fill is less than 12.0 ounces\truth{12.0}\text{ ounces}.
4

A tire maker claims its tires last μ=60,000 miles\truth{\mu} = \truth{60{,}000}\text{ miles} on average. A consumer group tests a random sample of n=11n = 11 tires to see whether the true average differs from 60,000 miles\truth{60{,}000}\text{ miles} in either direction (at α=0.05\cutoff{\alpha} = \cutoff{0.05}) and gets t=2.10\steps{t} = \steps{2.10}, which leaves an area of 0.031\share{0.031} in the right tail of the df=10df = 10 tt-curve. A student writes: "Because p=0.031\share{p} = \share{0.031} is less than 0.05\cutoff{0.05}, we reject H0H_0; if p\share{p} had been greater than 0.05\cutoff{0.05}, it would have proved the tires really average 60,000 miles\truth{60{,}000}\text{ miles}." Find the two mistakes in the student's reasoning, state the correct p\share{p}-value and conclusion, and explain what that p\share{p}-value means in context.

Check how "differs... in either direction" affects the single-tail area of 0.031\share{0.031}, and ask what failing to reject H0H_0 actually says about the claim.

Mistake 1 (one tail instead of two)Because Ha:μ≠60,000 milesH_a: \truth{\mu} \neq \truth{60{,}000}\text{ miles} is two-sided, both tails beyond t=±2.10\steps{t} = \pm \steps{2.10} must be included, so the single-tail area of 0.031\share{0.031} must be doubled:
p\displaystyle \share{p} =2(0.031)\displaystyle = 2(\share{0.031}) =0.062\displaystyle = \share{0.062}
Since p=0.062>0.05\share{p} = \share{0.062} > \cutoff{0.05}, we fail to reject H0H_0, not reject H0H_0.
Mistake 2 (claiming to prove H0H_0)Failing to reject H0H_0 never proves that the true mean really is 60,000 miles\truth{60{,}000}\text{ miles}; it only means we do not have convincing evidence that the true mean differs from 60,000 miles\truth{60{,}000}\text{ miles}.
Meaning of p=0.062\share{p} = \share{0.062}If the true average tire life really is 60,000 miles\truth{60{,}000}\text{ miles}, there is a 6.2%\share{6.2\%} chance of getting a random 1111-tire sample average at least this far from 60,000 miles\truth{60{,}000}\text{ miles} in either direction by random luck alone. (Watch out: do not say there is a 6.2%6.2\% chance that the company's 60,000-mile\truth{60{,}000}\text{-mile} claim is true.)
5

An engineer tests whether the mean lifetime of an LED bulb differs from μ0=1,000 hours\truth{\mu_0} = \truth{1{,}000}\text{ hours}. A random sample of n=4n = 4 bulbs gives xˉ=985 hours\stat{\bar{x}} = \stat{985}\text{ hours} and s=20 hours\spread{s} = \spread{20}\text{ hours} (t=−1.50\steps{t} = \steps{-1.50}, df=3df = 3, two-tailed p=0.23\share{p} = \share{0.23}). (a) Give the two reasons why testing only 44 bulbs makes it hard to rule out random luck for this 15-hour\spread{15}\text{-hour} gap. (b) If a larger random sample gets the exact same sample mean (xˉ=985 hours\stat{\bar{x}} = \stat{985}\text{ hours}) and sample standard deviation (s=20 hours\spread{s} = \spread{20}\text{ hours}), how many bulbs nn would be needed for the 15-hour\spread{15}\text{-hour} gap to sit 3.0\steps{3.0} standard errors below the claim (t=−3.0\steps{t} = \steps{-3.0})?

For (a), look at how a small nn affects both the standard error and the tails of the tt-curve. For (b), set t=985−1,00020n=−3.0\steps{t} = \dfrac{\stat{985} - \truth{1{,}000}}{\tfrac{\spread{20}}{\sqrt{n}}} = \steps{-3.0} and solve for n\sqrt{n} first.

(a) Two reasonsFirst, with only n=4n = 4 bulbs, the standard error is large (204=10 hours\tfrac{\spread{20}}{\sqrt{4}} = \spread{10}\text{ hours}), so a 15-hour\spread{15}\text{-hour} gap is only 1.50\steps{1.50} standard errors below the claim. Second, estimating s\spread{s} from only 44 bulbs leaves just df=4−1=3df = 4 - 1 = 3 degrees of freedom, giving the tt-curve very fat tails with a large area (p=0.23\share{p} = \share{0.23}) beyond ±1.50\pm \steps{1.50}.
(b) Sample size needed for t=−3.0\steps{t} = \steps{-3.0}
t=985−1,00020n=−1520n=−3.0  ⟹  20n=153.0=5 hoursn=205=4  ⟹  n=42=16 bulbs\displaystyle \begin{aligned} \steps{t} &= \frac{\stat{985} - \truth{1{,}000}}{\tfrac{\spread{20}}{\sqrt{n}}} \\ &= \frac{\spread{-15}}{\tfrac{\spread{20}}{\sqrt{n}}} = \steps{-3.0} \\ \implies \frac{\spread{20}}{\sqrt{n}} &= \frac{\spread{15}}{\steps{3.0}} = \spread{5}\text{ hours} \\ \sqrt{n} &= \frac{\spread{20}}{\spread{5}} = 4 \\ \implies n &= 4^2 = 16\text{ bulbs} \end{aligned}
(Watch out: to double ∣t∣\steps{|t|} from 1.50\steps{1.50} to 3.0\steps{3.0}, do not simply double the sample size from n=4n = 4 to n=8n = 8, which only gives t=−15208≈−2.12t = -\dfrac{15}{\tfrac{20}{\sqrt{8}}} \approx -2.12; because the standard error divides by n\sqrt{n}, you must quadruple nn to 1616 bulbs.)