Maths4UBETA

Student’s t and a single population mean

Estimate an unknown variance, select the tail and distinguish evidence from proof.

Try the quick check →
Lesson 1 of 6

Section 1 of 6 · Core · about 7 min

Which denominator gives an unbiased variance?

Variation of individual records and variation of a sample mean describe different quantities.

Worked example

Recover the sample mean, variance and estimated standard error

The observations are 3,6,7,8,113,\quad 6,\quad 7,\quad 8,\quad 11.

Find the original mean, unbiased sample variance and estimated standard error of the mean. Give exact values.

  1. The sum is 3535 and the sum of squares is 279279. The sample has 55 observations.

  2. After undoing any coding, the mean is 77. The unbiased variance is 279−(35)254=172\frac{279-\frac{\left(35\right)^2}{5}}{4}=\frac{17}{2}.

  3. Divide the standard deviation by 5\sqrt{5} to get estimated standard error 17010\frac{\sqrt{170}}{10}.

Worked example

Recover the sample mean, variance and estimated standard error

The coded observations y=x−30y=x-30 are −7,−2,1,1,2-7,\quad -2,\quad 1,\quad 1,\quad 2.

Find the original mean, unbiased sample variance and estimated standard error of the mean. Give exact values.

Try it on paper first.

  1. The sum is −5-5 and the sum of squares is 5959. The sample has 55 observations.

  2. After undoing any coding, the mean is 2929. The unbiased variance is 59−(−5)254=272\frac{59-\frac{\left(-5\right)^2}{5}}{4}=\frac{27}{2}.

  3. Divide the standard deviation by 5\sqrt{5} to get estimated standard error 33010\frac{3 \sqrt{30}}{10}.

Your turn

The observations are 9,11,12,12,169,\quad 11,\quad 12,\quad 12,\quad 16.

Find the original mean, unbiased sample variance and estimated standard error of the mean. Give exact values.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Section 2 of 6 · Core · about 6 min

Why use Student’s t instead of a normal reference?

With a small random sample from a normal population and unknown variance, the denominator estimates variability from the same observations.

Worked example

Identify the model from the sampling design

A random sample of twelve readings comes from one normal population with unknown variance.

Which procedure matches this design?

  1. There is a single sample from a normal population and its variance is unknown.

  2. Standardise the sample mean using s12\frac{s}{\sqrt{12}}. Under the null hypothesis this gives a one-sample tt statistic with 1111 degrees of freedom.

Your turn

An independent random sample from a normal population with unknown variance gives n=10, xˉ=12, s2=9n=10,\ \bar x=12,\ s^2=9.

Use μ\mu for the population mean.

Test H0:μ=10H_0:\mu=10 against H1:μ≠10H_1:\mu\ne10 at 55 per cent.

Give the statistic to 3 decimal places and the degrees of freedom.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Section 3 of 6 · Core · about 7 min

How do I choose one or two tails?

Write hypotheses about the population mean before looking at the sample. The level α\alpha sizes the fixed critical region. The p-value measures how far into the chosen tail the observed statistic falls.

AlternativeReference tail
μ>μ0\mu>\mu_0Upper
μ<μ0\mu<\mu_0Lower
μ≠μ0\mu\ne\mu_0Both

Worked example

Read the alternative hypothesis before the sample

A manufacturer tests whether a modification reduced the population mean processing time below its baseline.

Which alternative and reference tail match the study?

  1. The population mean is the parameter. The study calls for H1:μ<μ0H_1:\mu<\mu_0, so use the lower tail.

  2. Set H0:μ=μ0H_0:\mu=\mu_0. A sample giving a sufficiently negative test statistic supports a decrease, so use the lower-tail probability under H0H_0.

Your turn

A laboratory wants to detect any change from the target population mean, whichever direction it takes.

Which alternative and reference tail match the study?

Correct tail

Section 4 of 6 · Core · about 7 min

What do I calculate for an upper-tail decision?

Subtract the null mean from the observed mean, then divide by the estimated standard error.

The ten-degrees-of-freedom t curve with the right-hand 5% critical region starting at 1.812.
Choose the cutoff before seeing the sample.

Worked example

Test whether the mean bottle fill has risen

Assume independent fill volumes from a normal population with unknown variance. A random sample gives n=11n=11, xˉ=5.2 mL\bar x=5.2\,\mathrm{mL}, s2=4 mL2s^2=4\,\mathrm{mL}^2. At the 5%5\% level, test whether the population mean exceeds 4 mL4\,\mathrm{mL}.

  1. Let μ\mu be the population mean fill volume. Write H0:μ=4H_0:\mu=4 and H1:μ>4H_1:\mu>4 before computing anything. Normality and unknown variance give a one-sample tt-test with ν=11−1=10\nu=11-1=10.

  2. The estimated standard error is 211 mL\frac{2}{\sqrt{11}}\,\mathrm{mL}. Thus tobs=5.2−42/11≈1.990t_{\rm obs}=\frac{5.2-4}{2/\sqrt{11}}\approx1.990.

  3. Use MF19 row 1010, column 0.9500.950. The critical value is 1.8121.812. Since 1.990>1.8121.990>1.812, reject H0H_0. At the 5%5\% level there is evidence that the mean fill exceeds 4 mL4\,\mathrm{mL}.

  4. For an optional numerical p-value, use a Student tt cumulative distribution function with ν=10\nu=10. Subtract its value at the unrounded statistic from one, for example scipy.stats.t.sf(1.2*sqrt(11)/2, 10) with sqrt from math. This gives p≈0.0373p\approx0.0373. The MF19 row can bracket the p-value between 0.0250.025 and 0.0500.050 using cutoffs 2.2282.228 and 1.8121.812.

Your turn

An independent random sample from a normal population with unknown variance gives n=9, xˉ=415, s2=9n=9,\ \bar x=\frac{41}{5},\ s^2=9.

Use μ\mu for the population mean.

Test H0:μ=7H_0:\mu=7 against H1:μ>7H_1:\mu>7 at 55 per cent.

Give the test statistic to 3 decimal places and select the decision.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Decision at the stated significance level
The ten-degrees-of-freedom t curve with the observed upper tail starting at the statistic 1.990.
The observed statistic sets the p-value boundary.

Section 5 of 6 · Core · about 7 min

How does the decision change with a two-sided alternative?

With a symmetric t distribution, compare the distance from zero with the corresponding two-sided critical value.

Symmetric t curve with the two outside tails shaded beyond both critical cutoffs.

A two-sided test splits its significance level equally across the two tails.

Worked example

Check for a change in mean drying time

Assume independent drying times from a normal population with unknown variance. A random sample gives n=8n=8, xˉ=18\bar x=18 minutes and s2=16s^2=16 square minutes. At the 5%5\% level, test whether the population mean differs from 2121 minutes.

  1. Write H0:μ=21H_0:\mu=21 and H1:μ≠21H_1:\mu\ne21, where μ\mu is the population mean drying time in minutes. Both tails count, and ν=7\nu=7.

  2. Use s=4s=4 and compute tobs=18−214/8≈−2.121t_{\rm obs}=\frac{18-21}{4/\sqrt8}\approx-2.121. The statistic points to the left, so compare its distance from zero with the positive cutoff.

  3. Each tail has area 0.0250.025. From MF19 row 77, column 0.9750.975, the boundaries are −2.365-2.365 and 2.3652.365. Since ∣tobs∣=2.121<2.365|t_{\rm obs}|=2.121<2.365, do not reject H0H_0. At the 5%5\% level there is insufficient evidence that the mean differs from 2121 minutes.

  4. With a Student tt function, the two-sided p-value is twice the upper-tail probability beyond ∣tobs∣|t_{\rm obs}|, for example 2*scipy.stats.t.sf(3*sqrt(8)/4, 7). The critical-value route above completes the test using MF19.

Your turn

An independent random sample from a normal population with unknown variance gives n=16, xˉ=352, s2=4n=16,\ \bar x=\frac{35}{2},\ s^2=4.

Use μ\mu for the population mean.

Test H0:μ=19H_0:\mu=19 against H1:μ≠19H_1:\mu\ne19 at 55 per cent.

Give the test statistic to 3 decimal places and select the decision.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Decision at the stated significance level

Section 6 of 6 · Core · about 5 min

What does a non-significant result mean?

A sample may provide insufficient evidence against the null. That is a conclusion about this test at its specified level.

Worked example

Report insufficient evidence for a lower mean

At a drying station, an independent random sample from a normal population with unknown variance gives n=10n=10, xˉ=8.3\bar x=8.3 minutes and s2=16s^2=16 square minutes. Test whether the mean is below 99 minutes at the 5%5\% level.

  1. Set H0:μ=9H_0:\mu=9, H1:μ<9H_1:\mu<9 and ν=9\nu=9. The statistic is tobs=8.3−94/10≈−0.553t_{\rm obs}=\frac{8.3-9}{4/\sqrt{10}}\approx-0.553.

  2. Read 1.8331.833 from row 99, column 0.9500.950. By symmetry the lower-tail cutoff is −1.833-1.833, so −0.553-0.553 lies outside the rejection region.

  3. Do not reject H0H_0. At the 5%5\% level the sample gives insufficient evidence that the mean drying time is below 99 minutes. The data leave the original mean possible.

Your turn

An independent random sample from a normal population with unknown variance gives n=12, xˉ=6310, s2=9n=12,\ \bar x=\frac{63}{10},\ s^2=9.

Use μ\mu for the population mean.

Test H0:μ=6H_0:\mu=6 against H1:μ≠6H_1:\mu\ne6 at 55 per cent.

Give the test statistic to 3 decimal places and select the decision.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Decision at the stated significance level

Worked examples

Practise the method

Core practice

Question 1 of 4

0 / 4 checked in this collection

Question list

Core practice

Fresh variants

Exam-style

Mean, variance and standard error

3 marks

A random sample has n=9n=9, ∑u=72\sum u=72, ∑u2=596\sum u^2=596, where x=u+0x=u+0. Find the mean of x, its unbiased variance and the estimated standard error of its mean, exactly.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Full answer-format guide

Exact numbers: 3/2, sqrt(5), 2-sqrt(3), pi/6, 3*pi/2. Sets: {1,4}. Intervals: (3,5]; a round bracket excludes the endpoint. Infinity: inf; union: U; no solutions: empty. Separate coordinate pairs or triples with semicolons. Expressions: 2x^2+3x-1; equations: x^2=3x+1 or the polynomial equal to zero. Factors: x-1 ; x+2. Parameter fraction: numerator ; denominator. List integer answers individually.

Review the method

Progress stays in this browser. Create an account to save it or sign in.

Extra practice from this lesson

Recover the sample mean, variance and estimated standard error

The coded observations y=x−12y=x-12 are 23,28,28,32,3923,\quad 28,\quad 28,\quad 32,\quad 39.

Find the original mean, unbiased sample variance and estimated standard error of the mean. Give exact values.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Identify the model from the sampling design

A small independent random sample comes from one normal population whose standard deviation is unspecified.

Which procedure matches this design?

Appropriate method

Read the alternative hypothesis before the sample

Test for an increase in mean packet mass after a calibration.

Which alternative and reference tail match the study?

Correct tail

Use the alternative to select the reference tail

An independent random sample from a normal population with unknown variance gives n=6, xˉ=17, s2=9n=6,\ \bar x=17,\ s^2=9.

Use μ\mu for the population mean.

Test H0:μ=15H_0:\mu=15 against H1:μ>15H_1:\mu>15 at 55 per cent.

Give the test statistic to 3 decimal places and select the decision.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Decision at the stated significance level

Use the alternative to select the reference tail

An independent random sample from a normal population with unknown variance gives n=12, xˉ=295, s2=94n=12,\ \bar x=\frac{29}{5},\ s^2=\frac{9}{4}.

Use μ\mu for the population mean.

Test H0:μ=7H_0:\mu=7 against H1:μ≠7H_1:\mu\ne7 at 55 per cent.

Give the statistic to 3 decimal places and the p-value to 4 decimal places.

Keep intermediate values unrounded. Round the final answer to 4 decimal places.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Give your answer to 4 decimal places.

Use the alternative to select the reference tail

An independent random sample from a normal population with unknown variance gives n=13, xˉ=24, s2=16n=13,\ \bar x=24,\ s^2=16.

Use μ\mu for the population mean.

Test H0:μ=25H_0:\mu=25 against H1:μ<25H_1:\mu<25 at 55 per cent.

Give the test statistic to 3 decimal places and select the decision.

Round as requested in the label, or enter your calculator value. Decimal or fraction input is accepted.

Decision at the stated significance level

Apply it · original exam-style problems

Show your working on paper and compare it with the worked solution and marking guidance.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.