![]() |
VOOZH | about |
The correlation coefficient is a statistical measure that helps determine the strength and direction of the relationship between two variables. It quantifies how changes in one variable correspond to changes in another. This coefficient, sometimes referred to as the cross-correlation coefficient, always lies between -1 and +1:
The correlation coefficient (r) is calculated using the formula:
Where:
Let's calculate the correlation coefficient for the given dataset:
X | Y |
|---|---|
15 | 25 |
18 | 25 |
21 | 27 |
24 | 31 |
27 | 32 |
ΣX = 105 | ΣY = 140 |
Additional calculations:
X × Y | X² | Y² |
|---|---|---|
375 | 225 | 625 |
450 | 324 | 625 |
567 | 441 | 729 |
744 | 576 | 961 |
864 | 729 | 1024 |
Σ(X × Y) = 3000 | ΣX² = 2295 | ΣY² = 3964 |
Now, applying the formula:
Input:
X = {43, 21, 25, 42, 57, 59}
Y = {99, 65, 79, 75, 87, 81}Output:
r = 0.529809
Input:
X = {15, 18, 21, 24, 27}
Y = {25, 25, 27, 31, 32}Output:
r = 0.953463
0.953463
Complexity Analysis
This efficient approach enables quick computation of the correlation coefficient, helping you analyze relationships between datasets. Whether in statistics, finance, or other domains, understanding correlation is essential for data-driven decision-making.