7-9-15

Tests

χ2 GOF TestMenu: [Test]-[χ2GOF Test]

Description: This command tests whether the frequency of sample data fits a certain distribution. For example, it can be used to determine conformance with normal distribution or binomial distribution.

k

(O

i

E )2

 

 

 

 

χ2 =Σ

 

 

 

i

 

 

 

 

 

 

Ei

 

 

 

 

 

 

i

 

 

 

 

 

 

 

 

Contrib =

 

 

(O1 E1 )2 (O2 E2 )2

...

(Ok Ek )2

 

 

 

E1

 

E2

Ek

 

 

 

 

 

 

 

Oi : The i-th element of the observed listEi : The i-th element of the expected list

Definition of Terms

Observed list : name of list containing observed counts (all cells positive integers)

Expected list : name of list that is for saving expected frequencydf :degrees of freedom

Calculation Result Output

χ2 :

χ2 value
p :

p-value

df :

degrees of freedom

Contrib :name of list specifying the contribution of each observed count

Example

list1 = {1,2,3}, list2 = {4,5,6}, df = 1

Statistics Wizard Operation

(1)J

(2)Input the list1 and list2.

(3)mI

(4)On the menu bar, tap [Calc] and then [Test].

(5)Select [χ2 GOF Test] and then tap [Next >>].(6)Select List(1) [list1], List(2) [list2] and input df 1.

(7)Tap [Next >>].

(8)To display the graph, tap $.

uProgram, eActivity or Main Application

Command: ChiGOFTest

Command Syntax

Observed list, Expected list, df

Input Example:

ChiGOFTest list1, list2, 1

Tip

The calculation results χ2, p, df, and Contrib are stored in the system variables named “χ2value”, “prob”, “df”, and “Contrib” respectively.

20090601