Pearson R Tutorial
Pearson R Tutorial
(r)
What is Pearson's r?
• • Pearson's r measures the linear relationship
between two variables.
• • Values range from -1 to 1:
• - r = 1: Perfect positive correlation
• - r = -1: Perfect negative correlation
• - r = 0: No correlation
• • It is used in statistics to understand the
strength and direction of the relationship.
Formula of Pearson's r
• Pearson's r is calculated using the formula:
• Where:
• • r: Pearson correlation coefficient
• • x and y: Values of two variables
• • n: Number of pairs of scores
Steps to Calculate Pearson's r
• 1. Find the mean of both x and y values.
• 2. Subtract the mean from each x and y value
(get deviations).
• 3. Multiply the deviations for x and y (get
products).
• 4. Square the deviations for x and y.
• 5. Sum the products and the squared
deviations.
• 6. Use the formula to calculate r.
Example Calculation
• Example:
• x: [2, 3, 5, 6]
• y: [1, 2, 4, 5]