Seyed Masoud Hosseini · Overview · Study log · Weekly summaries · Ideas · Search · Transcript · RSS feed
Probability · Lecture 41 of 76 · 51:54
11. Derived Distributions (ctd.); Covariance
Study guide
What this lecture covers
This lecture continues the study of derived distributions, moving from functions of a single random variable to functions of two random variables. It answers a practical question: given the joint behavior of two random variables, how do you find the distribution of a quantity built from both of them, such as their ratio or their sum? It sits in MIT 6.041's chapter on derived distributions and follows directly from the previous lecture's cookbook method (find the CDF, then differentiate).
The second half introduces covariance and the correlation coefficient, which describe how two random variables move together. After watching, you should be able to derive the density of a ratio or sum of two random variables, use the convolution formula for both discrete and continuous cases, and compute or interpret a covariance and correlation coefficient from a scatter diagram.
Key ideas
- Cookbook method for two variables: to find the density of a function of two random variables, first find its CDF as a probability of an event in the (x, y) plane, then differentiate.
- Convolution formula: for
W = X + Ywith X and Y independent, the PMF (or density) of W is obtained by flipping one distribution, shifting it byw, multiplying pointwise, and summing (or integrating). - Sum of independent normals is normal: convolving two normal densities gives another normal density, with mean equal to the sum of means and variance equal to the sum of variances.
- Monotonic transformation shortcut: when
y = g(x)is strictly monotonic,f_Y(y) = f_X(x) / |g'(x)|, evaluated at the corresponding x; flat regions ofgproduce high density in Y. - Covariance:
Cov(X,Y) = E[(X - E[X])(Y - E[Y])]measures whether large values of X tend to occur with large (positive covariance) or small (negative covariance) values of Y. - Correlation coefficient: covariance divided by the product of the standard deviations, always between -1 and 1; a magnitude of 1 means one variable is an exact linear function of the other.
- Variance of a sum:
Var(X1 + ... + Xn)equals the sum of variances plus twice the sum of pairwise covariances; the covariance terms vanish when the variables are independent.
Walkthrough
Distribution of a ratio of two uniforms (1:00)
The lecture opens with X and Y independent and uniform on the unit square, and derives the distribution of Z = Y/X. Working through the CDF geometrically (areas of triangles under lines of slope z), it shows the cumulative has one form for z between 0 and 1 and a different form for z above 1, then differentiates to get the density. A follow-up discussion shows that E[Z] is infinite here, and that you cannot compute E[Y/X] by naively dividing E[Y] by E[X] (though E[Y · (1/X)] does factor into E[Y]·E[1/X] because X and Y are independent).
Monotonic transformations from densities directly (13:14)
For a strictly monotonic function y = g(x), the lecture shows you can skip the CDF step and relate densities directly through the slope of g, using the idea that a small interval around x and its corresponding interval around y must carry equal probability. It works the example y = x^3, arriving at f_Y(y) = f_X(y^(1/3)) / (3 y^(2/3)), and explains intuitively why flat parts of g concentrate probability in Y while steep parts spread it thin.
The convolution formula, discrete then continuous (24:34)
For the sum W = X + Y of independent random variables, the lecture derives the discrete convolution formula and demonstrates a graphical technique: flip the PMF of Y, shift it by w, multiply term by term against the PMF of X, and add. It then states the continuous analogue, replacing PMFs with densities and sums with an integral.
Sum of two independent normals (33:44)
Using the convolution integral, the lecture shows that the joint density of two independent normals has elliptical contours, and that carrying out the convolution integral for their sum produces another normal density, with mean and variance additive across the two variables.
Covariance and the scatter diagram (40:55)
Using scatter diagrams, the lecture defines covariance as capturing whether large deviations in X go together with large deviations in Y (positive covariance) or with small/negative deviations (negative covariance). It notes the shortcut formula for covariance analogous to the one for variance, and that independence implies zero covariance (though not the converse).
Correlation coefficient and variance of a sum (48:14)
The lecture normalizes covariance by the standard deviations of X and Y to get the dimensionless correlation coefficient, bounded between -1 and 1, and explains that a magnitude of 1 corresponds to an exact linear relationship. It closes by extending the variance formula for a sum of random variables to include covariance cross terms.
Before you watch
- Be comfortable with the CDF-then-differentiate method for finding the distribution of a function of a single random variable, covered in the previous lecture.
- Know the definitions of variance and independence of random variables.
- Some familiarity with the normal distribution's density formula is helpful for the convolution example.
Check your understanding
- Why does the density of Y = g(X) involve dividing by the slope of g rather than multiplying by it?
- Walk through the convolution formula's graphical procedure (flip, shift, multiply, sum) for two discrete PMFs.
- Why does independence between X and Y imply zero covariance, but zero covariance not imply independence?
- If two random variables have a correlation coefficient of exactly -1, what does that tell you about their relationship?
- How does the variance of a sum of dependent random variables differ from the variance of a sum of independent ones?
Vocabulary
- derived distribution (phrase)
- The probability pattern of a new variable created from other random variables.
We continue studying derived distributions of two variables together. - ratio (noun)
- The result of dividing one quantity by another.
We find the distribution of the ratio Z = Y/X. - convolution (noun)
- A method that combines two distributions to find the distribution of their sum.
The convolution formula gives the density of X plus Y. - flip (verb)
- To reverse the order or direction of something.
We flip the PMF of Y as part of the convolution process. - pointwise (adverb)
- Applied separately at each individual point.
We multiply the two functions pointwise before adding. - monotonic transformation (phrase)
- A change applied to a variable using a function that is always increasing or always decreasing.
A monotonic transformation lets us relate densities directly. - slope (noun)
- How steep a line or curve is at a given point.
The density formula divides by the slope of g. - covariance (noun)
- A number that shows whether two variables tend to increase or decrease together.
Positive covariance means X and Y tend to be large together. - correlation coefficient (phrase)
- A number between -1 and 1 that shows how strongly two variables are linearly related.
A correlation coefficient near 1 means a strong positive relationship. - scatter diagram (phrase)
- A graph showing individual data points for two variables.
The scatter diagram shows how X and Y values are spread. - deviation (noun)
- How far a value is from its average.
Covariance captures whether deviations in X and Y happen together. - elliptical (adjective)
- Having the shape of an oval, like a stretched circle.
The joint density of two normals has elliptical contours. - contour (noun)
- A line connecting points of equal value on a surface.
The contours of the joint density form ellipses. - pairwise (adjective)
- Considered two at a time, in pairs.
The variance of a sum includes pairwise covariance terms. - vanish (verb)
- To become zero or disappear.
The covariance terms vanish when the variables are independent. - cookbook method (phrase)
- A fixed step-by-step recipe that can be applied to many similar problems.
The cookbook method finds the CDF first, then differentiates. - joint behavior (phrase)
- How two or more random variables act together.
We need the joint behavior of X and Y to find the distribution of their sum. - dimensionless (adjective)
- Having no units, just a plain number.
The correlation coefficient is dimensionless, unlike covariance. - cross term (phrase)
- A term in an expanded formula that involves two different variables multiplied together.
The variance of a sum includes covariance cross terms. - strictly monotonic (phrase)
- Always increasing, or always decreasing, with no flat or reversing sections.
The shortcut only works when g is strictly monotonic. - steep (adjective)
- Rising or falling quickly.
Steep parts of g spread the probability thin in Y. - additive (adjective)
- Combining by simple addition.
The variance of a sum of independent normals is additive. - dependence (noun)
- The degree to which one variable's value is linked to another's.
Covariance measures a kind of dependence between two variables. - factor (verb)
- To break an expression into a product of simpler parts.
Independence lets E[Y * (1/X)] factor into E[Y] times E[1/X]. - bounded (adjective)
- Limited between a fixed lower and upper value.
The correlation coefficient is bounded between -1 and 1. - magnitude (noun)
- The size of a value, ignoring its sign.
A correlation magnitude of 1 means an exact linear relationship.
Chapters
- 0:00 <Untitled Chapter 1>
- 0:28 Derived Distributions
- 14:14 Probabilities of Small Intervals
- 26:32 The Convolution Formula
- 39:40 The Density of the Sum
- 40:16 Conclusion
- 41:42 Scatter Diagram
- 42:55 The Covariance
- 44:15 Positive Covariance
- 44:59 Negative Covariance
- 46:56 Variance
- 48:44 And with Variances We Got out of that Issue by Considering the Standard Deviation Which Has the Correct Units so the Same with the Same Reasoning We Want To Have a Concept That Captures the Relation between Two Random Variables in in some Sense That Doesn't Have To Do with the Units That We'Re Dealing We'Re Going To Have a Dimensionless Quantity That Tells Us How Strongly Two Random Variables Are Related to each Other so Instead of Considering the Covariance of Just X with Y We Take Our Random Variables and Standardize Them by Dividing Them by Their Individual Standard Deviations and Take the Expectation of this
- 51:02 So the Case of a Complete Correlation Is the Case Where One Random Variable Is a Linear Function of the Other Random Variable in Terms of a Scatter Plot this Would Mean that There's a Certain Line and that the Only Possible Xy Pairs That Can Happen Would Lie on that Line So if All the Possible Xy Pairs Lie on this Line Then You Have this Relation and the Correlation Coefficient Is Equal to One a Case Where the Correlation Coefficient Is Close to One Would Be a Scatter Plot like this Where the X's and Y's Are Quite Strongly Aligned with each Other Maybe Not Exactly but Fairly Strongly All Right so You'Re Going To Hear a Lot a Little More about Correlation Coefficients and Covariance in Recitation Tomorrow
From the YouTube description
MIT 6.041 Probabilistic Systems Analysis and Applied Probability, Fall 2010
View the complete course: http://ocw.mit.edu/6-041F10
Instructor: John Tsitsiklis
License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu
← Recitation: Ambulance Travel Time · The Difference of Two Independent Exponential Random Variables →
