All flashcards topics

Goodness of fit tests and contingency tablesEdexcel A-Level Further Maths: Flashcards

Card 1 of 130 of 13 known

Question

State the $\chi^2$ test statistic.

Tap or press Space to reveal

Tap card or press Space to flip

See all 13 cards
State the χ2\chi^2 test statistic.
X2=∑(Oi−Ei)2EiX^2=\sum\frac{(O_i-E_i)^2}{E_i}
When must cells be combined?
When an expected frequency Ei<5E_i<5: merge with a neighbouring cell, adding both OO and EE.
Degrees of freedom for a goodness of fit test?
Cells (after combining) −1−-1- number of parameters estimated from the data.
Degrees of freedom for a fair-die test?
6−1=56-1=5, since nothing is estimated.
Expected frequency in a contingency table?
row total×column totalgrand total\frac{\text{row total}\times\text{column total}}{\text{grand total}}
Degrees of freedom for a contingency table?
(r−1)(c−1)(r-1)(c-1)
Hypotheses for a contingency table test?
H0\mathrm{H}_0: no association (the variables are independent); H1\mathrm{H}_1: there is an association.
How do you estimate pp for a B(N,p)\mathrm{B}(N,p) fit?
p^=xˉN\hat p=\frac{\bar x}{N}, using the sample mean. This costs one degree of freedom.
How do you estimate λ\lambda for a Poisson fit?
λ^=xˉ\hat\lambda=\bar x, the sample mean. This costs one degree of freedom.
Expected frequency for each outcome of a discrete uniform model with kk outcomes and nn observations?
nk\frac nk
Critical value of χ52\chi^2_5 at 5%?
11.07011.070
Critical value of χ22\chi^2_2 at 5%?
5.9915.991
When do you reject the null hypothesis?
When X2≥X^2\geq the critical value, or the p-value is less than the significance level.

Exam questions on Goodness of fit tests and contingency tables

  1. A six-sided die is rolled 120 times. The frequencies of the faces 1,2,3,4,5,61,2,3,4,5,6 are 14,25,17,22,24,1814, 25, 17, 22, 24, 18 respectively. A test is carried out, at the 5% significance level, of whether the die is fair.
    Calculate the value of the test statistic ∑(Oi−Ei)2Ei\sum\frac{(O_i-E_i)^2}{E_i}.2 marks
  2. A survey of 120 students recorded their gender and usual mode of travel to school. Of the 60 boys, 20 walk, 25 take the bus and 15 come by car. Of the 60 girls, 30 walk, 20 take the bus and 10 come by car. A χ2\chi^2 test is used to investigate whether mode of travel is associated with gender.
    The test statistic is 3.563.56, to 3 significant figures. State the conclusion of the test at the 5% significance level, giving the critical value used.2 marks
  3. A farmer packs eggs in boxes of 4. In a random sample of 100 boxes, the numbers of boxes containing 0,1,2,3,40,1,2,3,4 cracked eggs were 41,38,16,4,141, 38, 16, 4, 1 respectively. The farmer suggests that the number of cracked eggs in a box follows a binomial distribution B(4,p)\mathrm{B}(4,p), where pp is estimated from the data.
    Show that the estimate of pp is 0.2150.215, and find the expected frequency of boxes containing exactly one cracked egg, to 2 decimal places.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).