Applied Mathematics IV: Inferential Statistics, Sampling and the t-Test

Unit VI of Section B2 moves from describing a sample to drawing conclusions about the population: population and sample, random and systematic sampling, parameter and statistic, the sampling distribution and the central limit theorem, and the one-sample t-test.
Overview

1. Population, Sample and Sampling Methods

1 min read · 2 parts

A population is the complete set of units under study (all students of a state); a sample is a part of it actually examined. We sample because a census is costly, slow and sometimes destructive (testing the life of every bulb destroys it). A representative sample mirrors the population in the features that matter; a non-representative one does not (surveying only phone-owners about internet use). In simple random sampling every unit has the same chance and every possible sample of size n is equally likely, as when numbered slips are drawn or random numbers chosen. In systematic random sampling a random starting unit is chosen and then every k-th unit follows, with k = N ÷ n; for N = 1,000 and n = 50, k = 20, so a start between 1 and 20 is picked at random and every twentieth unit after it. Its risk is a hidden pattern in the list that coincides with the interval.

Parameter and statistic
QuantityPopulation: parameterSample: statistic
Meanμx̄
Standard deviationσs
ProportionPp̂
SizeNn
Systematic random sampling
  1. N = 1,000 units, n = 50 wanted
  2. k = N ÷ n = 20
  3. Random start between 1 and 20
  4. Then every twentieth unitRisk: a hidden pattern in the list

A population is the complete set of units under study (all students of a state); a sample is a part of it actually examined. We sample because a census is costly, slow and sometimes…

2. Statistics, Sampling Distribution and the Central Limit Theorem

1 min read · 1 part

A parameter is a fixed (usually unknown) number describing a population, such as μ; a statistic is a number computed from a sample, such as the sample mean x̄, used to estimate the parameter. Different samples give different values of x̄, so a statistic is itself a random variable, and its distribution over all possible samples is the sampling distribution. The limitation is that a statistic is a sample estimate, never exactly the parameter, so generalising from it carries an error that shrinks as n grows. The central limit theorem says that for a large sample (n of about 30 or more) the sampling distribution of x̄ is approximately normal with mean μ and standard deviation (standard error) σ ÷ √n, whatever the shape of the population. With σ = 20 and n = 100 the standard error is 20 ÷ 10 = 2, so the sample mean is likely to fall within about 4 of μ (two standard errors) 95 per cent of the time. Quadrupling n halves the standard error.

Population, sampling distribution and sample
LevelCentreSpread
Populationμσ
Sampling distribution of x̄μσ ÷ √n (standard error)
One samplex̄s

A parameter is a fixed (usually unknown) number describing a population, such as μ; a statistic is a number computed from a sample, such as the sample mean x̄, used to estimate the…

3. Hypothesis and the One-Sample t-Test

1 min read

A hypothesis is a statement about a population parameter to be tested. The null hypothesis H₀ says there is no difference or effect (μ = μ₀); the alternative hypothesis H₁ says there is (μ ≠ μ₀, or μ > μ₀, or μ < μ₀). We test H₀ at a significance level α, usually 5 per cent, the chance of wrongly rejecting a true H₀. When σ is unknown and the sample is small, we use the t-test: t = (x̄ − μ₀) ÷ (s ÷ √n) with degrees of freedom df = n − 1, the number of values free to vary after the mean is fixed. We compare |t| with the critical value of the t-table at α and df; if |t| exceeds it, reject H₀, otherwise fail to reject H₀ (we never "prove" H₀). Statistical significance means the difference is unlikely to be chance alone, not that it is large or important.

A hypothesis is a statement about a population parameter to be tested. The null hypothesis H₀ says there is no difference or effect (μ = μ₀); the alternative hypothesis H₁ says there is (μ…

4. A Worked t-Test and Its Steps

1 min read · 2 parts

Worked example. A maker claims a bulb lasts 50 hours on average. A sample of n = 9 bulbs gives x̄ = 54 and s = 6. The standard error is 6 ÷ √9 = 2, so t = (54 − 50) ÷ 2 = 2.0 with df = 8. The two-tailed 5 per cent critical value for df = 8 is 2.306. Since 2.0 < 2.306, we fail to reject H₀: the sample does not give enough evidence that the mean differs from 50. A second sample of n = 16 with x̄ = 105, s = 12 tested against μ₀ = 100 has SE = 3, t = 1.667 and critical value 2.131 (df = 15), again not significant. Larger n, or a larger gap, would make t exceed the critical value.

Steps of a one-sample t-test
StepActionExample
1State H₀ and H₁H₀: μ = 50; H₁: μ ≠ 50
2Choose α5 per cent
3Compute t = (x̄ − μ₀) ÷ (s ÷ √n)(54 − 50) ÷ 2 = 2.0
4Find df = n − 1 and the critical valuedf = 8, 2.306
5Decide2.0 < 2.306: fail to reject H₀

Worked example. A maker claims a bulb lasts 50 hours on average. A sample of n = 9 bulbs gives x̄ = 54 and s = 6. The standard error is 6 ÷ √9 = 2, so t = (54 − 50) ÷ 2 = 2.0 with df = 8.…

5. More Worked Problems: Standard Error and a Confidence Interval

1 min read · 2 parts

A sample of 25 items has mean 52 and standard deviation s = 6, and the claimed population mean is 50. The standard error of the mean is s/√n = 6/5 = 1.2. The test statistic is t = (52 − 50)/1.2 = 1.667 with n − 1 = 24 degrees of freedom. The two-tailed critical value of t at the 5 per cent level for 24 degrees of freedom is 2.064, and since 1.667 is smaller, the null hypothesis that the mean is 50 is not rejected. A 95 per cent confidence interval for the population mean is 52 ± 2.064 × 1.2, that is (49.52, 54.48), and the claimed value 50 lies inside it, which agrees with the test. If the population standard deviation is known, say σ = 20, the standard error of a sample mean of size 100 is 20/√100 = 2, and the sample mean is within about 4 of the population mean 95 times in 100.

Results
ItemWorkingResult
Standard error6 / √251.2
t statistic(52 − 50) / 1.21.667
Decision (df = 24, 5%, t = 2.064)1.667 < 2.064Do not reject H₀
95% interval52 ± 2.064 × 1.2(49.52, 54.48)
⚠️ Failing to reject is not proving
A result that does not reject the null hypothesis means the sample gives no strong evidence against it; it does not prove that the mean is exactly 50. Examiners also test the degrees of freedom, n − 1, and the use of the t distribution, not the normal, when s is estimated from a small sample.

A sample of 25 items has mean 52 and standard deviation s = 6, and the claimed population mean is 50. The standard error of the mean is s/√n = 6/5 = 1.2. The test statistic is t = (52 −…

Sampling Error and Non-Sampling Error

1 min read · 1 part

Two kinds of error affect a survey. Sampling error is the difference between a statistic and the population value that arises only because a sample, not the whole population, was studied, and it falls as the sample size grows. Non-sampling error comes from faulty questions, wrong recording, non-response and biased selection, and it does not fall when the sample grows. A large but biased sample is therefore worse than a smaller random one.

Sampling error versus non-sampling error
Sampling error
  • Arises only from studying a sample
  • Falls as the sample grows
Non-sampling error
  • Faulty questions, non-response, bias
  • Does not fall as the sample grows
A large but biased sample is worse than a smaller random one.

Two kinds of error affect a survey. Sampling error is the difference between a statistic and the population value that arises only because a sample, not the whole population, was studied…

Key takeaways

  • A parameter describes a population (μ, σ); a statistic describes a sample (x̄, s) and estimates it with error.
  • Systematic sampling takes every k-th unit with k = N ÷ n after a random start.
  • Central limit theorem: for large n the sample mean is approximately normal with mean μ and standard error σ ÷ √n.
  • One-sample t-test: t = (x̄ − μ₀) ÷ (s ÷ √n), df = n − 1; reject H₀ if |t| exceeds the critical value.

Practice questions (24)

Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.

  1. The sample mean x̄ is an example of a:

    1. Statistic
    2. Parameter
    3. Population
    4. Hypothesis
    Show answer

    Answer: A — Statistic

    A number computed from a sample is a statistic. The population mean μ is the parameter.
  2. The degrees of freedom of a one-sample t-test with n = 9 are:

    1. 9
    2. 10
    3. 7
    4. 8
    Show answer

    Answer: D — 8

    With n = 9 values and the mean fixed, only 8 values are free to vary, so df = n − 1 = 8. The answer 9 forgets the loss of one degree of freedom.
  3. The standard error of the sample mean is:

    1. σ × n
    2. σ ÷ n
    3. σ ÷ √n
    4. σ²
    Show answer

    Answer: C — σ ÷ √n

    The standard error is σ divided by the square root of n.
Show the other 21 questions
  1. The null hypothesis usually states that:

    1. There is a large difference
    2. There is no difference or effect
    3. The sample is biased
    4. The population is infinite
    Show answer

    Answer: B — There is no difference or effect

    H₀ is the "no difference" statement, which the data may or may not give grounds to reject.
  2. In a population of 1,000, a systematic sample of 50 is needed. The sampling interval k is:

    1. 20
    2. 50
    3. 10
    4. 5
    Show answer

    Answer: A — 20

    k = N ÷ n = 1,000 ÷ 50 = 20, so every 20th unit after a random start.
  3. If σ = 20 and n = 100, the standard error of the sample mean is:

    1. 0.2
    2. 20
    3. 200
    4. 2
    Show answer

    Answer: D — 2

    20 ÷ √100 = 20 ÷ 10 = 2. Dividing by n instead of √n gives 0.2.
  4. A sample of 9 has mean 54 and s = 6. To test μ = 50, the value of t is:

    1. 0.67
    2. 4
    3. 2.0
    4. 6
    Show answer

    Answer: C — 2.0

    t = (54 − 50) ÷ (6 ÷ 3) = 4 ÷ 2 = 2.0. Using s instead of the standard error would give 0.67.
  5. The central limit theorem implies that, for large n, the distribution of the sample mean is approximately:

    1. Binomial
    2. Normal
    3. Poisson
    4. Uniform
    Show answer

    Answer: B — Normal

    Whatever the population shape, the mean of a large sample is approximately normal.
  6. In a t-test t = 2.0 with df = 8 and the 5 per cent two-tailed critical value is 2.306. The conclusion is:

    1. Fail to reject H₀
    2. Reject H₀
    3. Accept H₁ as proved
    4. The test is invalid
    Show answer

    Answer: A — Fail to reject H₀

    |t| = 2.0 is below 2.306, so the evidence is not strong enough to reject H₀; this does not prove H₀ true.
  7. The sample size is multiplied by 4 while σ stays the same. The standard error becomes:

    1. A quarter of its former value
    2. Double
    3. Unchanged
    4. Half of its former value
    Show answer

    Answer: D — Half of its former value

    SE = σ ÷ √n, so quadrupling n divides the SE by √4 = 2. The quarter option forgets the square root.
  8. Which of the following is a probability sampling method?

    1. Quota sampling
    2. Convenience sampling
    3. Judgement sampling
    4. Simple random sampling
    Show answer

    Answer: D — Simple random sampling

    In simple random sampling every unit has a known, equal chance of selection, which makes it a probability method. Quota sampling is the tempting wrong option because it also fixes group sizes, as stratified sampling does, but the interviewer picks the units, so chances are unknown.
  9. A numerical characteristic of the whole population, such as the population mean μ, is called a:

    1. Parameter
    2. Statistic
    3. Estimator
    4. Sample
    Show answer

    Answer: A — Parameter

    A measure describing the population is a parameter. Statistic is the tempting wrong option: a statistic, such as the sample mean x̄, describes a sample and is used to estimate the parameter.
  10. Rejecting a null hypothesis that is actually true is called:

    1. Type II error
    2. Type I error
    3. Sampling error
    4. Non-sampling error
    Show answer

    Answer: B — Type I error

    Wrongly rejecting a true H₀ is a Type I error, and its probability is the level of significance α. Type II error is the tempting wrong option, which is the opposite mistake of failing to reject a false H₀.
  11. A sample of 16 observations has standard deviation s = 12. The estimated standard error of the sample mean is:

    1. 0.75
    2. 12
    3. 3
    4. 48
    Show answer

    Answer: C — 3

    SE = s ÷ √n = 12 ÷ 4 = 3. 0.75 is the tempting wrong option, from dividing by n = 16 instead of its square root; 12 is the standard deviation itself.
  12. A sample of 25 from a population with σ = 10 has mean 80. The 95 per cent confidence interval for μ is (z = 1.96):

    1. (60.40, 99.60)
    2. (78.04, 81.96)
    3. (70.2, 89.8)
    4. (76.08, 83.92)
    Show answer

    Answer: D — (76.08, 83.92)

    SE = 10 ÷ √25 = 2, so the margin is 1.96 × 2 = 3.92 and the interval is 80 ± 3.92 = (76.08, 83.92). (60.40, 99.60) is the tempting wrong option, which uses σ = 10 instead of the standard error 2: 80 ± 1.96 × 10.
  13. A sample of 16 has mean 52 and s = 8. To test H₀: μ = 48 at 5 per cent (two-tailed, critical t for 15 df = 2.131), the conclusion is:

    1. t = 2.00, do not reject H₀
    2. t = 2.00, reject H₀
    3. t = 0.50, do not reject H₀
    4. t = 4.00, reject H₀
    Show answer

    Answer: A — t = 2.00, do not reject H₀

    t = (52 − 48) ÷ (8 ÷ 4) = 2.00, which is below 2.131, so H₀ is not rejected. "Reject" is the tempting wrong option, from comparing t with the normal value 1.96; with only 16 observations the t critical value is larger. t = 4.00 forgets to take the square root of n.
  14. A college has 400 boys and 200 girls. A proportionate stratified sample of 60 students is drawn. The number of girls in the sample is:

    1. 30
    2. 20
    3. 40
    4. 12
    Show answer

    Answer: B — 20

    Girls are 200 out of 600, one third, so the sample has 60 × 200/600 = 20 girls (and 40 boys). 30 is the tempting wrong option, which splits the sample equally between the two groups and so is not proportionate.
  15. From a list of 840 units a systematic sample of 35 is drawn with the first unit at position 7. The position of the 4th selected unit is:

    1. 103
    2. 96
    3. 79
    4. 31
    Show answer

    Answer: C — 79

    The interval is k = 840 ÷ 35 = 24, so the selected positions are 7, 31, 55, 79, and the 4th is 79. 103 is the tempting wrong option, which is the 5th position, 7 + 4 × 24; 96 is just 4 × 24 without the starting position.
  16. A sample of 25 gives a certain standard error of the mean. To halve that standard error, the sample size must be made:

    1. 50
    2. 75
    3. 625
    4. 100
    Show answer

    Answer: D — 100

    SE ∝ 1/√n, so halving it needs √n to double, hence n to become four times: 25 × 4 = 100. 50 is the tempting wrong option, from doubling n and expecting SE to halve; doubling n reduces SE only by a factor 1/√2.
  17. Other things being fixed, if the level of significance of a test is lowered from 0.05 to 0.01, the probability of a Type II error:

    1. Increases
    2. Decreases
    3. Remains unchanged
    4. Becomes zero
    Show answer

    Answer: A — Increases

    A smaller α makes the rejection region smaller, so a false H₀ is accepted more often and β rises (for example, for H₀: μ = 50 against μ = 54 with σ = 10, n = 25, β is about 0.48 at 5 per cent and about 0.72 at 1 per cent). "Decreases" is the tempting wrong option, from thinking a stricter test is better on both errors at once.
  18. A sample of 16 has mean 100 and s = 15. The 95 per cent confidence interval for μ is about (t for 15 df = 2.131):

    1. (92.65, 107.35)
    2. (92.0, 108.0)
    3. (85.0, 115.0)
    4. (96.0, 104.0)
    Show answer

    Answer: B — (92.0, 108.0)

    SE = 15 ÷ 4 = 3.75, margin = 2.131 × 3.75 = 7.99, so the interval is about 100 ± 8 = (92.0, 108.0). (92.65, 107.35) is the tempting wrong option, which uses the normal value 1.96 although σ is unknown and n is small; (85, 115) is ±s.
  19. To estimate a mean with σ = 12 to within ± 2 at 95 per cent confidence (z = 1.96), the smallest adequate sample size is:

    1. 138
    2. 12
    3. 139
    4. 554
    Show answer

    Answer: C — 139

    The margin 1.96 × 12/√n ≤ 2 gives √n ≥ 11.76, so n ≥ 138.3 and n must be rounded up to 139. 138 is the tempting wrong option, from rounding down, which leaves the margin slightly above 2; 554 treats ±2 as the total width, so the margin is 1 and n = (1.96 × 12)² = 553.2, rounded up to 554; 12 takes √n ≈ 11.76 as n itself.
  20. A sample 12, 15, 11, 14, 13 is used to test H₀: μ = 11 at 5 per cent, two-tailed (critical t for 4 df = 2.776). The t value and decision are:

    1. t = 3.16, reject H₀
    2. t = 2.83, do not reject H₀
    3. t = 1.26, do not reject H₀
    4. t = 2.83, reject H₀
    Show answer

    Answer: D — t = 2.83, reject H₀

    Mean = 13, Σ(x − x̄)² = 10, so s² = 10 ÷ 4 = 2.5 and s = 1.581; SE = 1.581 ÷ √5 = 0.707 and t = 2 ÷ 0.707 = 2.83, which exceeds 2.776, so H₀ is rejected. t = 3.16 is the tempting wrong option, from dividing the sum of squares by n instead of n − 1; t = 1.26 forgets to divide s by √n.
  21. A population has mean 50 and σ = 12. For random samples of n = 36, the probability that the sample mean exceeds 53 is (Φ(1.5) = 0.9332):

    1. 0.0668
    2. 0.4013
    3. 0.9332
    4. 0.1587
    Show answer

    Answer: A — 0.0668

    The standard error is 12 ÷ 6 = 2, so z = (53 − 50) ÷ 2 = 1.5 and P = 1 − 0.9332 = 0.0668. 0.4013 is the tempting wrong option, which uses σ = 12 instead of the standard error (z = 0.25); 0.9332 is the probability below 53.