Correlation Coefficient
Learn More
Understanding Correlation Coefficient
Definition
Correlation Coefficient measures the strength and direction of the 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 linear correlation.
Formula
Pearson Sample Correlation Coefficient:
Where:
- = covariance of X and Y
- = sample standard deviation of X
- = sample standard deviation of Y
Interpretation Guidelines
Important Considerations
- Correlation does not imply causation
- Only measures linear relationships
- Sensitive to outliers and extreme values
Practical Example
Let's calculate the correlation coefficient between hours studied and exam scores for 5 students:
StudentId | Hours Studied (X) | Exam Score (Y) |
---|---|---|
1 | 2 | 75 |
2 | 3 | 80 |
3 | 4 | 85 |
4 | 5 | 90 |
5 | 6 | 95 |
Correlation Coefficient Calculation
Step 1: Calculate the sample standard deviations:
For X (Hours Studied):
For Y (Exam Scores):
Step 2: Use the covariance and standard deviations to calculate the correlation coefficient:
Final Result: The correlation coefficient is 1.0, indicating a perfect positive linear relationship between hours studied and exam scores. This means:
- The relationship is perfectly linear
- As study hours increase, exam scores increase proportionally
- All points fall exactly on a straight line
- There is no scatter or deviation from the linear pattern
Interpretation: The correlation coefficient of 1.0 indicates a perfect positive linear relationship between hours studied and exam scores. As study hours increase, exam scores increase in perfect proportion.
Visual Examples of Correlation
The following examples illustrate different types of correlations between variables. Each chart shows how the strength and direction of relationships can vary. Hover over the charts to explore the data points.
Perfect Positive Correlation
r = 1.0
Relationship: Strong direct linear relationship
As X increases, Y increases proportionally with no variation.
Strong Positive Correlation
0.7 < r < 1.0
Relationship: Strong direct linear relationship
As X increases, Y tends to increase with some variation.
Moderate Positive Correlation
0.3 < r < 0.7
Relationship: Moderate direct linear relationship
As X increases, Y tends to increase with more variation.
No Correlation
r ≈ 0
Relationship: No linear relationship
No consistent pattern between X and Y values.
Moderate Negative Correlation
-0.7 < r < -0.3
Relationship: Moderate inverse linear relationship
As X increases, Y tends to decrease with more variation.
Strong Negative Correlation
-1.0 < r < -0.7
Relationship: Strong inverse linear relationship
As X increases, Y tends to decrease with some variation.
Key Takeaways
- Perfect correlation (r = ±1) indicates an exact linear relationship
- The sign indicates direction: positive (upward trend) or negative (downward trend)
- Values closer to 0 indicate weaker relationships between variables
Related Links
Range, Variance, Standard Deviation Calculator
Coefficient of Variation Calculator
Covariance Calculator
Simple Linear Regression Calculator
Help us improve
Found an error or have a suggestion? Let us know!