Syntax
| Parameter | Description |
|---|---|
| array1 | Parameter of the COVARIANCE.P function. |
| array2 | Parameter of the COVARIANCE.P function. |
Examples
Portfolio covariance
=COVARIANCE.P(C2:C253, D2:D253)
Sensor correlation
=COVARIANCE.P(A2:A1000, B2:B1000)
Standardized version
=COVARIANCE.P(A2:A50, B2:B50) / (STDEV.P(A2:A50) * STDEV.P(B2:B50))
Common Errors
Arrays have different numbers of data points.
One or both arrays contain no numeric values.
Tips
COVARIANCE.P and COVAR are identical. Use COVARIANCE.P for clearer code that explicitly states population covariance.
COVARIANCE.S divides by n-1 and is appropriate for sample data. The difference is significant for small data sets.
CORREL = COVARIANCE.P / (STDEV.P of X * STDEV.P of Y). Correlation is just covariance normalized to a -1 to 1 scale.
Try COVARIANCE.P in Viztab
Import your data and use COVARIANCE.P with 370+ other formulas. No signup required.
Open Viztab