Statistics · real student question

A traffic study predicted that accidents would occur at four-way, Y- and three-way intersections in a 3:2:1 ratio. Among 200 accidents at intersections with equal traffic flow, the observed counts were 116, 60 and 24. Carry out a chi-square test of the prediction.

Question

A traffic study predicts that accidents at intersections should occur in a 3:2:13:2:1 ratio for four-way, Y- and three-way intersections. At intersections with equal traffic flow the observed counts were

Intersection type4-wayY3-way
Observed1166024

Test the prediction: which chi-square test applies, what is the value of χ2\chi^2, and what do you conclude?

Step-by-step solution

  1. Pick the right test. There is a single categorical variable (intersection type) and a theoretical distribution to compare against, not two variables cross-tabulated. That makes this a chi-square goodness-of-fit test, not a test of independence. The distinction matters because it fixes the degrees of freedom as k1k-1 rather than (r1)(c1)(r-1)(c-1).

  2. Build the expected counts from the ratio. The total is 116+60+24=200116+60+24=200, and 3:2:13:2:1 splits a whole into sixths:

    E1=20036=100,E2=20026=66.6,E3=20016=33.3.E_1=200\cdot\tfrac{3}{6}=100,\qquad E_2=200\cdot\tfrac{2}{6}=66.\overline{6},\qquad E_3=200\cdot\tfrac{1}{6}=33.\overline{3}.

    All expected counts exceed 55, so the chi-square approximation is safe. Keep the exact fractions 2003\tfrac{200}{3} and 1003\tfrac{100}{3} rather than the rounded 66.6766.67 and 33.3333.33, or rounding error will creep into the statistic.

  3. Compute each cell's contribution to χ2=(OE)2E\chi^2=\sum\dfrac{(O-E)^2}{E}.

    (116100)2100=256100=2.56,(602003)22003=400/9200/3=23,(241003)21003=784/9100/3=19675.\frac{(116-100)^2}{100}=\frac{256}{100}=2.56,\qquad \frac{\left(60-\tfrac{200}{3}\right)^2}{\tfrac{200}{3}}=\frac{400/9}{200/3}=\frac{2}{3},\qquad \frac{\left(24-\tfrac{100}{3}\right)^2}{\tfrac{100}{3}}=\frac{784/9}{100/3}=\frac{196}{75}.

  4. Add them up. Over the common denominator 7575:

    χ2=19275+5075+19675=43875=14625=5.84.\chi^2=\frac{192}{75}+\frac{50}{75}+\frac{196}{75}=\frac{438}{75}=\frac{146}{25}=5.84.

    The value is exactly 5.845.84, not merely rounded to it. Notice the three-way category, with the smallest expected count, contributes the most (2.6132.613) even though its raw shortfall is smaller than the four-way surplus - that is the 1/E1/E weighting at work.

  5. Compare with the critical value. With k=3k=3 categories, df=k1=2df=k-1=2. The critical value at α=0.05\alpha=0.05 is χ0.05,22=5.991\chi^2_{0.05,2}=5.991. For df=2df=2 the pp-value has the closed form p=eχ2/2=e2.920.054p=e^{-\chi^2/2}=e^{-2.92}\approx 0.054.

  6. State the conclusion. Since 5.84<5.9915.84<5.991 (equivalently p0.054>0.05p\approx 0.054>0.05), we fail to reject the null hypothesis. The observed counts are consistent with the predicted 3:2:13:2:1 ratio - though only barely, so a larger sample would be worth collecting.

Answer

χ2=14625=5.84,df=2,p0.054>0.05  fail to reject the 3:2:1 prediction\chi^2=\frac{146}{25}=5.84,\quad df=2,\quad p\approx 0.054>0.05\ \Rightarrow\ \text{fail to reject the }3{:}2{:}1\text{ prediction}

Need to solve a different problem like this? Open the solver →