Joint Distributions and Covariance
How two or more random quantities behave together, and covariance, which measures whether they tend to rise and fall together.
Needs a step first: 20
A joint distribution gives the probability of every pair of values; summing or integrating out one variable leaves the marginal distribution of the other. Covariance is positive when they tend to move together, and dividing by both standard deviations gives the correlation. Independence implies zero covariance, but not the other way round. For many variables the covariances form a symmetric matrix, the starting point for the multivariate normal and PCA.
Where it shows up: PCA finds the eigenvectors of a covariance matrix, and Bell's theorem is a statement about the joint distribution of measurement results.
How to hold it: In your head
See covariance as whether two quantities rise and fall together, and know that independence gives zero covariance but zero covariance does not give independence.
What knowing it looks like
- Find marginal and conditional distributions from a joint table or density.
- Compute a covariance and a covariance matrix, and use .
- Give an example of two variables that are uncorrelated but dependent.
Test yourself
takes the values with probability each, and . Find and the covariance matrix of . Are and independent?
Show the worked answer
Needs a step first: 20
Learn it with an AI
Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.
Be my maths tutor. I'm learning "Joint Distributions and Covariance" (Undergraduate I tier): How two or more random quantities behave together, and covariance, which measures whether they tend to rise and fall together.
I already know: Probability Densities, Matrices as Transformations.
Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away.
Finish by testing me with this: $X$ takes the values $-1,0,1$ with probability $\tfrac13$ each, and $Y=X^2$. Find $\operatorname{Cov}(X,Y)$ and the covariance matrix of $(X,Y)$. Are $X$ and $Y$ independent?
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.Needs first
- Probability DensitiesProbability for quantities that vary continuously, described by a density whose area over an interval is the chance of landing there.Undergraduate I · Probability & Statistics
- Matrices as TransformationsA matrix is a rule that moves every vector in a straight-line-preserving way; its columns say where the basis vectors land.Core · Linear Algebra
Leads to
- The Multivariate NormalThe bell curve in many dimensions, set by a mean vector and a covariance matrix, with elliptical contours.Undergraduate II · Probability & Statistics
- Principal Component AnalysisFinding the directions along which data varies most: the top eigenvectors of its covariance matrix, used to compress and visualise data.Undergraduate II · Machine Learning
- Bell's TheoremNo theory where outcomes are fixed in advance by local hidden information can match quantum predictions for entangled pairs; experiments side with quantum mechanics.Frontier · Quantum Mechanics
On the way to
Recommended
- MIT 6.1200J Mathematics for Computer ScienceMIT OpenCourseWare · CourseMIT's 2024 course on proofs, number theory, graphs, counting and discrete probability, with lecture videos, notes and problem sets.
- Mathematics for Machine LearningDeisenroth, Faisal and Ong (Cambridge University Press) · BookA free book that gathers exactly the linear algebra, vector calculus, probability and optimisation machine learning uses, then applies them to regression, PCA and classification.
- Seeing TheoryBrown University · InteractiveA visual introduction to probability and statistics in which you flip coins, draw samples and fit lines in the browser; complete and ad-free, with a Chinese version.
- Harvard Stat 110: ProbabilityJoe Blitzstein, Harvard University · CourseJoe Blitzstein's Harvard probability course: lecture videos, about 250 practice problems with solutions and a free online textbook, strong on intuition and story proofs.
- Information Theory, Inference, and Learning AlgorithmsDavid MacKay · BookMacKay's book connecting entropy, coding, Bayesian inference and neural networks, free to read online and still the one recommended for information theory with intuition.
- 宋浩老师官方宋浩(山东财经大学) · Videos · 中文Full university courses in calculus, linear algebra and probability by a Shandong University of Finance and Economics lecturer, clear and good-humoured; a new calculus series came out in October 2026.