1001Ferramentas
๐Ÿงช Calculators

Chi Square Frequency Test Calculator

Computes chi square goodness of fit statistic from observed and expected frequencies of each category for a hypothesis test.

โ€”

Chi-square test: comparing observed vs. expected frequencies

The chi-square statistic asks a simple question: how far do your observed counts sit from what a hypothesis would predict? You add up ฯ‡ยฒ = ฮฃ (O โˆ’ E)ยฒ / E across every cell. Karl Pearson introduced it in 1900, and it has been the standard tool for categorical data ever since. The degrees of freedom change with the design. For a goodness-of-fit test with k categories you use df = k โˆ’ 1; for an rร—c independence table it becomes df = (r โˆ’ 1)(c โˆ’ 1). As a rough check, keep every expected count at 5 or above, or reach for Fisher's exact test instead. Take a quick example: observed 10, 20, 30, 40 against expected 12, 18, 30, 40 gives ฯ‡ยฒ = (4/12) + (4/18) + 0 + 0 โ‰ˆ 0.556 with df = 3 and p โ‰ˆ 0.91, which gives you no reason to doubt the model.

Applications

Checking Mendelian inheritance ratios (3:1, 9:3:3:1). Comparing conversion across A/B variants. Validating random number generators. Deciding whether dice or roulette wheels are fair. Spotting bias in how survey responses are distributed.

FAQ

When does the test fail? Once any cell's expected count slips below 5. At that point you can pool categories, or move to Fisher's exact test for small samples, or use a likelihood ratio G-test.

What does a large ฯ‡ยฒ mean? Your observed counts are sitting far from the expected ones. Hold that value against the critical value for your df and ฮฑ (0.05 in most cases). When the p-value falls below ฮฑ, you reject the null hypothesis that there is no difference.

One-tailed or two-tailed? Chi-square is one-tailed by its nature. Only large values flag a discrepancy, and there is no negative direction to worry about.

What if my data is paired? For 2ร—2 paired binary data, reach for McNemar's test rather than the standard chi-square independence test.

Related Tools

๐Ÿ“

Bartlett's Test (Equality of Variances)

Computes Bartlett's test, the classic test for checking whether several groups share the same variance. It compares the pooled variance of all groups against the individual variances through a statistic that approximately follows a chi-square distribution, with a bias correction that improves the approximation in small samples. It's more powerful than Levene's test when the data are genuinely normal, but more sensitive to departures from normality. Enter the groups: values by comma, groups by semicolon.

๐Ÿ”ข

Mood's Median Test

Computes Mood's median test, a non-parametric test that checks whether several groups share the same median. The idea is simple and robust: you compute the grand median of all the data together and count, in each group, how many values fall above it. If the groups had the same median, those counts would be proportional to the sizes; an imbalance produces a large chi-square statistic. It's quite resistant to outliers, working only with counts. Enter the groups separated by semicolons.

๐Ÿ”ฒ

Chi-Square Test of Independence

Computes the chi-square test of independence for a contingency table, checking whether two categorical variables are associated or independent. For example: does preference for a product depend on age group? The test compares the observed frequencies with those that would be expected if there were no relationship at all, and the chi-square statistic measures the size of that mismatch. The tool returns the statistic, the degrees of freedom and the p-value. Enter the table: columns by comma, rows by semicolon.

๐Ÿ“‰

One-Sample Variance Test (Chi-Square)

Computes the chi-square test for the variance of a single sample, which checks whether the population variance equals a reference value. It's the dispersion counterpart of the one-sample t-test for the mean. It shows up often in quality control: is a process's variability within the specified limit, or has it increased? The statistic compares the sample variance with the hypothesized one and follows a chi-square distribution. Enter the sample and the hypothesized variance (ฯƒโ‚€ยฒ).

๐Ÿ”

McNemar's Test (Paired)

Computes McNemar's test, used to compare two paired proportions โ€” when the same subjects are measured twice (before and after, or by two methods). Unlike the two-proportion test, which treats the groups as independent, McNemar looks only at the cases that switched classification (the discordant cells b and c of the 2ร—2 table), ignoring those that stayed the same. The continuity-corrected version follows a chi-square with 1 degree of freedom. Enter the two discordant counts.

๐Ÿงช

A/B Test Significance Calculator (Chi-Square)

Visitors and conversions of variants A and B in a 2x2 table return the statistic; past 3.84 with 1 degree of freedom the gap is significant at p 0.05.

The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.