“How can I calculate the covariance between two datasets in Google Sheets?”

“How can I calculate the covariance between two datasets in Google Sheets?”

The process of determining the covariance between two datasets in Google Sheets involves using the COVARIANCE function, which calculates the measure of how two variables change together. This function takes in two arrays of data and returns the covariance value. It is useful in analyzing the relationship between two sets of data and determining if they have a positive, negative, or no correlation. By following a few simple steps, the covariance between two datasets can be easily calculated in Google Sheets, providing valuable insights for data analysis and decision making.

COVARIANCE.S function

The COVARIANCE.S function calculates the covariance of a dataset, where the dataset is a sample of the total population.

Parts of a COVARIANCE.S function 

COVARIANCE.S(data_y, data_x)

PartDescription
data_yThe range representing the array or matrix of dependent data.
data_xThe range representing the array or matrix of independent data.

Sample formulas 

COVARIANCE.S(A1:A10)

COVARIANCE.S(1, 2, 3, 4)

COVARIANCE.S(B1:B5, 10)

Notes

  • Any text encountered in the value arguments will be ignored.
  • Positive covariance indicates that the independent data and dependent data tend to change together in the same direction.
  • Negative covariance indicates that they tend to change together in the opposite direction. An increase in one leads to a decrease in the other. The magnitude of covariance is difficult to interpret.

Examples

 AB
1data_1data_2
224
353
476
511
685
7  
8  
9CovarianceFormula
104.65=COVARIANCE.S(A2:A6, B2:B6)
117=COVARIANCE.S({1,3}, {-1,6})

Related functions

  • COVAR: Calculates the covariance of a dataset.

Cite this article

stats writer (2024). “How can I calculate the covariance between two datasets in Google Sheets?”. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-calculate-the-covariance-between-two-datasets-in-google-sheets/

stats writer. "“How can I calculate the covariance between two datasets in Google Sheets?”." PSYCHOLOGICAL SCALES, 30 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-calculate-the-covariance-between-two-datasets-in-google-sheets/.

stats writer. "“How can I calculate the covariance between two datasets in Google Sheets?”." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-calculate-the-covariance-between-two-datasets-in-google-sheets/.

stats writer (2024) '“How can I calculate the covariance between two datasets in Google Sheets?”', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-calculate-the-covariance-between-two-datasets-in-google-sheets/.

[1] stats writer, "“How can I calculate the covariance between two datasets in Google Sheets?”," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.

stats writer. “How can I calculate the covariance between two datasets in Google Sheets?”. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top