# 4: Describing Bivariate Numerical Data

Source: https://cca.twango.dev/AP-Statistics/chapter-4

# 4: Describing Bivariate Numerical Data

## Correlation coefficient

The sample correlation $r$ measures the direction and strength of a **linear** relationship, with $-1\le r\le1$.

- $r>0$: positive linear association.
- $r<0$: negative linear association.
- $r=0$: no linear correlation; a nonlinear relationship can still exist.
- $r=1$ or $r=-1$: a perfect positive or negative linear relationship, assuming both variables vary.

Interpretation: “The correlation coefficient of [value] indicates a [weak/moderate/strong], [positive/negative] linear relationship between [variables].”

> [!warning] Review correction
> The original notes called $r=0$ “perfectly random.” Zero correlation does not establish randomness, independence, or absence of all relationships. Correlation does not prove causation.

## Least-squares regression line

$$
\hat y=a+bx.
$$

It minimizes the sum of squared residuals, $\sum(y_i-\hat y_i)^2$.

A **residual** is observed minus predicted: $e=y-\hat y$. A residual plot helps assess whether a linear model is suitable; look for random scatter around zero rather than systematic curvature or changing spread.

Interpret the slope: “For each additional 1 [x-unit], predicted [y-variable] changes by [b y-units], on average.” The intercept predicts $y$ at $x=0$, which may have no practical meaning outside the observed range.

## Unusual and influential points

- **High leverage:** an unusual $x$ value relative to the other $x$ values, whether very large or very small.
- **Regression outlier:** a large residual, not simply a large raw $y$ value.
- **Influential point:** removing it substantially changes the fitted model. High leverage creates potential for influence, but does not guarantee it.

## Coefficient of determination

With a simple least-squares regression and an intercept, $r^2$ is the proportion of variability in $y$ explained by the fitted linear relationship with $x$.

Interpretation: “Approximately [$100r^2$ percent] of the variability in [response] is explained by its linear relationship with [explanatory variable].”

$$
r=\operatorname{sign}(b)\sqrt{r^2}.
$$

A negative slope means negative $r$. Rounded $r^2=0$ does not necessarily mean the exact correlation is zero.

Related: [[S1-Final-Project/s1-report|Hand size and typing]] · [[S2-Final-Project/s2-report|Counting project]]
