← Return to FranksBio.net

Chi-Square M&M Simulator

Generate a candy sample and test whether its color distribution fits the expected proportions.

Generate a sample

Expected proportions: blue 24%, orange 20%, green 16%, yellow 14%, red 13%, and brown 13%.

Simulated sample

Goodness-of-fit result

Chi-square0.000
Degrees of freedom5
Critical value11.070
Significance level0.05

Chi-square calculation

Color Expected % Observed (O) Expected (E) (O - E)² / E

With six color categories, degrees of freedom = 6 - 1 = 5. Compare the total χ² with the 0.05 critical value of 11.070.

Change expected proportions

Enter a percentage for each color. The six values must total 100%.

Total100%