Presentation on theme: "The Wealth of Nations Jamie Brabston Matt Caulfield Mark Testa."— Presentation transcript:
The Wealth of Nations Jamie Brabston Matt Caulfield Mark Testa
Overview Introduction Regression of Individual Variables Multicollinearity Multiple Regression Stepwise Regression Final Model
Introduction Collected data for 30 countries 12 variables Life expectancy, median age, population growth, population density, literacy rate, unemployment rate, oil consumption – oil production, cell phone / land line, military expenditures, area, sex ratio, external debt Goal: create a model to predict GDP per capita
Analysis: R 2 : 0.45. P-value: Highly significant. An outlier was identified using a Leverage-residual plot and removed. Residuals vs. Fitted Values plot showed nonlinearity. Tried a Box-Cox transform.
Life Expectancy - Top: Influential data points. - Bottom: Non-influential data points. - Left: Non-outliers. - Right: Outliers. Upshot: Eliminate points in the top right quadrant as influential outliers.
Life Expectancy Box-Cox Transform: y -> (y p - 1)/p Produces linear fit if variables are related by a power law. This plot shows the goodness of the fit as a function of p. In this case, the optimal p is fairly small.
Life Expectancy Linear regression was done on the BC transformed data. Significant nonlinearity remained.
Life Expectancy Conclusions: Clearly, there is a significant positive relationship between per capita GDP and life expectancy. We could not identify the precise nature of the relationship. This prevents extrapolation and prediction.
Median Age Box-Cox transform significantly improved the normality of the residual distribution. The Box-Cox p = 0.15. R 2 is improved to 0.72. Final Model: (GDP 0.15 – 1)/0.15 = -2.1 + 0.17(Med.Age)
Population Growth A Box-Cox transform improved the nonlinearity slightly, and gave a significant p-value. From this, we concluded that population growth has a slight negative relationship with GDP. No detailed predictions are possible because significant nonlinearity remains.
The p-value for the data without outliers is a very insignificant 0.68. A Box-Cox transform was attempted, but the p-value did not get close to significance. Conclusion: Population density and GDP are essentially unrelated.
Analysis of Box-Cox Model Doesn’t pass conditions for regression Data isn’t linear Residuals are not random Q-Q plot isn’t normal
Multicollinearity Multicollinearity occurs when two explanatory variables are linearly related. A stepwise regression will conclude both are significant, even though the model would work just as well with only one. Variance inflation factors between each pair of explanatory variables were found, and none were too high. There is no significant multicollinearity.
Multiple Regression Taking into account all 12 variables at once High R 2 Not accurate In our data: Too many variables Too few observations
Stepwise Regression Stepwise regression model: predicted GDP = -6.499e+01 + 2.296(median age) + 9.385(population growth) + 9.723e-04(external debt) + 1.808e-03(population density) R-squared 80.78% of the variability in GDP per capita is accounted for by the linear association with median age, population growth, external debt, and population density
Removing Outliers One influential outlier Singapore Very high population density Small country with a lot of people financially well to do
Stepwise Model w/o Outlier New model after removing Singapore predicted GDP = -6.277e+01 + 2.257(median age) + 8.885(population growth) + 9.274e-04(external debt) + 2.232e-03(population density) R-squared 83.89% of the variability in GDP per capita is accounted for by the linear association with median age, population growth, external debt, and population density
Box-Cox Model New Model (all data points) ((predicted GDP)^(0.5)-1) / (0.5) = - 1.388e+01 + 5.560e-01(median age) + 1.915(population growth) + 1.665e- 04(external debt) + 2.228e-04(population density) R-squared 82.8% of the variability in GDP per capita is accounted for by the linear association with median age, population growth, external debt, and population density
Box-Cox w/o Outlier New model after removing Singapore ((predicted GDP)^(0.5)-1) / (0.5) = - 1.258e+01 + 5.382e-01(median age) + 1.686(population growth) + 1.682e- 04(external debt) – 3.106e-03(population density) R-squared 87.35% of the variability in GDP per capita is accounted for by the linear association with median age, population growth, external debt, and population density