Changes

65 bytes removed ,  12:32, 26 November 2013
Line 17: Line 17:     
==Examples==
 
==Examples==
A student investigated the chance of getting viral fever in a school for a period that took vitamin tablets every day. The total number of students 880. In that 639 students didn't get viral fever and 241 students got fever .But the expected ratio is 1:3<br/>
+
#'''Example 1'''
'''Answer'''
+
{| class="wikitable"
*If the ratio is 1:3 and the total number of observed individuals is 880, then the expected numerical values should be: 660 will not get fever and 220 students will get fever.  
+
|+Spreadsheet
 +
|-
 +
! !! A !! B !! C !! D!! E
 +
|-
 +
! 1
 +
| 5 || 7 || 8 || ||
 +
|-
 +
! 2
 +
| 7 || 4 ||  ||  ||
 +
|-
 +
! 3
 +
| 8  ||  ||  || ||
 +
|-
 +
! 4
 +
| 4 ||-5  || 9  || ||
 +
|-
 +
! 5
 +
|  ||  ||  || ||
 +
|}
 +
'''From the above table values:'''
 +
{| class="wikitable"
 +
|+ =MMULT(3,A1:A3)
 +
|-
 +
| 15
 +
| 21
 +
| 24
 +
|}
 +
{| class="wikitable"
 +
|+=MMULT(6,A4:C4)
 +
|-
 +
| 24
 +
| -30
 +
| 54
 +
  |}
   −
{| class="wikitable" style="width:50%"
+
#'''Example 2'''
|-
+
{| class="wikitable"
!
+
|+Matrix A
! No Fever
  −
! Get Fever
   
|-
 
|-
! Observed Values
+
| 7 || 5
| 639
  −
| 241
   
|-
 
|-
! Expected Values
+
| 2 || 3
| 660
  −
| 220
   
|-
 
|-
! <math>\frac{(oi-ei)^2}{ei}</math>
+
| 6 || 0
| 0.668
+
|-
| 2
+
| 9 || 8   
 
|}
 
|}
   −
*The <math>\chi^2</math> value is 2.668
+
{| class="wikitable"
*Now <math>df=(r-1)(c-1) = (2-1)(2-1) = 1 </math>
+
|+Matrix B
*From the Chi Squared Distribution probability table with <math>df</math> is 1, the <math>\chi^2</math> value of 2.668 is  0.10.<br/>
+
|-
CHITEST(or,er) = 0.10
+
| 8 || -4 ||11
 +
|-
 +
| 2 || 7  || 5 
 +
|}
 +
*Here Matrix A is of order 4x2 and Matrix B is of order 2x3.
 +
*So the Product Matrix is of order 4x3. i.e
 +
#'''1st Row''' 7*8+5*2 = 66  ;  7*(-4)+5*7 = 7  ;  7*11+5*5 = 102
 +
#'''2nd Row''' 2*8+3*2 = 22  ;  2*(-4)+3*7 = 13  ;  2*11+3*5 = 37 and so on
    
==See Also==
 
==See Also==
writer
5,435

edits