Political Correlation II
In this problem, we're going to investigate the following question: How is the statewide proportion of Democratic votes for the US House related to the proportion of Democratic seats for that state?
In 2016, for example, $46.6%$ of the state votes for the US Congress went to Democrats statewide, but they received only $23.1%$ of the seats. I suppose that's a result of gerrymandering. How did things look nationwide in that election?
To address the question, open up this COLAB notebook. After perusing the notebook, generate a random sample from the data set with 8 rows. Then answer the following questions for your sample:
- What states did you investigate?
- What is the correlation between the two proportions for your sample?
- What is an equation of the regression line for your proportions?
- What proportion of seats does your regression predict for a statewide Democratic vote proportion of $40\%$?