find probability of chi2 test
Show older comments
Dear all;
if i want to perfrom a hypothesis test for chi2 distrubtion , how can i do it in matlab :
P(X>a)= alpha
5 Comments
Asvin Kumar
on 18 Mar 2021
Mustafa Al-Nasser
on 21 Mar 2021
Asvin Kumar
on 21 Mar 2021
Edited: Asvin Kumar
on 21 Mar 2021
I'm not sure I can help much with this topic. Just curious... If Chi2_critical and alpha are constants, what is x? What distribution does it follow? Do you have a sample set of values of x?
If there's a wiki page explaining this statistic, could you please link it? I'd like to learn something new.
Mustafa Al-Nasser
on 21 Mar 2021
Asvin Kumar
on 21 Mar 2021
Thanks for explaining. I'm, unfortunately, not the right person for this question. I was merely suggesting a function I had come across in the docs. I'll let someone else from the community help you with this.
Accepted Answer
More Answers (1)
Aditya Patil
on 29 Mar 2021
You have X. using chi2cdf, you can get
. So in your case,
, which you can get using chi2cdf as follows
. So in your case,
, which you can get using chi2cdf as followsp = 1 - chi2cdf(X, a)
Categories
Find more on Chi-Square Distribution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!