Statistics formula reference

Covariance

Measures how two variables vary together.

Open in editor
LaTeX\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

Input

Output

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

  1. Check the domainMatch the variables and assumptions to the problem before substituting values.
  2. Copy the exact notationPreserve grouping, signs, and exponents in \operatorname{Cov}(X,Y)=E[(X-E[X])(Y-E[Y])].
  3. 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

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.

Reuse, attribution, and correction

Share this reference without losing its source

Copy a citation, permanent link, Markdown link, or self-contained embed card. Each reusable format points readers back to the maintained canonical page.

Report an issue

Search the whole reference

Symbols, formulas, guides, tools and commands

Start typing to search.

move · Enter open · Esc close