Pearson Correlation Coefficient Examples

Explore practical examples of calculating Pearson correlation coefficient in diverse contexts.
By Jamie

Understanding Pearson Correlation Coefficient

The Pearson correlation coefficient (r) is a statistical measure that expresses the extent of a linear relationship between two variables. It ranges from -1 to +1, where -1 indicates a perfect negative correlation, +1 indicates a perfect positive correlation, and 0 indicates no correlation. This measure is widely used in various fields, including science, finance, and social sciences, to identify relationships and make predictions based on data.

Example 1: Correlation Between Hours Studied and Exam Scores

In an educational setting, educators often seek to understand how study habits influence student performance. This example analyzes the correlation between the number of hours students study for an exam and their scores.

A group of 10 students recorded the following data:

Student Hours Studied Exam Score
1 2 56
2 3 68
3 5 78
4 1 45
5 4 72
6 6 90
7 3 65
8 2 58
9 5 82
10 4 70

To calculate the Pearson correlation coefficient:

  1. Compute the mean of the hours studied and the exam scores.
  2. Calculate the covariance between the two variables.
  3. Determine the standard deviations of both variables.
  4. Use the formula:

r = Cov(X, Y) / (σX * σY)

where Cov(X, Y) is the covariance of X and Y, and σX and σY are the standard deviations of X and Y.

After performing the calculations, we find that the Pearson correlation coefficient (r) is approximately 0.88, indicating a strong positive correlation between the hours studied and exam scores.

Notes: This correlation suggests that as students study more hours, their exam scores tend to increase, supporting the idea that effective study habits lead to better academic performance.

Example 2: Correlation Between Advertising Spend and Sales Revenue

In the business world, understanding the relationship between advertising spend and sales revenue is crucial for optimizing marketing strategies. This example examines the correlation between monthly advertising expenditure and the corresponding sales revenue over a six-month period.

Month Advertising Spend (in \() Sales Revenue (in \))
1 2000 15000
2 3000 18000
3 2500 17000
4 4000 22000
5 3500 19000
6 5000 23000

To find the Pearson correlation coefficient:

  1. Calculate the mean for both advertising spend and sales revenue.
  2. Compute the covariance and standard deviations.
  3. Apply the formula for the Pearson correlation coefficient.

After completing the calculations, we find that r is approximately 0.95, indicating a very strong positive correlation. This suggests that increased advertising spending is associated with higher sales revenue.

Variations: Businesses often adjust their advertising strategies based on this correlation, looking for optimal spend levels that maximize revenue without overspending.

Example 3: Correlation Between Temperature and Ice Cream Sales

In the field of consumer behavior, businesses often analyze how weather conditions affect product sales. This example looks at the correlation between daily average temperature and ice cream sales over a two-week summer period.

Day Average Temperature (°F) Ice Cream Sales (units)
1 70 150
2 75 200
3 80 250
4 85 300
5 90 350
6 95 400
7 100 450
8 85 320
9 78 220
10 72 160
11 88 380
12 92 410
13 84 310
14 77 230

To calculate the Pearson correlation coefficient:

  1. Obtain the mean for both temperature and sales.
  2. Compute the covariance and standard deviations.
  3. Use the Pearson formula to find r.

After performing the calculations, the Pearson correlation coefficient is approximately 0.92, indicating a strong positive correlation between temperature and ice cream sales.

Notes: This relationship highlights the impact of seasonal weather on consumer purchasing behavior, guiding businesses in inventory and marketing strategies during peak temperature months.