Why I get NaN for 24,8 for chi2inv ?
조회 수: 1 (최근 30일)
이전 댓글 표시
>> c = chi2inv(24,8)
c =
NaN
In the exercise what we did in school,we used the chi2 table for vx = 24 nad vy = 8 ,and we get w0.95 = 3.155
When I want to search for the chi2nv value , I get NaN out in matlab. How to find this 3,155 wiht matlab?
댓글 수: 2
the cyclist
2015년 10월 23일
편집: the cyclist
2015년 10월 23일
Hi, xy.
Your question is hard to decipher. "vx", "vy", and "w" are not standard parameters of the chi^2 distribution, so it is difficult to guess what you actually calculated in your school course.
Can you explain in words and concepts what you were trying to calculate in your class? Then maybe we can help you translate that into MATLAB. For example, it looks like maybe you are looking for the 95th confidence interval? But we need to know the number of "degrees of freedom" for the chi^2, for example.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Hypothesis Tests에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!