Wolfram Research

Function Repository Resource:

ChiSquareCI

Source Notebook

Estimate the confidence interval based on a Chi-squared distribution

Contributed by: Wolfram Research

ResourceFunction["ChiSquareCI"][var,df]

gives a confidence interval based on a χ2 distribution with df degrees of freedom.

Details and Options

ResourceFunction["ChiSquareCI"][var,df] gives a confidence interval {min,max} for a population variance estimated by var.
For confidence level α, and , where qi is the ith quantile of a χ2 distribution with df degrees of freedom.
ResourceFunction["ChiSquareCI"] is the confidence interval for a population variance based on a sample variance var estimated from a sample of size df+1.
The following option can be given:
ConfidenceLevel 0.95 probability associated with a confidence interval

Examples

Basic Examples

A 95% confidence interval based on a χ2 distribution:

In[1]:=
ResourceFunction["ChiSquareCI"][1, 10]
Out[1]=

Options

ConfidenceLevel

A 99% confidence interval:

In[2]:=
ResourceFunction["ChiSquareCI"][1, 10, ConfidenceLevel -> .99]
Out[2]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

See Also

License Information