Exercises Pearsons R and Linear Regression 2023 1 1
Exercises Pearsons R and Linear Regression 2023 1 1
1. In recent years, there had been several studies on the effects of computers on people
who spent substantial amount of time staring at computer monitors. Image quality of
monitors, among other things, produces eye strain and affects work efficiency.
A B C D E F G H
❑ ❑ ❑
n( ∑ ❑ xy )−( ∑ ❑ x )( ∑ ❑ y )
r = ❑ ❑ ❑
√¿ ¿ ¿
2758.54−2773.02
= √2081.72−(2043.04 )¿ [ 3771.46−3763.82 ] ¿
−13.48 −13.48 −13.48
= √[38.68¿] [ 7.64 ] ¿ = √295.42 = 17.19 =-0.78
The r = - 0.78 indicates that there is a very high negative correlation between image
quality and average time in seconds.
We can say that there exists a 78% variation between the relationship of the image
quality and average time in seconds spent staring at computer monitors. As the image
quality increases the time in seconds decreases.
2. An insurance company wished to examine the relationship between income and amount
of life insurance held by heads of families. The company drew as simple random sample
of 10 heads of families and obtained the following results as shown in the following
table:
A 20 10
B 30 12
C 50 15
D 100 23
E 200 35
F 40 12
G 80 13
H 150 28
I 300 45
J 70 18
a. Determine the linear regression equation using the method of least squares with the
monthly income as the independent variable.
b. Estimate the amount of life insurance obtained by a family head from the same
population whose monthly income is P 20, 000.
Amount of Life Monthly Income
Insurance (in thousand pesos) xy x2 y2
Family (in thousand pesos) y x
A 20 10 200.00 100.00 400.00
B 30 12 360.00 144.00 900.00
C 50 15 750.00 225.00 2,500.00
D 100 23 2,300.00 529.00 10,000.00
E 200 35 7,000.00 1,225.00 40,000.00
F 40 12 480.00 144.00 1,600.00
G 80 13 1,040.00 169.00 6,400.00
H 150 28 4,200.00 784.00 22,500.00
I 300 45 13,500.00 2,025.00 90,000.00
J 70 18 1,260.00 324.00 4,900.00
n=10 1040 211 31,090.00 5,669.00 179,200.00
Y=104 x = 21.1
❑
nΣxy−∑ ❑ x Σ y
❑
b= ❑
n( ∑ ❑ x 2 )−¿ ¿
❑
(10)(31090)−(211)(1040) 91460
b=
10 (5669)−211²
= 12169
= 7.52
❑ ❑ ❑
( Σ y)( ∑ ❑ x )−( ∑ ❑ x )( ∑ ❑ xy )
2
a= ❑
❑
❑ ❑
n( ∑ ❑ x )−¿ ¿
2
(1040)(5669)−(211)(31090) −664230
a= 10(5669)−211² = 12169 = -54.58
a = y – bx
= 104 – (7.52)(21.1) = -54.58
Hence, the least square regression line is
Y = -54.58 + 7.52x
Y = a + bx
= -54.58 + (7.52)(20)
= 95.82 or 95,820
Therefore, if a family head drawn from the same population had a monthly income of P20,000,
its estimated amount of life insurance shall be ₱95,820.00.
3. A financial analyst believes that the interest rate on bonds is inversely related to the
interest rate for loans. Hence, bonds perform well when lending rates are down and
vice versa. Observations on 5 transactions taken at random showed the following
results:
10 4
5 11
7 8
3 12
6 10
2 5 11 55 25 121
3 7 8 56 49 64
4 3 12 36 9 144
5 6 10 60 36 100
x=6.2 y=9
❑
nΣxy−∑ ❑ x Σ y
❑
b= ❑
n( ∑ ❑ x 2 )−¿ ¿
❑
(5)(247)−(31)( 45)
b=
5(219)−31²
= −160
134
= -1.19
❑ ❑ ❑
( Σ y)( ∑ ❑ x )−( ∑ ❑ x )( ∑ ❑ xy )
2
a= ❑
❑
❑ ❑
n( ∑ ❑ x 2)−¿ ¿
❑
( 45)(219)−(31)(247) −4326
a= 5(219)−31² = 134 = -32.28
a = y – bx
= 9 – (-1.19)(6.2) = 16.38
Hence, the least square regression line is
Y = 16.38 + -1.19x
Y = a + bx
= 16.38 + (-1.19)(12)
= 2.1
❑ ❑ ❑
n( ∑ ❑ xy )−( ∑ ❑ x )( ∑ ❑ y )
r = ❑ ❑ ❑
√¿ ¿ ¿
The r = - 0.98 indicates that there is a very high negative correlation between the
interest rates on loans and interest rates on bonds.