Análisis de Regresión y Correlación
Análisis de Regresión y Correlación
Análisis de Regresión y Correlación
DIAGRAMA DE DISPERSIÓN
80
70
60
50
40 DIAGRAMA DE
DISPERSIÓN
30
20
10
0
5 9 10 12 15 19 24 28 30 31
x y x.y X2 Y2
10 21 210 100 441
28 65 1820 784 4225
12 19 228 144 361
31 72 2232 961 5184
30 75 2250 900 5625
19 39 741 361 1521
24 67 1608 576 4489
5 11 55 25 121
9 12 108 81 144
15 24 360 225 576
183 405 9612 4157 22687
𝑛 ∑ 𝑥𝑦−∑ 𝑥 ∑ 𝑦 10(9612)−(183)(405)
b= 2 = 10(4157)−(183)2
= 2.723
𝑛 ∑ 𝑥 2 −∑ 𝑥
183
𝑥̅ = 10
= 18.3
405
𝑦̅ = 10
= 40.5
𝑦̅ = a + b𝑥̅
40.5 = a + (2.723).(18.3) ⇒ a = -9.3
y =-9.3 +2.7x
𝑐𝑜𝑣(𝑥,𝑦)
r= 𝑆𝑥.𝑆𝑦
∑ 𝑥.𝑦 9612
Cov(x,y) = - 𝑥̅ . 𝑦̅ = − (18.3)(40.5) = 220.05
𝑛 10
∑ 𝑥1 4157
(Sx)2 = 𝑛
- 𝑥̅ 2 = 10
– (18.3)2 = 80.8 ⇒Sx = 8.9
∑ 𝑦2 22687
(Sy)2 = 𝑛
- 𝑦̅ 2 = 10
– (40.5)2 = 628.4⇒Sy = 25
220.05
r = (8.9).(25) = 0.98
∑ 𝑦 2 +𝑎 ∑ 𝑦−𝑏 ∑ 𝑥𝑦
Se = √ = 7.91
𝑛−2
2. Los siguientes datos son la inversión neta (y) y la tasa de interés (x).
x 2,5 3 4 5 5,5 6 7
y 12,5 10 7 4,5 4 3 3,5
DIAGRAMA DE DISPERSIÓN
14
12
10
8
DIAGRAMA DE
6 DISPERSIÓN
4
0
12.5 10 7 4.5 4 3 3.5
𝑛 ∑ 𝑥𝑦−∑ 𝑥 ∑ 𝑦 7(3.1558)−(4.5397)(5.2185)
b= 2 = 7(3.1049)−(4.5397)2
= -1.421
𝑛 ∑ 𝑥 2 −∑ 𝑥
∑ log 𝑥 ∑ log 𝑦
𝑦̅ = log 𝑎 + b𝑥̅ 𝑥̅ = = 0.648 , 𝑦̅ = = 0.745
𝑛 𝑛
y = 46.496x-1.421
𝑐𝑜𝑣(𝑥,𝑦)
r= 𝑆𝑥.𝑆𝑦
∑ 𝑥.𝑦 3.1558
Cov(x,y) = 𝑛
- 𝑥̅ . 𝑦̅ = 7
− (0.648)(0.745) = -0.031
∑ 𝑥2 3.1049
(Sx)2 = 𝑛
- 𝑥̅ 2 = 7
– (0.648)2 = 0.023 ⇒Sx = 0.151
∑ 𝑦2 4.2302
(Sy)2 = 𝑛
- 𝑦̅ 2 = 7
– (0.745)2 = 0.049 ⇒Sy = 0.221
−0.031
r = (0.151).(0.221) = -0.92
∑ 𝑦 2 +𝑎 ∑ 𝑦−𝑏 ∑ 𝑥𝑦
Se = √ 𝑛−2
=7
x 1 2 3 4 5 6
y 10 40 120 300 800 500
DIAGRANA DE DISPERSIÓN
900
800
700
600
500
DIAGRANA DE
400 DISPERSIÓN
300
200
100
0
1 2 3 4 5 6
x y ln 𝑦 x. ln 𝑦 X2 ln 𝑦 2
1 10 2,30963263 2,30963263 1 5,33440286
2 40 3,70017002 7,40034005 4 13,6912582
3 120 4,80214484 14,4064345 9 23,0605951
4 300 5,72124007 22,8849603 16 32,7325879
5 800 6,70507135 33,5253567 25 44,9579818
6 500 6,23362918 37,4017751 36 38,8581327
21 1770 29,4718881 117,928499 91 158,634959
𝑛 ∑ 𝑥𝑦−∑ 𝑥 ∑ 𝑦 6(117.569)−(29.382)
b= 2 = = 0.84
𝑛 ∑ 𝑥 2 −∑ 𝑥 6(91)−(21)2
ln 𝑦 = log 𝑎 + x. log 𝑏
∑𝑥 ∑ ln 𝑦
𝑥̅ = 𝑛
= 3.5 , 𝑦̅ = 𝑛
= 4.89
y = (7.03).(0.84)x
𝑐𝑜𝑣(𝑥,𝑦)
r= 𝑆𝑥.𝑆𝑦
∑ 𝑥 ln 𝑦 117.569
Cov(x,y) = 𝑛
- 𝑥̅ . 𝑦̅ = 6
− (3.5)(4.89) = 2.479
∑ 𝑥2 91
(Sx)2 = 𝑛
- 𝑥̅ 2 = 6
– (3.5)2 = 2.916 ⇒Sx = 1.707
∑ ln 𝑦 2 158.634
(Sy)2 = 𝑛
- 𝑦̅ 2 = 6
– (4.89)2 = 2.526 ⇒Sy = 1.589
2.479
r = (1.707).(1.589) = 0.91
∑ 𝑦 2 +𝑎 ∑ 𝑦−𝑏 ∑ 𝑥𝑦
Se = √ 𝑛−2
= 8.16
Bibliografía: