find probability of chi2 test
조회 수: 3 (최근 30일)
이전 댓글 표시
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
Asvin Kumar
2021년 3월 21일
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.
채택된 답변
Ive J
2021년 3월 21일
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
추가 답변 (1개)
Aditya Patil
2021년 3월 29일
You have X. using chi2cdf, you can get . So in your case, , which you can get using chi2cdf as follows
p = 1 - chi2cdf(X, a)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!