In a study on survival time for ten patients following a new treatment for AIDS. The time in months were given thus: 24, 12, 8, 20, 3, 18, 24, 25, and 27. Determine the variance for the given data.
Solution
The variance of any given set of data containing n values can be calculated as:
V=n[(x1−x)2+(x2−x)2+(x3−x)2+…+(xn−x)2]
Where:
x,x2,x3…xn represent the n values, and
x=mean of n values=nx1+x2+x3+…+xn
From the given values we calculate the mean x as:
x=924+12+8+20+3+18+24+25+27=17.9
And
(x1−x)2=(24−17.9)2=37.21;(x2−x)2=(12−17.9)2=34.81(x3−x)2=(8−17.9)2=98.01;(x4−x)2=(20−17.9)2=4.41(x5−x)2=(3−17.9)2=222.01;(x6−x)2=(18−17.9)2=0.01(x7−x)2=(24−17.9)2=37.21;(x8−x)2=(25−17.9)2=50.41(x9−x)2=(27−17.9)2=82.81
And
V=9[(x1−x)2+(x2−x)2+(x3−x)2+…+(x9−x)2]V=937.21+34.81+98.01+4.41+222.01+0.01+37.21+50.41+82.81=63
Answer: 63.