1 / 27

Quantitative Methods in Social Sciences (E774): Review Session X

Quantitative Methods in Social Sciences (E774): Review Session X. Dany Jaimovich November 25, 2009. Plan for today. PP4+A3 Correlations: Theory Review Test for correlations STATA OLS: Theory Review OLS vs Correlation Goodness of fit, Tests STATA. Correlations.

belden
Download Presentation

Quantitative Methods in Social Sciences (E774): Review Session X

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. Quantitative Methods inSocial Sciences (E774): Review Session X Dany Jaimovich November 25, 2009

  2. Plan for today • PP4+A3 • Correlations: • Theory Review • Test for correlations • STATA • OLS: • Theory Review • OLS vs Correlation • Goodness of fit, Tests • STATA

  3. Correlations • The correlation coefficient (r) aims to measure how related are two variables. • There are two main types of correlation coefficients: • Pearson’s-r: Calculate the linearity of a point estimation • Spearman rank correlation

  4. Correlations • Pearson’s-r:

  5. Correlations • Pearson’s-r:

  6. Correlations • Example (from class):

  7. Correlations • Example (from class):

  8. Correlations • Test of significance for a Pearson’s-r: • Null Hypothesis: H0 =rxy=ryx= 0 • A two tails t-test is performed: • If tobtained<ttablethen correlation not significant.

  9. Correlations

  10. Correlations • STATA: • ttable • pwcorr income unemployment, sig • pwcorr income unemployment, sig star(.05)

  11. Correlations • Spearman Rank Correlation: • correlation coefficient between ranks • D: Difference of rank between paired observations in two variables

  12. Correlations • Spearman Rank:

  13. Correlations • The test of significance is exactly the same t-test that in the case of Pearson’s-r:

  14. Correlations • Spearman Rank: • spearman MIA MDEV

  15. Regressions WARNING!!!

  16. Regressions • Ordinary Least Squares (OLS): Best Linear Unbiased Estimator (BLUE) • Assume a linear relation between (among) the variables:

  17. Regressions • How do OLS works?: The idea is to minimize the distance of the residuals. Particularly, the measure is the square distance of the residuals, so more weight is given to “distant observations” (danger of outliers):

  18. Regressions • The model to be estimated is: • α=intercept • β=slope • ε=residuals (y-ŷ), E(ε)=0, s(ε)=σ

  19. Regressions • From the minimization, the LS estimator for the parameter measuring the linear relations is: • β= • Looks familiar????

  20. Regressions • From the minimization, the LS estimator for the parameter measuring the linear relations is: • β=

  21. Regressions • Then…. What is the difference of correlation and regression????: • Corr (x,y)=Corr(y,x) • OLS (x,y)≠ OLS (y,x)… define dependent variable!!! • Correlation fits co-movements of the variables, regressions estimate a “directional” linear relation • The big difference comes with multivariate regressions…

  22. Regressions • EXAMPLE:

  23. Regressions • EXAMPLE: • reg unemployment income • reg incomeunemployment • predict yhat • predict e, residuals • rvfplot, yline(0) • rvpplot unemployment, yline(0) • avplot unemployment

  24. Regressions • “Goodness of fit” (R²): How much of the variation in the dependent variable is explained by the “regressors”:

  25. Regressions • Significance test: H0: β =0, Ha: β ≠0 • Test statistic: • The obtained t is compared with two-tails test from t-table

  26. Regressions • EXAMPLE:

  27. Regressions • Multivariate regressions: • The slope in X1 now is “conditional” to the effects of X2 • F-test: joint significance • reg income unemployment gov

More Related