Introducing Correlation (Pearson's r)
Overview
Andy Baker introduces Pearson’s r as a measure of the strength and direction of a linear association between two continuous variables, emphasizing scatterplots, outliers, linearity, and the rule that correlation does not establish causation. He works through an education-and-income calculation, explains how to interpret r alongside p-values and sample size, and applies the ideas to examples including poverty and graduation rates, work and course loads, coffee shops near campus, and age and transit satisfaction.
Key takeaways
- Pearson’s r measures only linear association between paired continuous observations; a scatterplot should be checked first for curvature, outliers, and whether a linear pattern is plausible.
- The sign of r gives direction, while its absolute value gives strength: for example, r = -0.75 is a strong negative association and r = 0.62 is a strong positive association under the guide’s thresholds.
- Statistical significance and association strength answer different questions: a weak correlation can have a small p-value in a large sample, while a strong correlation can be nonsignificant in a small sample.
- Correlation does not establish causation: the association between student-populated zip codes and coffee shops could reflect campus proximity or commercial density affecting both.
- Small samples require caution even when results are significant; the poverty-graduation relationship across six census tracts may be sensitive to unusual neighborhoods and cannot safely represent all of Indianapolis.
- The education-income worked example contains an arithmetic discrepancy: its stated sums yield r ≈ 0.927, not the reported 0.972.
Chapters
- Pearson’s r describes the strength and direction of a linear association between two continuous interval- or ratio-scale variables; Spearman’s r is mentioned for ordinal data.
- The null hypothesis is population correlation ρ = 0, while the alternative is ρ ≠ 0; neither hypothesis makes an association causal.
- Scatterplots put the explanatory variable on the x-axis and the outcome variable on the y-axis, helping identify direction, linearity, clustering, and outliers.
- Examples include positive study-hours/GPA and student-population/coffee-shop patterns, negative poverty/graduation patterns, and a commute-stress pattern disrupted by an outlier.
- For five education-income pairs, the example calculates means of x̄ = 12 years of education and ȳ = 36 income units.
- The centered products sum to 140, while the squared deviations sum to 40 for education and 570 for income.
- Using r = Σ[(x − x̄)(y − ȳ)] / √[Σ(x − x̄)²Σ(y − ȳ)²], the stated totals give 140/√(40 × 570), approximately 0.927.
- The transcript reports r = 0.972, but that value does not match its displayed sums; the calculation indicates a very strong positive association either way.
- The guide classifies absolute r values of 0.00 to 0.19 as negligible, 0.20 to 0.39 as weak, 0.40 to 0.59 as moderate, 0.60 to 0.79 as strong, and 0.80 to 1.00 as very strong.
- A job-prestige example reports r = 0.485 between years of schooling and occupational prestige, indicating a moderate positive relationship.
- The reported two-tailed significance is p < 0.001, and 1,219 paired responses were used for the correlation.
- The result supports saying that more schooling tends to accompany higher job prestige, not that schooling alone causes prestigious employment.
- In a correlation table, N is the number of paired observations used for a variable pair; the example has 1,219 people who answered both questions.
- A variable’s correlation with itself is 1, so the diagonal entries are not the relationship of interest.
- A large absolute r with a small p indicates a strong statistically significant association, while a small r can still have a small p in a large sample.
- A strong sample correlation may fail to reach p < 0.05 with few cases because statistical power is limited.
- Across six census tracts, higher poverty is strongly associated with lower graduation rates and p < 0.01, but the small sample limits generalization and causal claims.
- Students who work more hours tend to attempt fewer credit hours; family responsibilities or financial need could affect both variables.
- Zip codes with more IU Indy students also have more coffee shops, with r = 0.96 and p < 0.05; nearby campus activity or commercial density could explain both.
- Age and IndyGo satisfaction show little linear association, r = 0.11 and p = 0.412, despite a comparatively large sample.
Transcript excerpt
0:00 In our previous lectures, we've examined one variable at a time. Could have been the means, it could have been standard deviations, we did hypothesis tests for means and proportions, chi square for our categorical variables. Here we move to relationships between two continuous, going back to a term way back when, interval and ratio variables. That's the Pearson's r correlation. Here correlation or correlation measures the strength and direction of the linear association between two variables. For example, kids and shoe size. Taller kids usually have bigger shoes. Shorter kids have smaller shoes. Height and shoe size go together. As one goes up, so
0:50 does the other. So it tells us how those variables covary, whether they tend to move together, move in opposite directions, or show no consistent linear pattern. Once again, we're using interval and ratio data to calculate the Pearson's r correlation. There's another one called the Spearman's r which uses ordinal data. We will not cover that one this semester. Now although it's a little bit of a misnomer to use a correlation, particularly from a sample to make inferences about the population, it's still useful to think about the null and alternative hypothesis if we were to do one using a Pearson's r. In this case,
1:39 the null hypothesis is rho, which looks like p, the Greek letter rho, r h o, equals, once again, the equal sign always in the null hypothesis, zero. In other words, there is no co relation. These two variables have no association. The alternative hypothesis is that no, these particular variables do have an association. In other words, it does not equal zero. In the case of correlation and regression, the next topic, both of them are examples of bivariate distributions in relationships. We have two correlated continuous interval ratio variables. As
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Andy Baker.