1 / 38

Introduction to Statistics: Political Science (Class 5)

Introduction to Statistics: Political Science (Class 5). Non-Linear Relationships. Thus far. Focus on examining and controlling for linear relationships Each one unit increase in an IV is associated with the same expected change in the DV

azure
Download Presentation

Introduction to Statistics: Political Science (Class 5)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Statistics: Political Science (Class 5) Non-Linear Relationships

  2. Thus far • Focus on examining and controlling for linear relationships • Each one unit increase in an IV is associated with the same expected change in the DV • Ordinary-least-squares regression can only estimate linear relationships • But, we can “trick” regression into estimating non-linear relationships buy transforming our independent (and/or dependent) variables

  3. When to transform an IV • Theoretical expectation • Look at the data (sometimes tricky in multivariate analysis or when you have thousands of cases) • Today: three types of transformations • Logarithm • Squared terms • Converting to indicator variables

  4. Logarithm • The power to which a base must be raised to produce a given value • We’ll focus on natural logarithms where ln(x) is the power to which e (2.718281) must be raised to get x • ln(4) = 1.386 because e1.386 = 4

  5. 1  5 in original measure = 1.609 change in logged value 5 10 in original measure = .693 change in logged value 10  15 in original measure = .405 change in logged value 15  20 in original measure = .288 change in logged value So the effect of a change in a 1 unit change x depends on whether the change is from 1 to 2 or 2 to 3 Υ = β0 + β1ln(x) + u

  6. When to log an IV • “Diminishing returns” as X gets large • Data is skewed – e.g., income

  7. Income and home value • $60,000/year  $200,000 home • $120,000/year  $400,000 home • Bill Gates makes about $175 million/year • $175,000,000 = 2917 x $60,000 • Should we expect him to have a 2917 x $200,000 ($583,400,000) home?

  8. TVs and Infant Mortality • TVs as proxy for resources or wealth • Biggest differences at the low end? • E.g., “there are a couple of TVs in town” and “some people have TVs in their private homes”

  9. 0.6 TVs  predicted infant mortality rate of -19.054

  10. R-squared = 0.566 R-squared = 0.748

  11. Getting Predicted Values

  12. Quadratic (squared) models • Curved like logarithm • Key difference: quadratics allow for “U-shaped” relationship • Enter original variable and squared term • Allows for a direct test of whether allowing the line to curve significantly improves the predictive power of the model

  13. Age and Political Ideology What would we conclude from this analysis?

  14. Age and Political Ideology

  15. Age and Political Ideology • Note: We are using two variables to measure the relationship between age and ideology. • Interpretation: • statistically significant relationship between age and ideology (can confirm with an F-test) • squared term significantly contributes to the predictive power of the model.

  16. If you add a linear and squared term (e.g., age and age2) to a model and neither is independently statistically significant • This does not necessarily mean that age is not significantly related to the outcome Why? • What we want to know is whether age and age2 jointly improve the predictive power of the model. How can we test this?

  17. Formula • q = # of variables being tested • n = number of cases • k = number of IVs in unrestricted Check whether value is above critical value in the F-distribution [depends on degrees of freedom: Numerator = number of IVs being tested; Denominator = N-(number of IVs)-1 ]

  18. Don’t worry about the F-test formula • The point is: • F-tests are a way to test whether adding a set of variables reduces the sum of squared residuals enough to justify throwing these new variables into the model • Depends on: • How much sum of squared residuals is reduced • How many variables we’re adding • How many cases we have to work with • More “acceptable” to add variables if you have a lot of cases • Intuition: explaining 10 cases with 10 variables v. explaining 1000 cases with 10 variables?

  19. Squared term or logarithm? TVs and Infant Mortality

  20. Which is “better”? • Two basic ways to decide: • Theory • Which yields a better fit?

  21. Run two models and compare R-squared… or possibly… What might we conclude from these model estimates? Probably should also do an F-test of joint significance of TVs per capita and TVs per capita-squared. Why? That F-test returned a significance level of 0.335. So we can conclude that… Ultimately you’re best off relying on theory about the shape of the relationship

  22. Ordered IVs  Indicators • Sometimes we have reason to expect the relationship between an IV and outcome to be more complex • Can address this using more polynomials (e.g., variable3, variable4, etc) • We won’t go there… instead… • Example: Party identification and evaluations of candidates and issues

  23. Standard “branching” PID Items • Generally speaking, do you usually think of yourself as a Republican, a Democrat, an Independent, or something else? • If Republican or Democrat ask: Would you call yourself a strong (Republican/Democrat) or a not very strong (Republican/Democrat)? • If Independent or something else ask: Do you think of yourself as closer to the Republican or Democratic party?

  24. Party Identification Measure People who say Democrat or Republican in response to first question Question: Is the change from -2 to -1 (or 1 to 2) the same as the change from 0 to 1 or 2 to 3?

  25. Create Indicators • Party Identification (-3 to 3) • Seven Variables: • Strong Republican (1=yes) • Weak Republican (1=yes) • Lean Republican (1=yes) • Pure Independent (1=yes) • Lean Democrat (1=yes) • Weak Democrat (1=yes) • Strong Democrat (1=yes)

  26. Predict Obama Favorability (1-4) Excluded category: Pure Independents

  27. Obama Favorability

  28. Predict Obama Favorability (1-4) New excluded category: Leaning Republicans

  29. DV: Obama Favorability Predicted value for Pure Independent Male, age 20? Remember!: Always interpret these coefficients as the estimated relationships holding other variables in the model constant (or controlling for the other variables)

  30. Notes and Next Time • Homework due next Thursday (11/18) • Next homework handed out next Tuesday • Not due until Tuesday after Fall Break • Next time: • Dealing with situations where you expect the relationship between an IV and a DV to depend on the value of another IV

More Related