Chi squared test to test if data is from same distribution
古いコメントを表示
Hello,
I have recorded some discrete data with an unspecified distribution.
I have generated some discrete data from a model.
I looking to check to see if the generated data has the same distribution as the real data.
If the data was continious, I would use a Q-Q plot and a striaght line would indicate that it is true.
As the data is discrete, I need another test.
I was thinking a chi-squared test would be suitbale?
Would Matlab have such a function? I would be grateful if somebody could perhaps demonstrate an example?
kind regards
採用された回答
その他の回答 (1 件)
Sean de Wolski
2013 年 2 月 8 日
How abot anything here:
Or some of the anova tests:
doc anova1
doc anova2
doc anovan
4 件のコメント
John
2013 年 2 月 8 日
Sean de Wolski
2013 年 2 月 8 日
What does your data look like?
I'm not a stats expert so I won't discuss the theoretical stuff (Tom, Ilya or Peter may chime in...)
But I would highly recommend reading the doc because it will describe exactly what is going on for your data.
José-Luis
2013 年 2 月 8 日
The KS test if for discrete data. What you assume is that the distribution they come from is continuous. That's a different thing.
カテゴリ
ヘルプ センター および File Exchange で Chi-Square Distribution についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!