chisq_test
Chi-squared test of independence p-value.
Syntax
Section titled “Syntax”v = chisq_test(actual_range, expected_range)Description
Section titled “Description”Returns the p-value of the chi-squared test for whether actual_range differs from expected_range. The test statistic is sum((O-E)^2 / E); the p-value comes from the chi-squared distribution with appropriate degrees of freedom.
Example
Section titled “Example”chisq_test([58 11 10 12 9], [45 19 11 14 11])See also
Section titled “See also”chisq_dist— Chi-squared left-tail PDF or CDF.t_test— Student’s t-test p-value.f_test— F-test for equal variances (two-tailed p-value).