fn_chi2indenpendencetest
Contents
Syntax
p = fn_chi2indenpendencetest(table)
Description
Input: - table m x n array - there are 2 random variables X and Y, each can take m and n values, respectively; table counts how many observation were made of each pair (i,j)
Output - p p-value for the null hypothesis that X and Y are drawn independently
Note that the test is valid only if the number of observations is large enough. See http://stattrek.com/statistics/dictionary.aspx?definition=Chi-square%20test%20for%20independence
Source
Thomas Deneux
Copyright 2015-2017