Determining optimal number of bins for chi squared distribution

12 ビュー (過去 30 日間)
John
John 2012 年 2 月 8 日
回答済み: Damiano Capocci 2018 年 3 月 24 日
Hello,
I am applying a chi squared distribution to histogram. Is there any way in matlab to determine the optimal number of bins to get the lowest chi squared (X2) statistic?
The Chi-square goodness-of-fit test function does not necessarily tell you the optimal number of bins to use, or does it?
Many thanks
John

回答 (1 件)

Damiano Capocci
Damiano Capocci 2018 年 3 月 24 日
More you have, better will be. if you have a great number of data you can go far with stand deviations because you will always have the product Prob*N_tot big enough

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by