Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Chi-square goodness-of-fit test

returns
a test decision for the null hypothesis that the data in vector `h`

= chi2gof(`x`

)`x`

comes
from a normal distribution with a mean and variance estimated from `x`

,
using the chi-square goodness-of-fit
test. The alternative hypothesis is that the data does not
come from such a distribution. The result `h`

is `1`

if
the test rejects the null hypothesis at the 5% significance level,
and `0`

otherwise.

returns
a test decision for the chi-square goodness-of-fit test with additional
options specified by one or more name-value pair arguments. For example,
you can test for a distribution other than normal, or change the significance
level of the test.`h`

= chi2gof(`x`

,`Name,Value`

)

Was this topic helpful?