Find the correlation coefficient, R² and the regression line for two sets of numbers. Enter your X and Y values, and see how strongly they move together and what Y to expect for a new X.
Last updated: November 15, 2026 · Written by the CalculatorGate team
Results for X = 1, 2, 3, 4, 5 (hours) and Y = 52, 58, 61, 70, 74 (scores):
| Correlation coefficient (r) | 0.99 |
|---|---|
| Coefficient of determination (R²) | 0.98 |
| Regression equation | y = 5.6x + 46.2 |
| Predicted score for 6 hours | 79.8 |
Understanding the relationship between two variables
Correlation and regression analysis are statistical methods for examining the relationship between two variables. Correlation measures the strength and direction of the relationship, while regression is used to model how one variable affects another.
Correlation coefficient (r): Ranges from -1 to +1. Positive value = variables increase together, negative value = one increases while other decreases, close to 0 = weak relationship. For example, study hours and exam scores typically have positive correlation.
Regression analysis and applications: Regression equation (y = mx + b) enables future predictions. R² value shows how well the model explains (0-1 range, close to 1 = good model). Applications: Sales forecasting (advertising spend → sales), academic performance (study time → grades), economic analysis (GDP → consumption), health research (age → risk factors).
Five students studied 1, 2, 3, 4 and 5 hours and scored 52, 58, 61, 70 and 74. How strong is the link, and what score would 6 hours predict?
Short answers to common questions
Correlation coefficient (r) shows the strength and direction of linear relationship between two variables. It ranges from -1 to +1.
R² (coefficient of determination) shows how much of the variation in the dependent variable is explained by the independent variable. It ranges from 0 to 1, closer to 1 means better model.
Regression equation (y = mx + b) allows you to predict Y value given X value. For example, you can predict sales given advertising spending.
No! Correlation only shows there's a relationship, not causation. For example, ice cream sales and drowning incidents may correlate but one doesn't cause the other (both increase in hot weather).
More tools for similar calculations
Separate with commas, spaces or new lines.
Same order and count as the X values.
Optional: estimate Y for this X.
Strong positive correlation