Getting Chi-Squared Statistic

Hi
How can i use Matlab to find for example the following chi-squared statistic?
I can't make sense of the various commands.

 Accepted Answer

chi2inv(0.95,1) % gives 3.8415
chi2cdf(3.8415,1) % gives 0.95

More Answers (0)

Asked:

on 25 May 2022

Answered:

on 25 May 2022

Community Treasure Hunt

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

Start Hunting!