Download - Regresión lineal simple mínimos cuadrados
![Page 1: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/1.jpg)
Regresión lineal simplemínimos cuadrados
Dr. Gerardo Gabriel Alfaro CalderónDr. Fernando Avila Carreón
![Page 2: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/2.jpg)
Modelo de regresión
• Predicción• Control• Optimización
(1)
![Page 3: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/3.jpg)
(2)
![Page 4: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/4.jpg)
Desviaciones de los datos respecto del modelo estimado de regresión lineal
![Page 5: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/5.jpg)
(3)
(4)
![Page 6: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/6.jpg)
(5)
(6)
![Page 7: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/7.jpg)
Ecuaciones normales de mínimos cuadrados
(7)
(8)
![Page 8: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/8.jpg)
Donde: y
(9)
(10)
![Page 9: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/9.jpg)
El modelo de ajuste con regresión lineal simple es:
(11)
En la expresión (10) podemos asignar una notación conveniente,tanto para el numerador como para el denominador:
(12)
![Page 10: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/10.jpg)
(13)
![Page 11: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/11.jpg)
Ejercicio de aplicación:
Calificación obtenida
Niv
el d
e in
gres
os
![Page 12: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/12.jpg)
De manera que:
![Page 13: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/13.jpg)
Por lo que las estimaciones de la pendiente y el intercepto mediante mínimos cuadrados son:
Por lo que el modelo de regresión lineal es.
![Page 14: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/14.jpg)
Gráfica de dispersión de puntos y línea estimada por mínimos cuadrados
Calificación obtenida
Niv
el d
e in
gres
os
![Page 15: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/15.jpg)
El error de estimación de un modelo de regresión.
La varianza del término de error:
El estimador insesgado:
![Page 16: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/16.jpg)
Error estándar de la pendiente:
Error estándar del intercepto.
![Page 17: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/17.jpg)
Prueba de hipótesis en la regresión lineal simple:
Sirve para evaluar la suficiencia del modelo de regresión lineal simple.
Primero si deseamos probar la hipótesis de que la pendiente es igual a una constante, las hipótesis apropiadas son:
![Page 18: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/18.jpg)
Regresión lineal múltiple
(20)
![Page 19: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/19.jpg)
(21)
(22)
Y haciendo:
Podemos obtener:
(23)
![Page 20: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/20.jpg)
Donde:
(24)
(25)
![Page 21: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/21.jpg)
![Page 22: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/22.jpg)
Para
(26)
(27)
![Page 23: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/23.jpg)
(28)
(29)
![Page 24: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/24.jpg)
(29)
![Page 25: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/25.jpg)
(29)
Donde:
(30)
![Page 26: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/26.jpg)
(31)
(32)
(33)
(34)
![Page 27: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/27.jpg)
(35)
![Page 28: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/28.jpg)
(36)
(37)
(38)
![Page 29: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/29.jpg)
La cantidad de tiempo requerido por un vendedor de ruta, para abastecer una máquina vendedora de refrescos con el número de latas que incluye la misma, y la distancia del vehículo de servicio a la ubicación de la máquina. Este modelo se empleó para el diseño de la ruta, el programa y el despacho de vehículos. La siguiente tabla presenta 25 observaciones respecto al tiempo de entrega tomadas de un estudio. Ajustaremos el modelo de regresión lineal múltiple:
![Page 30: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/30.jpg)
N de observaciones
y x1 x2
1 9.95 2 50
2 24.45 8 110
3 31.75 11 120
4 35 10 550
5 25.02 8 295
6 16.86 4 200
7 14.38 2 375
8 9.6 2 52
9 24.35 9 100
10 27.5 8 300
11 17.08 4 412
12 37 11 400
13 41.95 12 500
![Page 31: Regresión lineal simple mínimos cuadrados](https://reader036.vdocuments.pub/reader036/viewer/2022081505/568162b1550346895dd33879/html5/thumbnails/31.jpg)
N de observaciones
y x1 x2
14 11.86 2 360
15 21.85 4 205
16 17.89 4 400
17 69 20 600
18 10.3 1 585
19 34.93 10 540
20 46.39 15 250
21 44.38 15 290
22 54.12 16 510
23 56.83 17 590
24 22.13 6 100
25 21.15 5 400