Testing a Mean with a Large Sample When the Variance Is Unknown | OCR B (MEI) A Level Maths notes

Free preview: Testing a Mean with a Large Sample When the Variance Is Unknown

When σ Is Not Known

Year 2 (A level only)

Let's start with the catch in the Normal test for a mean: it needs the population standard deviation σ. Think about the gym owner who wants to test the mean visit time. Who would know the standard deviation of every visit ever made? Nobody.

  • In real life we rarely know σ.
  • One board allows a way round this (see Board differences) when the sample is large: estimate σ from the sample itself.

The sample standard deviation

The estimate is the sample standard deviation s, calculated with divisor n−1:

s2=∑(x−x¯)2n−1=∑x2−nx¯2n−1

💡 In plain words

  • n is the sample size, x¯ the sample mean and ∑x2 the sum of the squares of the data.
  • Square each distance from the mean, add them up, and divide by one less than the sample size.
  • The second form is quicker when you are given ∑x and ∑x2.
  • Why n−1 rather than n? The data sit closer to their own mean x¯ than to the true μ, so dividing by n would underestimate the spread.
  • Dividing by n−1 makes s2 a fair (unbiased) estimate of the population variance.
  • A calculator's statistics mode gives it as sx (sometimes σn−1).

👀 Watch me do it: find s for the small data set 4, 7, 8, 9, 12, both ways

What I writeWhy I do it
x¯=405=8Sample mean first.
∑(x−x¯)2=16+1+0+1+16=34Distances from the mean: −4, −1, 0, 1, 4. Square and add.
s2=344=8.5Divide by n−1=4, not 5.
Check with the other form: ∑x2=354, 354−5×824=344=8.5. ✓Both forms must agree.
s=8.5=2.915Square root for the standard deviation.

📝 Common mistake: dividing by n

Wrong: s2=345=6.8 (that is σx on a calculator). Right: divide by n−1 to get 8.5. Use sx.

✏️ YOUR TURN 1

Try this first:

A random sample of 40 values has ∑x=1480 and ∑x2=56350. Find x¯ and s.

Answer:

  • x¯=148040=37.
  • s2=56350−40×37239=56350−5476039=159039=40.77.
  • s=6.385 (4 s.f.).

Why the Sample Must Be Large, and the Test Statistic

Why the sample must be large

  • With a large sample, s is a reliable estimate of σ, so replacing one by the other makes little difference.
  • With a large sample, the sample mean X¯ is approximately Normal even if the population itself is not Normal. (This is the Central Limit Theorem; only the idea is used here, never a proof.)
  • So for large n: X¯≈N(μ,s2n). A common guide is n⩾30 or so; questions will make clear when n is large.

💡 In plain words

  • A small sample's s could be quite far from σ by luck. A large sample's s is close.
  • And averaging many values smooths out any odd shape in the population, so the mean behaves Normally.

The test statistic

Notice that the test is identical to the known-variance test, except that s replaces σ:

z=x¯−μs/n

💡 In plain words

  • μ is the value in H0; x¯ and s are the sample mean and sample standard deviation; n is the (large) sample size.
  • s/n is our estimate of the standard error.
  • Compare z with the usual critical values (1.6449, 1.96, 2.3263, 2.5758) or find a p-value from Z~N(0,1).

Normal curves showing that the sample mean has a narrower distribution than single values

Following the graph

  1. The curves show single values (wide) and sample means for n = 9 and n = 25 (narrower). The spread of X¯ is the standard error, σ/n.
  2. With σ unknown we estimate the standard error by s/n.
  3. For large n the curve for X¯ is very narrow, so even a small difference between x¯ and μ can be significant.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Hypothesis Testing

  1. The Language of Hypothesis Testing
  2. Rank Correlation: Testing for Association Using Ranks
  3. Testing a Mean with a Large Sample When the Variance Is Unknown
  4. One-Tailed Hypothesis Tests for a Binomial Proportion
  5. Two-Tailed Binomial Tests and Critical Regions
  6. Testing for Correlation with the Product Moment Correlation Coefficient
  7. The Distribution of the Sample Mean
  8. Hypothesis Tests for the Mean of a Normal Distribution
  9. Move Up a Grade: A Level Maths Hypothesis Testing
  10. Tricky Bits: A Level Maths Hypothesis Testing

What's inside for this topic

10 teacher notes, 171 practice questions, 58 flashcards, 7 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Rank Correlation: Testing for Association Using Ranks Next note: One-Tailed Hypothesis Tests for a Binomial Proportion

All OCR B (MEI) A Level Maths topics · A Level Maths