Azzera filtri
Azzera filtri

How to calculate nbins for chi2gof test?

1 visualizzazione (ultimi 30 giorni)
Sasi
Sasi il 26 Gen 2012
Hi I want to use chi2gof test to see if the distributions of my data is normal or not? but I don't know how to calculate nbins or edges? Tanx Sasi

Risposte (1)

Wayne King
Wayne King il 26 Gen 2012
Why don't you just use the default number of bins, which is 10.
If you end up with fewer than 5 observations in the interior bins, chi2gof() will throw a warning and then you can reduce the number of bins.

Community Treasure Hunt

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

Start Hunting!

Translated by