Difference between revisions of "Manuals/calci/CHITEST"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left">''' CHITEST ''' ('''a, b''') Where ‘a ‘is the observations to test against the expected values and ‘b’ is the ...")
 
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">''' CHITEST ''' ('''a, b''')
+
''' CHITEST ''' ('''a, b''')
  
 
Where ‘a ‘is the observations to test against the expected values and ‘b’ is the ratio of the product of row totals and column totals to the grand total.
 
Where ‘a ‘is the observations to test against the expected values and ‘b’ is the ratio of the product of row totals and column totals to the grand total.
  
</div>
 
----
 
<div id="1SpaceContent" class="zcontent" align="left">
 
  
This function returns the test for independence.
+
*This function returns the test for independence.
 +
*Sometimes CHITEST returns the error value, when ‘a’ and ‘b’ have a different number of data points.
 +
*It is calculated using the formula:
 +
Where:
 +
A<sub>ij = actual frequency in the i-th row, j-th column</sub>
 +
Eij = expected frequency in the i-th row, j-th column
  
</div>
+
r = number or rows and c = number of columns
----
 
<div id="7SpaceContent" class="zcontent" align="left">
 
  
Sometimes CHITEST returns the error value, when ‘a’ and ‘b’ have a different number of data points.
+
χ<sup>2 is always positive or 0, and is 0 only if Aij = Eij for every i, j.</sup>
  
It is calculated using the formula:
 
  
Where:
 
 
A<sub>ij = actual frequency in the i-th row, j-th column</sub>
 
 
Eij = expected frequency in the i-th row, j-th column
 
 
r = number or rows and c = number of columns
 
 
χ<sup>2 is always positive or 0, and is 0 only if Aij = Eij for every i, j.</sup>
 
 
</div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">CHITEST</div></div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left">
 
  
 
{| id="TABLE3" class="SpreadSheet blue"
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
|- class="even"
 
| class="  " |
 
| class="  " |
<div id="2Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
+
 
 
| class="        " | Column1
 
| class="        " | Column1
 
| class="        " | Column2
 
| class="        " | Column2
Line 87: Line 63:
 
|}
 
|}
  
</div>
+
Let’s see an example
----
 
<div id="8SpaceContent" class="zcontent" align="left"><font size="3"><font face="Times New Roman">''' <font size="3"><font face="Times New Roman">AVEDEV (N1, N2...)</font></font> <font size="3"><font face="Times New Roman">Where N1, N 2 ...   are positive integers.</font></font> '''</font></font></div>
 
----
 
<div id="5SpaceContent" class="zcontent" align="left">
 
 
 
Let’s see an example
 
 
 
B C
 
  
45 38
+
B C
  
10 23
+
45 38
  
12 26
+
10 23
  
40.5 49.36
+
12 26
  
19.56 16.44
+
40.5 49.36
  
17.05 17.41
+
19.56 16.44
  
CHITEST (a, b)
+
17.05 17.41
  
i.e. =CHITEST (B2; C4, B5:C7) is 0.003
+
CHITEST (a, b)
  
</div>
+
i.e. =CHITEST (B2; C4, B5:C7) is 0.003
----
 

Revision as of 05:27, 22 November 2013

CHITEST (a, b)

Where ‘a ‘is the observations to test against the expected values and ‘b’ is the ratio of the product of row totals and column totals to the grand total.


  • This function returns the test for independence.
  • Sometimes CHITEST returns the error value, when ‘a’ and ‘b’ have a different number of data points.
  • It is calculated using the formula:
Where:
Aij = actual frequency in the i-th row, j-th column
Eij = expected frequency in the i-th row, j-th column
r = number or rows and c = number of columns
χ2 is always positive or 0, and is 0 only if Aij = Eij for every i, j.


Column1 Column2 Column3 Column4
Row1 45 38 0.000313
Row2 10 23
Row3 12 26
Row4 40.5 49.36
Row5 19.56 16.44
Row6 17.05 17.41
Let’s see an example
B C
45 38
10 23
12 26
40.5 49.36
19.56 16.44
17.05 17.41
CHITEST (a, b)
i.e. =CHITEST (B2; C4, B5:C7) is 0.003