Tests
kχ2 Test
χ2 Test
Command: ChiTest
Description: This command tests hypotheses concerning the proportion of samples included in each of a number of independent groups. The χ2 Test command is used in the case of dichotomous variables, which are variables that have only two possible values (such as “yes” or “no”).
Expected Frequencies |
| k |
|
|
|
|
Σxij | ⋅Σxij |
| ||||
|
| |||||
| Fij = | i=1 | j=1 |
|
|
|
| k |
|
|
|
| |
|
| Σ Σ xij |
|
|
| |
|
| i=1 j=1 |
|
|
| |
|
| k | (xij – | Fij) | 2 | |
| χ2 = Σ Σ |
| ||||
| Fij |
| ||||
| i=1 j=1 |
|
Command Syntax
Observed matrix
Definition of Terms
Observed matrix: name of matrix containing observed values (positive integers in all cells)
Input Example:
ChiTest matrixa
Calculation Result Output
χ2 : χ2 value
p :
df : degrees of freedom
Tip
•The minimum size of the matrix is 2 ⋅ 2. An error occurs if the matrix has only one row or one column.
•The result of the expected frequency calculation is stored in the system variable named “Expected”.
20050501