Home / Statistics Topics

Module 6 · Regression & Correlation · Topic 3

Pearson's r

Computation Insight. The formula standardizes each variable by subtracting its mean and dividing by its standard deviation, then averages the products. Positive products (both above or both below mean) increase r; mixed products decrease it.

Open the interactive lessonAll topics

Key formulas

Pearson's Correlation Coefficient

r = Σ[(xᵢ − x̄)(yᵢ − ȳ)] / [(n − 1) × sₓ × sᵧ]

From the Regression & Correlation formula sheet

  • Least-Squares Regression Line: yhat = a + bx — Line that minimizes the sum of squared residuals.
  • Pearson Correlation: r = sum((x_i-xbar)(y_i-ybar)) / sqrt(sum((x_i-xbar)^2)sum((y_i-ybar)^2)) — Measures direction and strength of a linear association.

See the full formula reference

Worked example

Worked Example

For five data points with x = {1,2,3,4,5} and y = {2,4,5,4,5}: x̄ = 3, ȳ = 4, sₓ = 1.58, sᵧ = 1.22. Computing the sum of standardized products and dividing by (n−1) gives r ≈ 0.77, a moderately strong positive correlation.

When to use it

Outlier Sensitivity

Pearson’s r is sensitive to outliers. A single extreme point can drastically inflate or deflate the correlation. Always check the scatter plot.

Related glossary terms

  • Residual: The observed value minus the predicted value. Example: If y = 12 and yhat = 9, the residual is 3.

Browse the full glossary

Go interactive

Work this topic in StatRise

Start with the free descriptive-statistics module and daily practice; this module's tracked lesson unlocks with Premium.

Regression & Correlation lesson (Premium)Regression calculatorsRegression Lab simulationPractice questions

Free statistics guides

Related in-depth guides

  • How to Choose the Right Statistical Test8 min read
  • Hypothesis Testing Explained: The Five Steps, Worked Through8 min read

Keep reading

More topics

Previous: CorrelationNext: Simple Linear RegressionAll statistics topics
CalculatorsLessonsPracticeGuidesTopicsPremiumRestore purchasePrivacyTerms

© 2026 StatRise. Statistics calculators, lessons, practice, and simulations — progress stays in your browser, no account required.

More study tools: CalcRef · Discretica · ScoreMint · PhysRef