STA101 Assignment 5 Solution
STA101 Assignment 5 Solution
a)
For the last digit ending in 0. X is (0 + 1) = 1
10
8
Demand(Kg.)
0
0 10 20 30 40 50 60 70 80
Price(Tk.)
From the above scatter diagram, it can be seen that there is a strong negative linear
relationship between price and demand since the demand falls quite sharply as the price
increases.
Price(x) Demand(y) xy x2 y2
37 8 296 1369 64
40 9 360 1600 81
48 5 240 2304 25
55 3 165 3025 9
71 1 71 5041 1
∑ 𝑥𝑦 − 𝑛 𝑥̅ 𝑦̅ 1944.5 − 8 × 46.375 × 6
𝒓= = = −𝟎. 𝟗𝟓
√(∑ 𝑥 2 − 𝑛 𝑥̅ 2 )(∑ 𝑦 2 − 𝑛𝑦̅ 2 ) √(18489 − 8 × 46.3752 )(356.5 − 8 × 62 )
Since, r is close to -1.0 there is a strong negative linear relation between price and
demand. That means both increase or decrease in the different direction.
Here, 𝛽̂ value indicates that, for every million increases in revenue there will be
about 0.18 increase in trophies won
Here, 𝛼̂ value indicates that a club with zero revenue will win -43 trophies that is,
since the value is negative, the club will not win any trophies at all.
b) 𝑦̂ = −43.78805 + 0.18013 × 𝑥
c) For, x = €350.60m
𝑦̂ = −43.78805 + 0.18013 × 350.60 = 19.36
For, x = €690.75m
16
Styding Time in hours vs Marks obtained
14
12
10
Marks
8
6
4
2
0
0 2 4 Studying Time
6 in hours 8 10 12
Both from the scatter diagram and the correlation efficient we can say that, there is a
moderate amount of positive linear relationship between studying hours and marks
obtained. That means both increase or decrease in the same direction.
b)
∑𝑥𝑦 − 𝑛𝑥̅ 𝑦̅
𝛽̂ = = 0.569196429
∑𝑥 2 − 𝑛𝑥̅ 2
𝛼̂ = 𝑦̅ − 𝛽̂ 𝑥̅ = 7.767857143
̂ = 𝟕. 𝟕𝟔𝟕𝟖𝟓𝟕𝟏𝟒𝟑 + 𝟎. 𝟓𝟔𝟗𝟏𝟗𝟔𝟒𝟐𝟗 × 𝒙
𝑅𝑒𝑔𝑟𝑒𝑠𝑠𝑖𝑜𝑛 𝐸𝑞𝑢𝑎𝑡𝑖𝑜𝑛: 𝒚
c) For x = 3,
𝑦̂ = 7.767857143 + 0.569196429 × 3 = 𝟗. 𝟒𝟖
For x = 12
𝑦̂ = 7.767857143 + 0.569196429 × 12 = 𝟏𝟒. 𝟔
d) 𝒓𝟐 = 0.482 = 𝟎. 𝟐𝟑
We can say that only 23% of the variation in the marks obtained is explained by taking
into account the average number of studying hours per day.
That means, the fitted model does not provide a good fit to the data and is not capable
of explaining almost all variation in the dependent variable Marks (y).