Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
So, Quantile[]? InverseCDF[]? InverseSurvivalFunction[]? You've seen them? Could you elaborate on "something quite different from expected." with a concrete example? – J. M. Sep 7 '12 at 14:28
@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) – Misery Sep 7 '12 at 14:33
Tsk, tsk. If you read the docs for InverseChiSquareDistribution[], it's the distribution followed by the reciprocal of a $\chi^2$-distributed variate... – J. M. Sep 7 '12 at 14:40
up vote 8 down vote accepted

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 - α].

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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