Module III: Statistical Techniques – I
Practice Questions with Solutions
Question 1 – Measures of Central Tendency
The marks of 10 students are:
45, 56, 62, 48, 70, 55, 60, 52, 68, 58
Find the Mean, Median and Mode.
Solution
Mean
x ˉ = 45 + 56 + 62 + 48 + 70 + 55 + 60 + 52 + 68 + 58 10 = 574 10 = 57.4 \bar{x} = \frac{45+56+62+48+70+55+60+52+68+58}{10} = \frac{574}{10} = 57.4 x ˉ = 10 45 + 56 + 62 + 48 + 70 + 55 + 60 + 52 + 68 + 58 = 10 574 = 57.4
Median
Arranged data: 45, 48, 52, 55, 56, 58, 60, 62, 68, 70
Median = 5 th + 6 th 2 = 56 + 58 2 = 57 \text{Median} = \frac{5^{\text{th}} + 6^{\text{th}}}{2} = \frac{56+58}{2} = 57 Median = 2 5 th + 6 th
Mode
No value repeats → Mode does not exist (or is multimodal / undefined for this set).
Question 2 – Moments, Skewness & Kurtosis
For a distribution, the first four central moments are
μ 2 = 16 \mu_2 = 16 μ 2 = 16 , μ 3 = − 64 \mu_3 = -64 μ 3 = − 64 , .
Find the coefficients of skewness ( ) and kurtosis ( ). Comment on the nature of the distribution.
Solution
β 1 = μ 3 2 μ 2 3 = ( − 64 ) 2 16 3 = 4096 4096 = 1 \beta_1 = \frac{\mu_3^2}{\mu_2^3} = \frac{(-64)^2}{16^3} = \frac{4096}{4096} = 1 β 1 = μ 2 3
γ 1 = β 1 = 1 (positively skewed) \gamma_1 = \sqrt{\beta_1} = 1 \quad\text{(positively skewed)} γ 1 = β 1
β 2 = μ 4 μ 2 2 = 768 256 = 3 \beta_2 = \frac{\mu_4}{\mu_2^2} = \frac{768}{256} = 3 β 2 = μ 2 2
γ 2 = β 2 − 3 = 0 (mesokurtic) \gamma_2 = \beta_2 - 3 = 0 \quad\text{(mesokurtic)} γ 2 = β 2 − 3 = 0 (mesokurtic)
The distribution is moderately positively skewed and mesokurtic (normal-like peakedness).
Question 3 – Moment Generating Function
Find the MGF of a random variable X X X that takes values 0, 1, 2 with probabilities 1 2 \frac12 2 1 , 1 3 \frac13 3 , respectively. Hence find and .
Solution
M X ( t ) = E ( e t X ) = 1 2 e 0 + 1 3 e t + 1 6 e 2 t = 1 2 + 1 3 e t + 1 6 e 2 t M_X(t) = E(e^{tX}) = \frac12 e^{0} + \frac13 e^{t} + \frac16 e^{2t} = \frac12 + \frac13 e^{t} + \frac16 e^{2t} M X ( t ) = E ( e
E ( X ) = M ′ ( 0 ) = 1 3 + 2 6 = 1 3 + 1 3 = 2 3 E(X) = M'(0) = \frac13 + \frac26 = \frac13 + \frac13 = \frac23 E ( X ) = M ′ ( 0 ) = 3
E ( X 2 ) = M ′ ′ ( 0 ) = 1 3 + 4 6 = 1 3 + 2 3 = 1 E(X^2) = M''(0) = \frac13 + \frac46 = \frac13 + \frac23 = 1 E ( X 2 ) = M ′′ ( 0 ) =
Var ( X ) = E ( X 2 ) − [ E ( X ) ] 2 = 1 − ( 2 3 ) 2 = 1 − 4 9 = 5 9 \operatorname{Var}(X) = E(X^2) - [E(X)]^2 = 1 - \left(\frac23\right)^2 = 1 - \frac49 = \frac59 Var ( X ) = E ( X 2 ) − [ E ( X )
Question 4 – Fitting of Straight Line
Fit a straight line y = a + b x y = a + bx y = a + b x to the following data by the method of least squares:
Solution
x y x y x 2 1 2 2 1 2 5 10 4 3 3 9 9 4 8 32 16 5 7 35 25 ∑ x = 15 ∑
Normal equations:
∑ y = n a + b ∑ x ⟹ 25 = 5 a + 15 b \sum y = na + b\sum x \implies 25 = 5a + 15b ∑ y = na + b ∑ x ⟹ 25 = 5 a + 15 b
∑ x y = a ∑ x + b ∑ x 2 ⟹ 88 = 15 a + 55 b \sum xy = a\sum x + b\sum x^2 \implies 88 = 15a + 55b ∑ x y = a ∑ x + b ∑ x 2 ⟹ 88 =
Solving:
b = 5 ⋅ 88 − 15 ⋅ 25 5 ⋅ 55 − 15 2 = 440 − 375 275 − 225 = 65 50 = 1.3 b = \frac{5\cdot88 - 15\cdot25}{5\cdot55 - 15^2} = \frac{440-375}{275-225} = \frac{65}{50} = 1.3 b = 5 ⋅ 55 − 1 5 2 5 ⋅
a = 25 − 15 ⋅ 1.3 5 = 25 − 19.5 5 = 1.1 a = \frac{25 - 15\cdot1.3}{5} = \frac{25-19.5}{5} = 1.1 a = 5 25 − 15 ⋅ 1.3 = 5
Fitted line:
y = 1.1 + 1.3 x y = 1.1 + 1.3x y = 1.1 + 1.3 x
Question 5 – Fitting of Second Degree Parabola
Fit a parabola y = a + b x + c x 2 y = a + bx + cx^2 y = a + b x + c x 2 to the data:
Solution
Compute the required sums (with n = 5 n=5 n = 5 ):
∑ x = 10 , ∑ y = 59 , ∑ x 2 = 30 , ∑ x 3 = 100 , ∑ x 4 = 354 , ∑ x y = 170 , ∑ x 2 y = 626 \sum x=10,\ \sum y=59,\ \sum x^2=30,\ \sum x^3=100,\ \sum x^4=354,
\sum xy=170,\ \sum x^2y=626 ∑ x = 10 , ∑ y = 59 , ∑ x
Normal equations:
59 = 5 a + 10 b + 30 c 170 = 10 a + 30 b + 100 c 626 = 30 a + 100 b + 354 c \begin{aligned}
59 &= 5a + 10b + 30c \\
170 &= 10a + 30b + 100c \\
626 &= 30a + 100b + 354c
\end{aligned} 59 170 626 =
Solving the system yields:
a = 1.0 , b = 2.1 , c = 1.1 a = 1.0,\quad b = 2.1,\quad c = 1.1 a = 1.0 , b = 2.1 , c = 1.1
(approximately; exact fractions may be used)
Fitted parabola:
y = 1 + 2.1 x + 1.1 x 2 y = 1 + 2.1x + 1.1x^2 y = 1 + 2.1 x + 1.1 x 2
Question 6 – Correlation Coefficient
Calculate Pearson’s correlation coefficient for the following data:
x x x 10 20 30 40 50 y y y 12 24 36 40 50
Solution
∑ x = 150 , ∑ y = 162 , n = 5 ∑ x 2 = 5500 , ∑ y 2 = 6296 , ∑ x y = 5800 \begin{align*}
\sum x &= 150,\quad \sum y = 162,\quad n=5\\
\sum x^2 &= 5500,\quad \sum y^2 = 6296,\quad \sum xy = 5800
\end{align*} ∑ x ∑ x 2
r = n ∑ x y − ( ∑ x ) ( ∑ y ) [ n ∑ x 2 − ( ∑ x ) 2 ] [ n ∑ y 2 − ( ∑ y ) 2 ] = 5 ⋅ 5800 − 150 ⋅ 162 [ 5 ⋅ 5500 − 22500 ] [ 5 ⋅ 6296 − 26244 ] = 29000 − 24300 5000 ⋅ 5226 = 4700 26130000 ≈ 0.92 r = \frac{n\sum xy - (\sum x)(\sum y)}{\sqrt{[n\sum x^2-(\sum x)^2][n\sum y^2-(\sum y)^2]}}
= \frac{5\cdot5800 - 150\cdot162}{\sqrt{[5\cdot5500-22500][5\cdot6296-26244]}}
= \frac{29000-24300}{\sqrt{5000\cdot5226}} = \frac{4700}{\sqrt{26130000}} \approx 0.92 r =
Strong positive correlation.
Question 7 – Rank Correlation
The ranks of 8 students in Mathematics and Physics are:
Maths 1 2 3 4 5 6 7 8 Physics 2 4 1 5 3 8 7 6
Find Spearman’s rank correlation coefficient.
Solution
Differences d d d : − 1 , − 2 , 2 , − 1 , 2 , − 2 , 0 , 2 -1,-2,2,-1,2,-2,0,2 − 1 , − 2 , 2 , − 1 , 2 , − 2 , 0 , 2
∑ d 2 = 1 + 4 + 4 + 1 + 4 + 4 + 0 + 4 = 22 \sum d^2 = 1+4+4+1+4+4+0+4 = 22 ∑ d 2 = 1 + 4 + 4 + 1 + 4 +
ρ = 1 − 6 ∑ d 2 n ( n 2 − 1 ) = 1 − 6 ⋅ 22 8 ( 64 − 1 ) = 1 − 132 504 = 1 − 0.262 = 0.738 \rho = 1 - \frac{6\sum d^2}{n(n^2-1)} = 1 - \frac{6\cdot22}{8(64-1)} = 1 - \frac{132}{504} = 1 - 0.262 = 0.738 ρ = 1 − n ( n 2 −
Question 8 – Regression Lines
For two variables x x x and y y y , the following are given:
x ˉ = 40 \bar{x}=40 x ˉ = 40 , y ˉ = 50 \bar{y}=50 y , , , .
Find the two regression lines and estimate y y y when x = 45 x=45 x = 45 .
Solution
Regression coefficient of y y y on x x x :
b y x = r σ y σ x = 0.8 ⋅ 15 10 = 1.2 b_{yx} = r\frac{\sigma_y}{\sigma_x} = 0.8\cdot\frac{15}{10} = 1.2 b y x = r σ x
Regression coefficient of x x x on y y y :
b x y = r σ x σ y = 0.8 ⋅ 10 15 = 8 15 ≈ 0.533 b_{xy} = r\frac{\sigma_x}{\sigma_y} = 0.8\cdot\frac{10}{15} = \frac{8}{15}\approx 0.533 b x y = r σ y
Regression line of y y y on x x x
y − 50 = 1.2 ( x − 40 ) ⟹ y = 1.2 x + 2 y - 50 = 1.2(x - 40) \implies y = 1.2x + 2 y − 50 = 1.2 ( x − 40 ) ⟹ y = 1.2 x + 2
Regression line of x x x on y y y
x − 40 = 0.533 ( y − 50 ) x - 40 = 0.533(y - 50) x − 40 = 0.533 ( y − 50 )
When x = 45 x=45 x = 45 :
y = 1.2 ⋅ 45 + 2 = 54 + 2 = 56 y = 1.2\cdot45 + 2 = 54 + 2 = 56 y = 1.2 ⋅ 45 + 2 = 54 + 2 = 56
Practice Tips
Always arrange data in ascending order before finding median.
For least squares, form the normal equations carefully and solve the linear system.
Check that ∣ r ∣ ≤ 1 |r| \le 1 ∣ r ∣ ≤ 1 and b y x b x y = r 2 b_{yx}b_{xy}=r^2 b y x b x .