![chi-square.jfif](https://www.mathworks.com/matlabcentral/answers/uploaded_files/207515/chi-square.jpeg)
Chi square on a custom equation plot
조회 수: 20 (최근 30일)
이전 댓글 표시
Hello!
sorry if this may seem like a silly question, but I am having trouble with finding th chi^2 and reduced chi^2 values for my efficiency plot. I generated a code of my plot which i did on the curve fitting app, and I'm not sure how to go about writing in the chi^2 for it. My plot looks like this
![x.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/205969/image.jpeg)
Thank you!
댓글 수: 0
답변 (1개)
Abhishek Singh
2019년 3월 8일
I’m not very clear about the question you asked but I understand you need to find Chi-square value and reduced Chi-square value.
Formula for finding the Chi-square value is:
![chi-square.jfif](https://www.mathworks.com/matlabcentral/answers/uploaded_files/207515/chi-square.jpeg)
h = chi2gof(x)
You can find reduced Chi-square value through dividing the Chi-square value by degrees of freedom.
I hope this helps.
댓글 수: 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!