Updated: 31 July 2015
Use CHISQ_DIST_RT to calculate the upper distribution of a chi-squared distribution for x and a number of degrees of freedom.
The value of interest to be evaluated. @X must be of a type float or of type that intrinsically converts to float.
The number of degrees freedom. @Degrees_freedom must be of a type float or of a type that intrinsically converts to float.
· 0 < @X
· 0 < @Degrees_freedom
In this example we calculate the right-tailed probability.
) as [Right Tail]
This produces the following result
The chi-squared distribution is a special case of the gamma distribution
wct.CHISQ_DIST_RT(x,df) as [Chi-squared]
,wct.GAMMAQ(0.5*df,0.5*x) as GammaQ
FROM (VALUES (42,57))n(x,df)
This produces the following result.