If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

## AP®︎/College Statistics

### Course: AP®︎/College Statistics>Unit 5

Lesson 2: Correlation

# Calculating correlation coefficient r

The most common way to calculate the correlation coefficient (r) is by using technology, but using the formula can help us understand how r measures the direction and strength of the linear association between two quantitative variables.

## Want to join the conversation?

• Why would you not divide by 4 when getting the SD for x? I don't understand how we got three.
• For calculating SD for a sample (not a population), you divide by N-1 instead of N.
• Why is r always between -1 and 1?

I know that this question has been asked before but the answers are either too technical or too naive. Could someone please provide an answer that is mathematical in nature but can be understood by someone who have ok but not strong mathematical foundation.

• Why is r always between -1 and 1?
• How was the formula for correlation derived?
• Is the correlation coefficient also called the Pearson correlation coefficient?
• The Pearson correlation coefficient(also known as the Pearson Product Moment correlation coefficient) is calculated differently then the sample correlation coefficient. In this video, Sal showed the calculation for the sample correlation coefficient.
• Why is the denominator n-1 instead of n?
Thanks.
• When instructor calculated standard deviation (std) he used formula for unbiased std containing n-1 in denominator. If you have the whole data (or almost the whole) there are also another way how to calculate correlation. In this case you must use biased std which has n in denominator. And in overall formula you must divide by n but not by n-1. Does not matter in which way you decide to calculate. The result will be the same.
• What calculator is Sal using? ()
• He is using a TI-84
• bro like im i 6th and i can't understand a single word of this
• What does the little i stand for? Like in xi or yi in the equation. Also, the sideways m means sum right?