Professional Documents
Culture Documents
STA301 Assignment 1 Solution 2022
STA301 Assignment 1 Solution 2022
From the given data, calculate regression equation X on Y taking deviation from mean.
X 2 5 3 7 6
Y 8 3 1 4 2
Solution
𝑋̂ = 𝑎 + 𝑏𝑌
(𝑋 − 𝑋̅ = 𝑏𝑥𝑦 (𝑌 − 𝑌̅)
𝑋̂ = 𝑎 + 𝑏𝑌 ∑(𝑥𝑦)
∑(𝑋 − 𝑋̅)(𝑌 − 𝑌̅)
𝑏𝑥𝑦 = ∑(𝑌 = 𝑌̅)2 ∑ 𝑦2
=
∑(𝑥𝑦)
(𝑋 − 𝑋̅) = (𝑌 − 𝑌̅)
∑𝑦 2
X Y 𝒙 = (𝑿 − 𝒚 = (𝒀 − xy y2
𝑿̅) 𝒀̅)
2 8 -2.6 4.4 -11.44 19.36
5 3 0.4 -0.6 -0.24 0.36
3 1 -1.6 -2.6 4.16 6.76
7 4 2.4 0.4 0.96 0.16
6 2 1.4 -1.6 -2.24 2.56
23 18 0 0 -8.8 29.2
∑𝑋 23 ∑𝑌 18
𝑋̅ = = = 4.6 𝑌̅ = = = 3.6
𝑛 5 𝑛 5
∑(𝑥𝑦)
(𝑋 − 𝑋̅) = (𝑌 − 𝑌̅)
∑𝑦 2
−8.8
(𝑋 − 4.6) = (𝑌 − 3.6)
29.2
𝑿 = 𝟓. 𝟔𝟖𝟓𝟎𝟒 − 𝟎. 𝟑𝟎𝟏𝟒𝒀
Question 2:
From the given data, find standard error of estimate for regression equation Y on X.
X 5 7 2 9 3 8
Y 4 6 3 1 5 2
Solution
𝑆𝑦.𝑥√∑ 𝑌2 − 𝑎 ∑ 𝑌 − 𝑏 ∑ 𝑋𝑌
𝑛−2
X Y X2 Y2 XY
5 4 25 16 20
7 6 49 36 42
2 3 4 9 6
9 1 81 1 9
3 5 9 25 15
8 2 64 4 16
34 21 232 91 108
∑ 𝑌 = 𝑛𝑎 + 𝑏 ∑ 𝑋 ∑ 𝑋𝑌 = 𝑎 ∑ 𝑋 − 𝑏 ∑ 𝑋2
𝑭𝒐𝒓𝒎 𝑬𝒒𝒖𝒂𝒕𝒊𝒐𝒏 𝑨
21 = 6𝑎 + 34𝑏
6𝑎 + 34𝑏 = 21
6𝑎 = 21 − 34𝑏
21 − 34𝑏
𝑎=
6
21 − 34(−0.2797)
𝑎=
6
21 + 9.5098
𝑎=
6
30.5098
𝑎=
6
𝑎 = 5.085
𝑆𝑦.𝑥√∑ 𝑌2 − 𝑎 ∑ 𝑌 − 𝑏 ∑ 𝑋𝑌
𝑛−2
𝑆𝑦.𝑥√91 − (5.085)(21) − (−0.2797)(108)
6−2
𝑆𝑦.𝑥√91 − 106.785 +
30.3076
4
𝑆𝑦.𝑥√121.2076 −
106.785 4
𝑆𝑦.𝑥√14.4226
4
𝑆𝑦.𝑥√3.6057
𝑺𝒚.𝒙 = 𝟏. 𝟖𝟗𝟖𝟗