Click or drag to resize

PearsonsChiSquareTest(Int32, Boolean) Constructor

Test of independence. Asseses whether paired observations on two variables provided in the form of a contingency table are independent. Use the default alpha to determine accept/reject.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public PearsonsChiSquareTest(
	int[,] contingencyTable,
	bool isYatesCorrected
)

Parameters

contingencyTable  Int32
Contingency table is the matrix used for a test of independence of variable i and j.
C#
Example: Variables i is sex (M, F) and variable j handedness (left, right).  100
people are sampled randomly to yield the table:

handedness    R   L    
row 0: M      43   9   
row 1: F      44   4
isYatesCorrected  Boolean
Use Yates correction for 2 × 2 contingency tables.
See Also