Sunday, May 5

How to Compute Variance


In probability theory and statistics, the variance is used as one of several descriptors of a distribution. In particular, the variance is one of the moments of a distribution. The variance is a parameter describing a theoretical probability distribution, while a sample of data from such a distribution can be used to construct an estimate of this variance: in the simplest cases this estimate can be the sample variance. (Source: Wikipedia)

I like to share this Calculate Sample Variance with you all through my article. 

How to Compute Variance - Examples


Example 1: In class 7 student’s height are as follows 144, 154, 175, 180, 165, 160, 170 centimeters. Compute the variance of given data. 
Solution:
Mean = Sum of all the elements in a data set / total number of elements in a data set
by adding and dividing by 7 to get
       `barx` = 1148 / 7 = 164
Table for getting the variance

xx – 164(x - 164 )2  
144-20400
154-10100
17511121
18016256
16511
160-416
170636
Total930

Formula to compute the variance is
`s^2 = 1/(N-1) sum_(i=1)^n (x_i-barx)^2`
Put all the values in the formula to get
930 / (7-1) = 155
Therefore variance is 155.

Example 2: In a class 9 student’s weight are 45, 50, 61, 85, 62, 72, 66, 75, 78 kilograms. Compute the variance of given data. 
Solution:
Mean = Sum of all the elements in a data set / total number of elements in a data set
Mean by adding and dividing by 9 to get
        x = 594 / 9 = 66
Table for getting the variance:
xx – 66(x - 66 )2  
45-21441
50-16256
61-525
8519361
62-416
72636
6600
75981
7812144
Total1360

Formula to find the variance is
`s^2 = 1/(N-1) sum_(i=1)^n (x_i-barx)^2` 
Put all the values in the formula to get
1360 / (9-1) = 170       
Therefore variance is 170

How to Compute Variance - Practice


Problem 1: In class 7 student’s height are as follows 154, 164, 185, 190, 175, 170, 180 centimeters. Compute the variance of given data. 
Answer: 155
Problem 2: In a class 9 student’s weight are 55, 60, 71, 95, 72, 82, 76, 85, 88 kilograms. Compute the variance of given data. 
Answer: 170
Problem 3: 9 person's age are 25, 35, 30, 42, 45, 60, 39, 14, 52 years. Compute the variance of given data. 
Answer: 195.5

No comments:

Post a Comment