Goodness of Fit for Geometric and Continuous Models | Cambridge A Level Maths notes

Free preview: Goodness of Fit for Geometric and Continuous Models

A Geometric Model

9231 Paper 4: Further Probability & Statistics

Watch: 1-minute explainer

Good news first: you already know the whole method. What changes in this note is only where the expected frequencies come from. Once you can get E from any model, the rest is the same every time.

The method never changes

  1. Hypotheses: H0: the model fits; H1: it does not.
  2. Expected frequencies from the model, with the end cells taking the whole tail.
  3. Merge cells with E below 5.
  4. X2=∑(O−E)2E.
  5. ν = cells − 1 − parameters estimated; compare with the upper critical value.

The geometric distribution: a quick reminder

  • X is the number of trials up to and including the first success, with P(success)=p each time.
  • P(X=x)=(1−p)x−1p: x − 1 failures, then a success. You met it earlier in 9709 Paper 5.
  • Mean 1p.

120 people each toss a coin until they get a head, and record the number of tosses:

Tosses12345 or more
People O64271667

If the coin is fair and the tosses are independent, the number of tosses is Geo(0.5).

👀 Watch me do it: test at 5% whether Geo(0.5) is a suitable model

What I writeWhy I do it
Model: X~Geo(0.5), so P(X=x)=(0.5)x−1(0.5)p is given (a fair coin).
Expected: 120×0.5=60, 120×0.25=30, 15, 7.5Each probability halves.
Last cell takes the tail: P(X⩾5)=(0.5)4=0.0625, so E = 7.5Five or more tosses means the first 4 tosses were all tails.
Check: 60 + 30 + 15 + 7.5 + 7.5 = 120Totals must match.
X2=1660+930+115+2.257.5+0.257.5=0.267+0.3+0.067+0.3+0.033=0.97All E are at least 5, so no merging.
p was given, so ν=5−1=4. χ42(0.05)=9.488Nothing estimated, so only subtract 1.
0.97<9.488: do not reject H0Geo(0.5) is a suitable model: the data are consistent with a fair coin.

💡 In plain words

  • The geometric tail has a neat form: P(X⩾k)=(1−p)k−1 (the first k − 1 attempts all fail).
  • If p is estimated, use p^=1x¯ (since the mean is 1p) and subtract one more degree of freedom.

✏️ YOUR TURN 1

Try this first:

80 people record how many throws they need to hit a target: 1: 30, 2: 22, 3: 12, 4: 8, 5 or more: 8. The mean number of throws is 2.5. Fit a geometric model and test it at 5%.

Answer:

  • p^=12.5=0.4.
  • E: 80×0.4=32, 80×0.6×0.4=19.2, 11.52, 6.91, and 80×0.64=10.37 for 5 or more. All at least 5.
  • X2=0.125+0.408+0.020+0.172+0.541=1.27.
  • p was estimated: ν=5−1−1=3, critical value 7.815. The geometric model fits.

Continuous Models: Use Areas

Heights and times are continuous, so there is no "P(X = 170)". Instead, we group the data into classes and ask how much of the model's area falls in each class.

Method: expected frequencies for a continuous model

  1. Group the data into classes (often the question does this).
  2. Fit the model, estimating parameters from the data if they're not given.
  3. Class probability = area under the model's pdf over the class. For a Normal, use the Normal cdf at each boundary and subtract.
  4. Make the end classes open: the first runs from the bottom of the model's range, the last to the top, so the probabilities add to 1.
  5. E = total × class probability.

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 χ²-tests (4.3)

  1. Chi-Squared Tests for Independence in Contingency Tables
  2. Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models
  3. Goodness of Fit for Geometric and Continuous Models

Video

What's inside for this topic

3 teacher notes, 81 practice questions, 34 flashcards, 2 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: Chi-Squared Goodness of Fit for Uniform, Binomial and Poisson Models

All Cambridge A Level Maths topics · A Level Maths