find probability of chi2 test
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mustafa Al-Nasser
le 16 Mar 2021
Réponse apportée : Aditya Patil
le 29 Mar 2021
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 commentaires
Asvin Kumar
le 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.
Réponse acceptée
Ive J
le 21 Mar 2021
Based on what you explained it seems you already have the X2 stat.
p = 1 - chi2cdf(x, nu) % where x is chi2 stat and nu is df
0 commentaires
Plus de réponses (1)
Aditya Patil
le 29 Mar 2021
You have X. using chi2cdf, you can get
. So in your case,
, which you can get using chi2cdf as follows
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/566116/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/566121/image.png)
p = 1 - chi2cdf(X, a)
0 commentaires
Voir également
Catégories
En savoir plus sur Hypothesis Tests dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!