Assignment 6

Use the Global Social Indicators data.

1. Compute a least squares regression model (sm.OLS to explain one of the numeric variables in the data. You'll need to write the Python code to read in the data and combine the parts into a new DataFrame, to identify the Y and X variables and to produce the model. Explain the results in one paragraph. What additional questions would you want to ask?

2. Compute a binary variable for one of the measures of development. This will be your dependent variable, Y. Compute a logistic regression model (sm.Logit or sm.GLM). Explain the results in one paragraph. What additional questions would you want to ask?