1 / 14

Scatterplots

Scatterplots. Display two variables Independent variable - X Does not depend on any other variable in the model Dependent variable - Y Depends upon one or more independent variables in the model. Model. Causes. Y. X. Independent. Dependent. Look at the graph. Where is the X axis?

Download Presentation

Scatterplots

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. Scatterplots • Display two variables • Independent variable - X • Does not depend on any other variable in the model • Dependent variable - Y • Depends upon one or more independent variables in the model

  2. Model Causes Y X Independent Dependent

  3. Look at the graph • Where is the X axis? • Where is the Y axis? • What are the units of the X axis? • What are the units of the Y axis? • How is one case represented?

  4. The X axis X-axis

  5. The Y axis Y-axis X-axis

  6. The Units • What are the units of the variables of interest? • Are the variables measurement variables? • Are the variables ordinal variables? • Are the variables categorical variables? • Cannot graph unless change/create units • For example % Republican for party choice

  7. Plot a case • What is the Y value for the case? • What is the X value for the case? • Example: • X = 1964 • Y = 603 total catch • Or • Y1 = 603 total catch • Y2 = 142 Canadian catch

  8. Plot the Case (x,y) or (1964,603) 603 1964

  9. Example • Cities • X - % unemployment • Y - crime rate • Persons • X - amount of prejudice • Y - amount of discrimination

  10. What about time? • Time, though itself is not the direct cause of any outcome, all outcomes are a function of time • Thus, time may be thought of as an • Independent variable? • Dependent variable?

  11. Time is an IV • Time is an independent variable, since outcomes are dependent upon time • If time is an independent variable, how would we graph an outcome over time? • Time as the X axis? • Time as the Y axis?

  12. Time on the X axis • Any variable that is a function of time can be placed on the Y axis • Lets look at the codfish landings off Newfoundland from 1960 to 1994 • file newfcod.dta • total, Canadian, Allowed • file whales.dta • Blue, Fin, Sei

  13. Plot on time or obs. num. • Look at example of each for whale data. • Are years equally spaced? • What if they are not? • What conclusions do you come to?

  14. Scatterplots (not time) • Same principles, plot the X and Y values for each case using the units of the original data. • Examples • Voting on environmental issues by House and Senate in 50 states (file: envote.dta): describe • Voting by region: describe

More Related