Go to calculators
calcmintly

How well counts fit: chi-square

Compare category counts wey you observe with positive expected counts.

Add to workspace

Your numbers

Calculations dey happen locally. Results na estimates, no be professional advice.

Di chi-square statistic

—

Use consistent units. Result follow the assumptions wey you enter.

Formula

Use χ² = Σ(Oᵢ−Eᵢ)²/Eᵢ and df = k−1−p. Oᵢ and Eᵢ na observed and expected counts, k na category count, and p na parameters wey you estimate from di same data. Di p-value na di upper chi-square tail.

Compare category counts wey you observe with positive expected counts.

Example wey show the calculation

Counts wey you observe
10, 20, 30
Counts wey you expect
20, 20, 20
Parameters wey you estimate from di same data
0
Di chi-square statistic
10
Di degrees of freedom
2
p-value
0.00673794699909

Where e fit work and limits

Use consistent units. Result follow the assumptions wey you enter.

We check inputs for missing values and allowed ranges. Result wey pass the finite numeric range no go show. Rounding affect wetin display, while calculation use the model numeric precision.

Check your units and assumptions before you rely on result. Changing label no convert currency or physical unit.

Version of di formula: b6c7ff36547c · Example don get check:

Method

Other tools wey relate to dis