7
$\begingroup$

What I am trying to do is to get the value of $\chi^2$ for given probability (let us say $\alpha$=0.01) and degrees of freedom (for example df=3).

How do I get that?

Inverse...Distribution functions return something quite different from expected.

Thanks in advance.

$\endgroup$
  • 3
    $\begingroup$ So, Quantile[]? InverseCDF[]? InverseSurvivalFunction[]? You've seen them? Could you elaborate on "something quite different from expected." with a concrete example? $\endgroup$ – J. M. will be back soon Sep 7 '12 at 14:28
  • $\begingroup$ @J.M. : Please write your comment as an answer so I could vote it. InverseCDF solves the issue. When used InverseChiSquareDistribution i got values different from expected (as those taken from statistical book tables for Chi square test) $\endgroup$ – Misery Sep 7 '12 at 14:33
  • 2
    $\begingroup$ Tsk, tsk. If you read the docs for InverseChiSquareDistribution[], it's the distribution followed by the reciprocal of a $\chi^2$-distributed variate... $\endgroup$ – J. M. will be back soon Sep 7 '12 at 14:40
9
$\begingroup$

InverseSurvivalFunction[] is the nearest to what you want; for a given confidence level $\alpha$ and degree of freedom $\nu$, InverseSurvivalFunction[ChiSquareDistribution[ν], α] gives the result you want. Alternatives include InverseCDF[ChiSquareDistribution[ν], 1 - α] and Quantile[ChiSquareDistribution[ν], 1 - α].

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.