Block 3: Correlation
Week 6 · Measurement II · Imai §3.6.2 · about 5 min
NoteHow this works
Run each cell with Run Code, look at the output, then answer the question at the end of the block. Every cell is editable; Start Over resets it. Errors are information: read them.
USGini.csv holds the Gini coefficient of income inequality by year. Congress is every 2 years, so the Gini series has twice as many rows. The party medians on dimension 1 (dem.median, rep.median) are prepared for you.
1. Two time series
2. Correlation
Select every second year of the Gini series to match the Congresses.
Conclusion: What does a correlation of about 0.94 between polarization and inequality tell us?
The correlation is about 0.94: both rose over the period. Two trending series correlate strongly almost automatically; correlation alone does not identify the cause.