0
$\begingroup$

How can I find the expected value and median of $X\sim \chi^2$ with degrees of freedom of $12\,$? The information I get from every other source, I find, is confusing. I am using R.

$\endgroup$
1

1 Answer 1

4
$\begingroup$

The mean of a $\chi^2$ random variable is equal to the degrees of freedom. The median has no close form afaik, you can get it in R from the inverse cumulative distribution function (aka the quantile function) evaluated at $0.5$:

qchisq(0.5, dof)
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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