Expected ring (E) Observed petal (O) (O−E)²/E tick

Chi-Square Test: Distribution & Category Rose (2D)

This is a 2D-native counterpart of the 3D chi-square bar simulator: a polar rose chart replaces the parallel bars — one petal per category, its length the observed count, a dashed ring the expected count under fairness, and an amber tick its contribution to χ² — and beneath it the actual chi-square sampling distribution curve is drawn and shaded to show exactly how extreme your rolled sample's statistic is relative to the α = 0.05 critical value. Pick a number of categories and a sample size, choose how "loaded" the true generator secretly is, then roll a random sample and watch both views update together with the same reject/fail-to-reject verdict used to test whether a die is fair, a survey matches an expected split, or an A/B test's category counts diverge from chance.