Statistics and Statistical Programming (Fall 2020)/pset8

From CommunityData

Programming challenges (Part I)

The first set of programming challenges this week revisit our conversation about race and policing from earlier in the quarter. Essentially, I'd like you to return one of questions I asked you to investigate in Problem Set 3: How does the observed race/ethnicity of a driver relate to whether a traffic stop involves a search? Way back then, I asked you to calculate and compare conditional summary statistics across the different categories of race/ethnicity included in the dataset. Now you have some additional analysis techniques you can bring to the study of this question.

  • You may wish to use tests to revisit contingency tables and test for dependency between race/ethnicity and whether or not a search was conducted.
  • You should also construct a multiple regression model corresponding to the following:


Programming challenges (Part II)

The second set of programming challenges this week pose a more open-ended set of questions about a simulated dataset from an observational study of high school graduates' academic achievement and subsequent income. Here is some information about the "study design" (note: this is not data from an actual study):

Data from twelve cohorts of public high school students was collected from across the Chicago suburbs. Each cohort incorporates a random sample of 142 students from a single suburban school district. For each student, researchers gathered a standardized measure of the students' aggregate GPA as a proxy for their academic achievement. The researchers then matched the students' names against IRS records five years later and collected each student's reported pre-tax earnings for that year.

I have provided you with a version of the dataset from this hypothetical study in which each row corresponds to one student. For each student, the dataset contains the following variables:

  • id: A unique numeric identifier for each student in the study (randomly generated to preserve student anonymity).
  • cohort: An anonymized label of the cohort (school district) the student was drawn from.
  • gpa: Approximate GPA percentile of the student within the entire district. Note that this means all student GPAs within each district were aggregated and converted to an identical scale before percentiles were calculated.
  • income: Pre-tax income (in thousands of US dollars) reported to the U.S. federal government (IRS) by the student five years after graduation.

For the rest of this programming challenge, you should use this dataset to answer the following research questions:

  • How does high school academic achievement relate to earnings?
  • How does this relationship vary by school district?

You may use any analytical procedures you deem appropriate given the structure of the dataset and study design. Some things you may want to keep in mind:

  • ANOVAs, T-tests, and linear regression can help you test different kinds of hypotheses.
  • Adjusting for multiple comparisons is important.