Variance and Standard Deviation Calculator (Chi-Square)
Enter the standard deviation and the size of one sample. The calculator returns the confidence intervals for the variance and for the standard deviation, and the chi-square test against a stated standard deviation, with a conclusion in plain words.
Variance and standard deviation calculator
How this calculator works
The spread of a sample carries its own uncertainty, and this calculator puts intervals around it. The method rests on one fact: the sample variance, scaled by the sample size minus one and divided by the true variance, follows the chi-square distribution. That fact holds when the underlying data are close to normal, and the intervals lean on the assumption harder than mean intervals do.
The variance interval divides the scaled sample variance by the two chi-square quantiles at the chosen level. The standard deviation interval is the square root of the variance interval, end by end. The test statistic is the same scaled variance, read against the standard deviation under test. The two-sided p-value is twice the smaller tail, the textbook convention.
Worked example
A sample of 12 has a standard deviation of 2.5, tested against a standard deviation of 2. The 95 percent interval for the variance runs from 3.136 to 18.017. The interval for the standard deviation runs from 1.771 to 4.245. The chi-square statistic is 17.1875 at 11 degrees of freedom, and the p-value is 0.2049, above 0.05, so the test does not reject a standard deviation of 2.
Values computed from the chi-square distribution. The method was checked against reference calculations: the entries in the worked example reproduce to four decimal places, and the full pair record sits in the package verification file.