Maths4U
Menu

Maths4U Original · Learn, check, explain

Goodness of fit for discrete distributions — 9231 FPS

Estimate the Poisson mean and account for the fitted parameter. Build expected frequencies, calculate the statistic and adjust degrees of freedom.

Notes and key methods

For a Poisson goodness-of-fit test, estimate λ from the sample mean when it is unknown. Calculate expected counts from Poisson interval probabilities, including a final class that covers the complete upper tail.

With k retained classes and one estimated parameter, the degrees of freedom are k−2. Combine classes before testing if any expected count is below 5.

Under a goodness-of-fit null model, expected frequencies are \(E_i=np_i\). The statistic is \(\chi^2=\sum(O_i-E_i)^2/E_i\).

After combining categories so every expected frequency is at least 5, use k−1−m degrees of freedom, where k is the number of retained categories and m is the number of parameters estimated from these same data. The p-value is an upper chi-squared tail.

Check the conditions

Three worked examples

Example 1 · Fitting a Poisson model for a chi-squared test

Independent count observations give

Count class0123 or more
Observed31465641
There are 174 observations with total count 322. Fit a Poisson distribution by estimating its mean; no classes need combining.

Use a 5% significance level for a written conclusion. A distribution calculator may be used for numerical p-values.

  1. Find the fitted Poisson mean.
  2. Find the expected frequency in the class 3 or more.
  3. Find the chi-squared statistic.
  4. Find the p-value with the fitted-parameter adjustment.
Show the reasoning

(a)

\(\hat\lambda=322/174=\frac{161}{87}\)

Answer: \(\frac{161}{87}\).

(b)

\(n[1-P(X\le2)]=49.2344515125872\)

Answer: \(49.2344515125872\).

(c)

\(\sum(O-E)^2/E=4.084176393632\)

Answer: \(4.084176393632\).

(d)

\(P(\chi^2_2\ge 4.084176393632)=0.129757468640534\)

Answer: \(0.129757468640534\).

The p-value is \(0.129757468640534\). Since it exceeds 0.05, do not reject H₀: the sample gives insufficient evidence that the fitted Poisson model does not fit. This does not give the probability that H₀ is true.

Example 2 · Chi-squared goodness of fit

A null model assigns equal probabilities to four outcomes, with no fitted parameters. Observed counts are \(26,18,30,14\).

Use a 5% significance level for a written conclusion. A distribution calculator may be used for numerical p-values.

  1. Find the expected frequency in each category.
  2. Find the chi-squared statistic.
  3. Find the p-value.
  4. For a separate fit with k=7 retained classes and one estimated parameter, find the degrees of freedom.
Show the reasoning

(a)

\(E=88/4=22\)

Answer: \(22\).

(b)

\(\sum(O-E)^2/E=\frac{80}{11}\)

Answer: \(\frac{80}{11}\).

(c)

\(P(\chi^2_3\ge \frac{80}{11})=0.0636948051236637\)

Answer: \(0.0636948051236637\).

(d)

\(k-1-1=5\)

Answer: \(5\).

The p-value is \(0.0636948051236637\). Since it exceeds 0.05, do not reject H₀: the sample gives insufficient evidence that the specified categorical distribution does not fit. This does not give the probability that H₀ is true.

Example 3 · Fitting a Poisson model for a chi-squared test

Independent count observations give

Count class0123 or more
Observed33485843
There are 182 observations with total count 336. Fit a Poisson distribution by estimating its mean; no classes need combining.

Use a 5% significance level for a written conclusion. A distribution calculator may be used for numerical p-values.

  1. Find the fitted Poisson mean.
  2. Find the expected frequency in the class 3 or more.
  3. Find the chi-squared statistic.
  4. Find the p-value with the fitted-parameter adjustment.
Show the reasoning

(a)

\(\hat\lambda=336/182=\frac{24}{13}\)

Answer: \(\frac{24}{13}\).

(b)

\(n[1-P(X\le2)]=51.2816386441683\)

Answer: \(51.2816386441683\).

(c)

\(\sum(O-E)^2/E=4.12184387838933\)

Answer: \(4.12184387838933\).

(d)

\(P(\chi^2_2\ge 4.12184387838933)=0.127336519233962\)

Answer: \(0.127336519233962\).

The p-value is \(0.127336519233962\). Since it exceeds 0.05, do not reject H₀: the sample gives insufficient evidence that the fitted Poisson model does not fit. This does not give the probability that H₀ is true.

Common mistakes

Practise with answer checking

Original exam-style problems

Write complete solutions before opening the worked solution. The marking guidance rewards reasoning as well as answers.

Examination practice · 2020–2026

Apply the method to recent source-labelled questions from this chapter.

Browse recent examination questions · All topic resources and the full bank

Next skill: Goodness of fit for continuous distributions →