How to Use the Covariance Calculator: Steps and a Worked Example
Calculate the sample covariance of two paired lists of numbers. This guide shows what to enter, a worked example with real numbers, and the limits to keep in mind. The Covariance Calculator tool is free, needs no account and runs in your browser.
What you need
- Numbers (separated by commas or new lines), for example 2, 4, 6, 8, 10
- Second list (same number of values), for example 4, 8, 12, 16, 20
Step by step
- Open the Covariance Calculator tool.
- Fill in Numbers (separated by commas or new lines).
- Fill in Second list (same number of values).
- Read the result, which updates as soon as the inputs change.
Worked example
With these inputs:
- Numbers (separated by commas or new lines): 2, 4, 6, 8, 10
- Second list (same number of values): 4, 8, 12, 16, 20
the tool returns:
Sample covariance: 20
How it works
The calculation is: Sample covariance = Σ(x − x̄)(y − ȳ) ÷ (n − 1). Enter the numbers and second list and the result appears straight away. Everything runs in your browser, so nothing you type is uploaded.
Things to keep in mind
Check your inputs, units and any local rules before you rely on the result.
Related tools
If this is not quite what you need, try Average Calculator, Ratio Simplifier or Random Number Generator.