Regresión lineal múltiple: interpretación de coeficientes, pruebas t, prueba F global y parcial, R² ajustado y variables indicadoras. Lee este contexto antes de contestar; la mayoría de las preguntas se refieren a él.
Una inmobiliaria de Ciudad Altamirano registró 30 viviendas vendidas en el último año:
Los datos son ilustrativos.
| zona | viviendas | precio prom. | m2 prom. | antig prom. |
|---|---|---|---|---|
| centro | 10 | 780.9 | 107.8 | 25.2 |
| colonia | 8 | 889.8 | 120.0 | 13.6 |
| periferia | 12 | 1041.8 | 164.0 | 10.1 |
Se ajustaron los siguientes modelos por mínimos cuadrados. Estas son las salidas de R.
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 280.084 55.884 5.012 2.95e-05
m2 5.015 0.361 13.910 7.87e-14
antig -2.204 1.164 -1.893 0.0691
Residual standard error: 70.32 on 27 degrees of freedom
Multiple R-squared: 0.8866, Adjusted R-squared: 0.8782
F-statistic: 105.5 on 2 and 27 DF, p-value: 1.73e-13
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 210.421 42.664 4.932 4.44e-05
m2 6.462 0.369 17.521 1.49e-15
antig -5.004 1.053 -4.752 7.08e-05
zonacolonia -27.899 27.293 -1.022 0.316
zonaperiferia -177.850 36.643 -4.854 5.44e-05
Residual standard error: 48.97 on 25 degrees of freedom
Multiple R-squared: 0.9491, Adjusted R-squared: 0.9409
F-statistic: 116.5 on 4 and 25 DF, p-value: 8.82e-16
Res.Df RSS Df Sum of Sq F Pr(>F)
1 27 133509
2 25 59950 2 73559 15.338 4.503e-05
2.5 % 97.5 %
(Intercept) 122.552 298.289
m2 5.702 7.221
antig -7.172 -2.835
zonacolonia -84.110 28.313
zonaperiferia -253.317 -102.383
dist es la distancia a la escuela más cercana, en
km.
Estimate Std. Error t value Pr(>|t|)
dist 5.685 7.580 0.750 0.461
Multiple R-squared: 0.9502, Adjusted R-squared: 0.9399
anova(m1, m3): F = 0.5625, Pr(>F) = 0.4606