Syntax
| Parameter | Description |
|---|---|
| array1 | Parameter of the COVARIANCE.S function. |
| array2 | Parameter of the COVARIANCE.S function. |
Examples
Sample asset covariance
=COVARIANCE.S(B2:B100, C2:C100)
Survey data
=COVARIANCE.S(D2:D500, E2:E500)
Compared to population covariance
=COVARIANCE.S(A2:A20, B2:B20) > COVARIANCE.P(A2:A20, B2:B20)
Common Errors
The two arrays have different lengths.
Fewer than 2 data pairs. Sample covariance requires at least 2 paired observations.
Tips
Unless you have complete population data, COVARIANCE.S is the statistically correct choice. Most business data is sampled.
COVARIANCE.S divides by n-1, COVARIANCE.P by n. For large samples (n > 30), the difference becomes negligible.
For portfolio analysis with multiple assets, compute COVARIANCE.S for each pair to build a covariance matrix. This matrix is the core input for mean-variance optimization.
Try COVARIANCE.S in Viztab
Import your data and use COVARIANCE.S with 370+ other formulas. No signup required.
Open Viztab