If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

# Test statistic and P-value in chi-square tests with two-way tables

AP.STATS: VAR‑8 (EU), VAR‑8.L (LO), VAR‑8.L.1 (EK), VAR‑8.M (LO), VAR‑8.M.1 (EK), VAR‑8.M.2 (EK)
You might need: Calculator,Chi-squared table

## Problem

A researcher wanted to see if different breeds of dogs preferred toys of certain colors. The researcher presented each dog with 3 toys, identical except that each was a different color, and recorded which toy the dog played with the most in a set time period. Here are the outcomes and partial results of a chi-square test (expected counts appear below observed counts):
Chi-square test: Breed vs. toy color
YellowPurpleBlackTotal
Beagle16301460
242313
Collie27231060
242313
Husky29161560
242313
Total726939180
They want to use these results to carry out a \chi, squared test for homogeneity. Assume that all conditions for inference were met.
What are the values of the test statistic and P-value for their test?