symbolic integration for chi-square distribution

2 views (last 30 days)
I want to do following integration:
syms x y
F = @(x,y)chi2pdf(y,2).*chi2pdf(x,1);
fp = int(int(F,y,x-3,100),x,0,100);
However, it does not show an explicit number. Is there any way to carry out the integration? Thank you.

Accepted Answer

Walter Roberson
Walter Roberson on 21 Dec 2011
Possibly you will have to go back to the definition of chi2pdf that is on the documentation page, http://www.mathworks.com/help/toolbox/stats/chi2pdf.html as chi2pdf routine is a numeric routine rather than a symbolic routine.
  2 Comments
Ikjin
Ikjin on 21 Dec 2011
if chi-square distribution is used, then I can replace it with analytic expression. But, if non-central chi-square distribution is used, do you know how to do the integration?
Walter Roberson
Walter Roberson on 21 Dec 2011
There seems to be a formula at
http://en.wikipedia.org/wiki/Noncentral_chi-squared_distribution#Cumulative_distribution_function

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!