Correlation and Regression Analysis
Correlation and Regression Analysis
Correlation and Regression Analysis
Solution:
r= 227) 2][8(400)−(50)2]
√[8(8219)−
( 11456−11350
r=
√[65752−51529][3200−2500]
106
r=
√[14196][700] 106
r=
√9937200 106
r=
3152.3324
106
r=
3152.3324
r = 0.0336
= 𝐫×√𝐧−𝟐
𝐭𝐜𝐨𝐦𝐩𝐮𝐭𝐞𝐝 √𝟏−𝐫𝟐
tcomputed = √1−(0.0336)0.0336×√8−22
= √1−0.00112896
0.0336×√6
0.0336×2.4494
tcomputed =
√0.99887104
tcomputed tcomputed
𝐭𝐜𝐨𝐦𝐩𝐮𝐭𝐞𝐝 = 0.0823
Step 5: Conclusion.
Solution:
r= 112) 2][9(383039)−(1843)2]
√[9(1444)−(
207360−206416
r=
√[12996−12544][3447351−3396649]
944
r=
√[452][50702] 944
r=
√22917304
944 r
=
4787.2021
r = 0.1971
𝐭𝐜𝐨𝐦𝐩𝐮𝐭𝐞𝐝 = 𝐫×√𝟏−𝐫
√𝐧−𝟐
𝟐
tcompute =
d √1−(0.1971)0.1971×√9−
22
= √1−0.03884841
0.1971×√7
tcompute 0.1971×2.6457
d
=
√0.96115159
tcomputed tcomputed
𝐭𝐜𝐨𝐦𝐩𝐮𝐭𝐞𝐝 = 0.5319
Step 4: Decision rule.
Step 5: Conclusion.
Solution:
Step 3: Complete the table and compute for the value of 𝝆 and
t-test.
Pair x y 𝑹𝒙 𝑹𝒚 D 𝑫𝟐
1 9 40 3 1 2 4
2 5 22 6 6 0 0
3 12 30 1 3 2 4
4 8 28 4 4 0 0
5 4 15 7 8 1 1
6 2 20 8 7 1 1
7 10 35 2 2 0 0
8 6 25 5 5 0 0
Total(n=8 Σ𝑫𝟐= 10
)
𝝆= 1- 𝟔𝚺 𝐃𝟐
𝐧(𝐧 𝟐−𝟏)
𝜌 = 1- 8(86(10) 2−1)
𝜌 = 1-
𝜌 = 1- 60
504
ρ = 1- 0.1190
𝝆 = 0.8809
= 𝐫×√𝐧−𝟐
𝐭𝐜𝐨𝐦𝐩𝐮𝐭𝐞𝐝 √𝟏−𝐫𝟐
tcomputed = √1−(0.8809)0.8809×√8−22
= √1−0.77598481
0.809×√6
0.8809×2.4494
tcomputed = √0.22401519
tcomputed tcomputed
𝐭𝐜𝐨𝐦𝐩𝐮𝐭𝐞𝐝 = 4.5587
hypothesis.
Step 5: Conclusion
We can conclude that, at 0.05, significance level, there is a significant
correlation between the number of employees who assemble a
certain product and the number of units produced per hour. 𝜇 ≠0
Solution:
Step 3: Complete the table and compute for the value of 𝝆 and
t-test.
Car x y 𝑹𝒙 𝑹𝒚 D 𝑫𝟐
1 2.5 400 9 1 8 64
2 4 300 6.5 4 2.5 6.25
3 5.5 250 5 6 1 1
4 7 190 3 7 4 16
5 6 280 4 5 1 1
6 10 120 1 9 8 64
7 8 170 2 8 6 36
8 4 320 6.5 3 3.5 12.25
9 3 350 8 2 6 36
Total(n=9) Σ𝑫𝟐= 236.5
𝒎𝟏= 2 (as 4 years repeated 2 times)
𝟏(𝒎𝟏𝟑−𝒎𝟏) 𝟏(𝒎𝟐𝟑−𝒎𝟐)
𝝆 = 1-𝟔[ 𝚺𝐃𝟐+ 𝟏𝟐 + 𝟏𝟐 + …… ]
𝒏(𝒏𝟐−𝟏)
1(23−2)
12
𝜌
= 6[ 236.5 + ]
9(92−1)
6[ 236.5 + 1(8−2) ]
𝜌 = 1- 12
9(81−1)
6[ 236.5 + 1(6) ]
𝜌 = 1- 12
9(80)
𝜌 = 1- 9(80) 6[ 237 ]
𝜌 = 1-7201422
𝜌 = 1- 1.975
𝝆 = 0.975
= 𝐫×√𝐧−𝟐
𝐭𝐜𝐨𝐦𝐩𝐮𝐭𝐞𝐝 √𝟏−𝐫𝟐
tcomputed
= √1−0.9506250.975×√7
tcomputed 0.975×2.6457
=
√0.049375
tcomputed tcomputed
𝐭𝐜𝐨𝐦𝐩𝐮𝐭𝐞𝐝 = 11.6089
hypothesis.
Step 5: Conclusion
We can conclude that, at 0.01, significance level, there is a significant
correlation between the age of a car and its selling price. 𝜇 ≠0
Thank you