Study covariance, correlation, and regression across paired datasets. Paste values and set precision options easily. Explore trends using tables, exports, alerts, and dynamic plots.
Use comma, space, tab, or line breaks. Avoid thousands separators such as 1,000.
This sample dataset shows a positive relationship between X and Y.
| Observation | X | Y |
|---|---|---|
| A | 2 | 5 |
| B | 4 | 7 |
| C | 6 | 9 |
| D | 8 | 10 |
| E | 10 | 14 |
| F | 12 | 15 |
Mean X: x̄ = Σxi / n
Mean Y: ȳ = Σyi / n
Cov(X,Y) = Σ[(xi − x̄)(yi − ȳ)] / (n − 1)
Cov(X,Y) = Σ[(xi − x̄)(yi − ȳ)] / n
r = Σ[(xi − x̄)(yi − ȳ)] / √(Σ(xi − x̄)² × Σ(yi − ȳ)²)
Slope: b = Σ[(xi − x̄)(yi − ȳ)] / Σ(xi − x̄)²
Intercept: a = ȳ − bx̄
Line: y = bx + a
Step 1: Enter the X values in the first field.
Step 2: Enter the matching Y values in the second field.
Step 3: Add optional labels if you want named observations.
Step 4: Choose sample or population covariance from the dropdown.
Step 5: Set your preferred decimal precision.
Step 6: Click Calculate Statistics to show results above the form.
Step 7: Review covariance, correlation, variance, regression, and matrix outputs.
Step 8: Use the CSV or PDF buttons to export your results.
Covariance measures how two variables move together. Positive values mean they usually rise or fall together. Negative values mean one tends to rise when the other falls.
Sample covariance divides by n − 1 and is used for estimated datasets. Population covariance divides by n and is used when the full population is available.
Covariance depends on the original units of both variables. Two datasets may have larger covariance simply because their scales are larger, not because the relationship is stronger.
Correlation standardizes the relationship to a range from -1 to 1. It helps compare the strength and direction of linear relationships across very different datasets.
Not reliably. Covariance, correlation, and the regression line mainly describe linear movement. A nonlinear dataset can still produce weak or misleading linear statistics.
If all X values or all Y values are identical, correlation becomes undefined because one variable has zero spread. Covariance may become zero in that situation.
The regression line estimates Y from X and visualizes the direction of the linear pattern. It helps connect covariance results with practical prediction and trend analysis.
You can separate values with commas, spaces, tabs, or line breaks. Keep X and Y aligned in the same order so each observation remains properly paired.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.