Due 8am EST Wednesday Oct 3, 2018

Econ B2000, MA Econometrics

Kevin R Foster, CCNY

Each student should submit a separate assignment, even if it is an identical computer file to the rest of your study group. When submitting assignments, please include your name and the assignment number as part of the filename. Please write the names of your study group members at the beginning of your homework.

  1. What are the names of the people in your study group?
  2. Using the PUMS data, consider some statistical tests:
  1. What is the average age of people in Brooklyn? In Queens? Is there a statisitcally signficant difference?
  2. Create confidence intervals for each, as well as the difference. Explain.
  3. Did you snip off the top-coded people? Re-do the test without those people. How does the p-value change?
  4. Now supposed you normalized all of the ages to the [0,1] interval, as with this function,

Is there a statistically significant difference? How does the p-value change? Explain how you dealt with the top-coding.

  1. Based on your knowledge of those boroughs, can you explain the results? Can you break out the differences if you used age ranges? What are the fractions of children in each borough? Older people? Are these statistically significant?
  2. Going more granular, can you look at all of these differences by neighborhood within each borough? At what point does this get into p-hacking?
  3. What would be a good way to show all of these differences graphically?
  1. I used the PUMS data to look at wages and commute type, getting this table for people in the City: (you can answer parts a-c without R)
w bus car subway
Wage below $25,000 1501 2394 3704
Wage above $75,000 385 1825 2194
  1. Given that someone takes the bus to work, what is the probability that they’re making wages above $75,000?
  2. Given that someone takes the subway to work, what is the probability that they make wages below $25,000?
  3. Given that someone has wage above $75,000, what is the probability that they drive a car to work?
  4. Using the PUMS data, can you narrow this further - what are the socioeconomics of bus/subway in the various boroughs? What is the wealthiest PUMA area and how do the people living there tend to commute? Can you find interesting patterns?
  5. Try the machine learning K-nearest-neighbor algorithm on the PUMS data to get another view of the commuting pattern from above. How good of a classification of commute type can you get? Explain what you believe are important variables in this classification. You might explore the “caret” function.