Please verify you are human to use the calculator.
The chi-square goodness-of-fit test assesses whether the observed frequency distribution of a categorical variable matches a hypothesised distribution. Typical applications include testing whether a die is fair, whether birth frequencies are uniform across days of the week, or whether survey responses follow a predicted pattern.
The test requires that data be in the form of counts across mutually exclusive categories obtained through random sampling. For two categories each expected frequency should be at least 5; for three or more categories each expected frequency should be at least 1, with no more than 20% falling below 5. When expected counts are too small, categories can sometimes be combined to satisfy the requirement.
An important caveat is that when continuous data is grouped into bins for the test, the choice of bin boundaries can influence the result. Different binning schemes may lead to different conclusions. The test is appropriate only for categorical data; for testing whether continuous data follows a particular distribution, use the Kolmogorov-Smirnov or Shapiro-Wilk test instead.
A test result carries weight only when the hypothesis, the sample size and the decision rule were fixed before the data arrived. Every pilot we scope is built the same way, with success criteria and kill gates agreed in advance. That work is described under AI pilot design.
Interactive probability distribution calculators. Visualise Normal, Binomial, Poisson, Beta, and 12 more distributions with live PDF/CDF charts.
Try itFrequentist and Bayesian A/B test analysis. Z-test for proportions, Beta posterior distributions, probability of winning, and expected loss.
Try itDiagnostic test metrics: sensitivity, specificity, PPV, NPV, odds ratio, relative risk, NNT, and likelihood ratios with 95% confidence intervals.
Try itTest whether two categorical variables are independent using a contingency table.
Try itExact test for independence in a 2×2 contingency table. Preferred over chi-square when sample sizes are small.
Try itCompare two proportions (e.g., conversion rates) to determine if they differ significantly.
Try itGet notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.
Common questions about the chi-square goodness of fit