Does anyone know the formula that is used to create the Chi square table for a given p-Value and the degrees of freedom? For example df=6, Percent = 0.99 would calculate x^2 as 0.872.

Does anyone know the formula that is used to create the Chi square table for a given p-Value and the degrees of freedom? For example df=6, Percent = 0.99 would calculate x^2 as 0.872.

Well... you need to use the quantile function or inverse CDF of the chi-square distribution for that and I don't think there are closed-form expressions for it because of the gamma functions involved.