\operatorname{Cov}(X,Y)=E[(X-E[X])(Y-E[Y])]Variables
- X,Y: random variables
- E: expectation
How to use this formula
Measures how two variables vary together.
Important notes
- Magnitude depends on variable scales.
Quick example
Positive covariance means larger values tend to occur together.
Applicability, worked calculation, and verification
Assumptions and domain checks
- Magnitude depends on variable scales.
- For the Covariance, identify whether each quantity is a sample statistic, population parameter, estimator, or model value, and check the method assumptions.
Worked example
Positive covariance means larger values tend to occur together.
Common mistakes
- Do not substitute sample and population quantities interchangeably in Covariance; map every symbol to its definition first.
- For the Covariance, do not interpret a descriptive statistic as a causal or population conclusion without the sampling and model assumptions.
Continue the workflow
Use Covariance in your own work
- Check the domainMatch the variables and assumptions to the problem before substituting values.
- Copy the exact notationPreserve grouping, signs, and exponents in
\operatorname{Cov}(X,Y)=E[(X-E[X])(Y-E[Y])]. - Edit or convertOpen the expression in the LaTeX editor, then export it for your document or web page.
Review and verification
Last reviewed: 2026-07-23
Automated quality check: Kept noindex until the missing evidence is supplied.
Formula references
- Introductory Statistics 2eOpenStax, Rice University — Reviewed probability and statistics definitions, notation, and formulas.
Frequently asked questions
What is the Covariance used for?
Measures how two variables vary together.
Can I copy this formula as LaTeX?
Yes. Copy \operatorname{Cov}(X,Y)=E[(X-E[X])(Y-E[Y])] or open it in the LaTeX editor.
What should I check before using it?
Confirm that each variable, unit, domain restriction, and assumption matches the problem.