ArticleslgStudy

science

Covariance and correlation

Covariance and correlation is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Covariance and correlation rather than just read about it. In short: In probability theory and statistics, the mathematical concepts of covariance and correlation are very similar. Both describe the degree to which two random variables or sets of random variables tend to deviate from their expected values in similar ways.

Covariance and correlation — main illustration
Covariance and correlation — illustration

Key takeaways

  • Covariance and correlation belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Covariance and correlation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Covariance and correlation from memory before moving on to harder problems.

Reference excerpt

In probability theory and statistics, the mathematical concepts of covariance and correlation are very similar. Both describe the degree to which two random variables or sets of random variables tend to deviate from their expected values in similar ways. If X and Y are two random variables, with means (expected values) μX and μY and standard deviations σX and σY, respectively, then their covariance and correlation are as follows:

covariance covXY=σXY=E[(X−μX)(Y−μY)] correlation corrXY=ρXY=E[(X−μX)(Y−μY)]/(σXσY), so that ρXY=σXY/(σXσY) where E is the expected value operator. Notably, correlation is dimensionless while covariance is in units obtained by multiplying the units of the two variables. If Y always takes on the same values as X, we have the covariance of a variable with itself (i.e. σXX), which is called the variance and is more commonly denoted as σX2, the square of the standard deviation. The correlation of a variable with itself is always 1 (except in the degenerate case where the two variances are zero because X always takes on the same single value, in which case the correlation does not exist since its computation would involve division by 0). More generally, the correlation between two variables is 1 (or –1) if one of them always takes on a value that is given exactly by a linear function of the other with respectively a positive (or negative) slope. Although the values of the theoretical covariances and correlations are linked in the above way, the probability distributions of sample estimates of these quantities are not linked in any simple way and they generally need to be treated separately.

Multiple random variables With any number of random variables in excess of 1, the variables can be stacked into a random vector whose i th element is the i th random variable. Then the variances and covariances can be placed in a covariance matrix, in which the (i, j) element is the covariance between the i th random variable and the j th one. Likewise, the correlations can be placed in a correlation matrix.

Time series analysis In the case of a time series which is stationary in the wide sense, both the means and variances are constant over time (E(Xn+m) = E(Xn) = μX and var(Xn+m) = var(Xn) and likewise for the variable Y). In this case the cross-covariance and cross-correlation are functions of the time difference:

cross-covariance σXY(m)=E[(Xn−μX)(Yn+m−μY)], cross-correlation ρXY(m)=E[(Xn−μX)(Yn+m−μY)]/(σXσY). If Y is the same variable as X, the above expressions are called the autocovariance and autocorrelation:

autocovariance σXX(m)=E[(Xn−μX)(Xn+m−μX)], autocorrelation ρXX(m)=E[(Xn−μX)(Xn+m−μX)]/(σX2).

References

Worked examples

Example 1 — a first encounter with Covariance and correlation

Start with the simplest possible case. Write down what Covariance and correlation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Covariance and correlation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Covariance and correlation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Covariance and correlation

In research
Covariance and correlation appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Covariance and correlation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Covariance and correlation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Covariance and correlation, so understanding it makes those chapters shorter.
In everyday life
Look for Covariance and correlation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Covariance and correlation” →

How to study Covariance and correlation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Covariance and correlation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Covariance and correlation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Covariance and correlation in simple terms?

In probability theory and statistics, the mathematical concepts of covariance and correlation are very similar. Both describe the degree to which two random variables or sets of random variables tend to deviate from their expected values in similar ways.

Why does Covariance and correlation matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Covariance and correlation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Covariance and correlation.

Tags

  • Covariance and correlation

Keep exploring