MAXScanner calculator widget
Covariance Calculator — Sample & Population Covariance with Correlation
Editable live calculator
Change any input — the result updates immediately
No hidden assumptions. Inputs, units and the working stay visible so you can check the calculation.
Calculated result
Sample covariance = 8.4
Pairs n: 6
Mean X / Y: 6 / 5
Σ cross-deviations: 42
SD X / Y on matching basis: 2.8983 / 2.8983
Pearson correlation: 1
Cross-deviation audit
| # | X | Y | X−mean | Y−mean | Cross product |
|---|---|---|---|---|---|
| 1 | 2 | 1 | -4 | -4 | 16 |
| 2 | 4 | 3 | -2 | -2 | 4 |
| 3 | 5 | 4 | -1 | -1 | 1 |
| 4 | 7 | 6 | 1 | 1 | 1 |
| 5 | 8 | 7 | 2 | 2 | 4 |
| 6 | 10 | 9 | 4 | 4 | 16 |
Show the working
- 1. Compute x̄ = 6 and ȳ = 5.
- 2. For each pair multiply (x−x̄)(y−ȳ), then sum: 42.
- 3. Sample covariance divides by n−1 = 5: 42 ÷ 5 = 8.4.
Covariance magnitude depends on the units and scale of both variables. Use correlation when you need a standardized association measure.
Shared links reopen these inputs; saved calculations stay in this browser unless you clear site data.