Q:

Consider a sample with data values of 27, 25, 20, 15, 30, 34, 28, and 25. Compute the range, interquartile range, variance, and standard deviation (to a maximum of 2 decimals, if decimals are necessary).

Accepted Solution

A:
So we have a set of integers,[tex]X=\{15,20,25,25,27,28,30,34\}[/tex]And we need to compute some stats.First the range,The range of data set is difference between the maximum and the minimum of the data set.So the minimum is 15 and maximum is 34 therefore the range is 34 - 15 = 19.Second the interquartile range,The interquartile range of data set is the difference of the first and third quartiles.First quartile is the value separating the lower quarter and higher three - quarters of the set. The first quartile is computed by taking median of the lower half of the sorted set. This is 15, 20, 25, 25 and it's median is 22.5Third quartile is therefore the median of 27, 28, 30, 34 which is 29.Next up, variance.The variance of set measures how much data is spread out. For data set [tex]x_1,\dots, x_n[/tex] with an average [tex]a[/tex],[tex]\mathsf{var}(X)=\Sigma_{i=1}^{n}\dfrac{(x_i-a)^2}{n-1}[/tex]So first compute the average value which is actually a mean,[tex]a=\dfrac{1}{2}\Sigma_{i=1}^{n}a_i[/tex]The sum [tex]\Sigma_{i=1}^{n}a_i[/tex] of numbers in set is 204.Divide this by number of elements in the set (8).[tex]a=\dfrac{204}{8}=25.5[/tex]Then compute the variance,[tex]\mathsf{var}(X)=\dfrac{\Sigma_{i=1}^{n}(x_i-a)^2}{n-1}\approx\boxed{34.57}[/tex] And finally standard deviation,Since have computed variance the standard deviation is nothing too hard. It's defined as a square root of variance,[tex]\mathsf{sde}(X)=\sqrt{\dfrac{\Sigma_{i=1}^{n}(x_i-a)^2}{n-1}}=\sqrt{34.57}\approx\boxed{5.88}[/tex]Hope this helps.r3t40