Difference between revisions of "Manuals/calci/CHITEST"

From ZCubes Wiki
Jump to navigation Jump to search
Line 23: Line 23:
 
  If <math>r = c = 1</math> then this function will give the error result
 
  If <math>r = c = 1</math> then this function will give the error result
  
 
+
==Examples==
 
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
| class="  " |
 
 
 
| class="        " | Column1
 
| class="        " | Column2
 
| class="    " | Column3
 
| class="  " | Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f " | 45
 
| class="sshl_f" | 38
 
| class="sshl_f" | 0.000313
 
| class="sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f  " | 10
 
| class="sshl_f" | 23
 
| class="SelectTD" |
 
| class="sshl_f" |
 
|- class="odd"
 
| Row3
 
| class="sshl_f" | 12
 
| class=" " | 26
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row4
 
| class="sshl_f " | 40.5
 
| class=" " | 49.36
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| class="sshl_f" | Row5
 
| class="sshl_f" | 19.56
 
| class="sshl_f" | 16.44
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| class="sshl_f" | Row6
 
| class=" " | 17.05
 
| class="sshl_f " | 17.41
 
|
 
| class="sshl_f" |
 
|}
 
  
 
  Let’s see an example
 
  Let’s see an example
 
 
  B C
 
  B C
 
 
  45 38
 
  45 38
 
 
  10 23
 
  10 23
 
 
  12 26
 
  12 26
 
 
  40.5 49.36
 
  40.5 49.36
 
 
  19.56 16.44
 
  19.56 16.44
 +
17.05 17.41
 +
CHITEST (a, b)
 +
i.e. =CHITEST (B2; C4, B5:C7) is 0.003
  
17.05 17.41
+
==See Also==
  
CHITEST (a, b)
+
*[[Manuals/calci/CHIDIST | CHIDIST]]
  
i.e. =CHITEST (B2; C4, B5:C7) is 0.003
+
==References==
 +
[http://en.wikipedia.org/wiki/Chi-squared_distribution  CHI-SQUARE Distribution]

Revision as of 02:04, 25 November 2013

CHITEST(ar,er)


  • is the array of observed values
  • is the array of expected values

Description

  • This function gives the the value from the chi-squared distribution. i.e it calculates  statistic and degrees of freedom, then calls CHIDIST.

The conditions of test is

The table should be 2x2 or more than 2x2
Each observations should not be dependent
All expected values should be 10 or greater. 
Each cell has an expected frequency of at least five.
  • The test first calculates a statistic using the formula:

  • is the array of the observed values in a given set of values
  • observed and expected must have the same number of rows and columns and there must be atleast 2 values in each.
  • A low result of is an indicator of independence.
  • From the formula of we will get is always positive or 0.
  • 0 only if for each and .
  • CHITEST uses the distribution with the number of Degrees of Freedom df.
where  and .
If  and , then  or if  and , then .
If  then this function will give the error result

Examples

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

See Also

References

CHI-SQUARE Distribution