Theory
Joint distributions, covariance, and transformations
The distribution of a pair determines its marginal and conditional distributions, its covariance, and the distributions of sums, extremes, and other transformations.
Chapters 5 and 6 studied one random variable at a time. Many surveys, however, record two quantities on the same unit: a manufactured part undergoes two inspections, a student’s study hours and exam grade are both recorded. The chapter computes, for example, the probability that a part passes both inspections, which equals in the first section, and determines whether the first result changes the probabilities of the second. In the same example the probability of passing the second inspection is , and it drops to when the first is known to have been passed.
The relationship between two variables is summarized by the covariance and by the correlation, which equals when one variable is a linear function of the other. The chapter then derives the distribution of quantities built from the pair: the sum , such as the total time of two work stages, the maximum of several times, such as the moment when the last of three students hands in an exam, and new coordinates obtained through a transformation. The last section splits the variance of the number of parts produced in two modes into a part within each mode and a part due to the difference between the means.
The chapter closes the part on probability (chapters 3-7) and uses the independence of events from chapter 4. In chapter 8 the sample mean is the sum of independent variables divided by , and its variance is computed with the formula for the variance of a sum given in this chapter. In chapter 12 covariance and correlation are computed from data.
The joint distribution of a pair
1. Joint distribution and cumulative distribution function
Two dice are rolled; let be the result of the first and that of the second. The outcomes are equally likely. The event “the first die shows at most and the second at most ” contains outcomes, so its probability is .
The assignment of probabilities to all events concerning the point of the plane is called the joint distribution of and . The joint cumulative distribution function assigns to each pair of thresholds the probability that is at most and, at the same time, is at most :
In the dice example . For a single variable one recovers the cumulative distribution function of chapters 5 and 6.
The distribution of alone is called the marginal distribution of , and its marginal cumulative distribution function. As increases, the event includes more and more outcomes and tends to . Therefore
The joint cumulative distribution function gives the probability of every rectangle. For and , the probability of the rectangle is
The term includes all points with and . The first subtraction removes the region , to the left of the rectangle. The second removes the region , below the rectangle. The points with and belong to both regions and have been removed twice, so is added back once.
With the dice, for , , , the formula gives , and indeed the rectangle contains the outcomes with and .
2. Joint and marginal probability masses
A fair coin is tossed twice; let be the number of heads on the first toss and the number of heads in the two tosses. The four outcomes HH, HT, TH, TT (H heads, T tails) have probability each and give the pairs , , , . The probabilities are written in a table with on the rows and on the columns.
| Total | ||||
|---|---|---|---|---|
| Total |
If and are discrete, the joint probability mass at is
In the table and . The masses are nonnegative and sum to ; the pairs with positive mass form the support. The probability of a region is the sum of the masses of the pairs that belong to it, for example .
The probability is the sum of the row of , and is the sum of the column of . These distributions are called marginal probability masses, because in the table they appear in the margins, as row and column totals:
When and take only the values and , one writes briefly . For example .
Two inspections of the same unit
A unit undergoes two inspections. Let indicate a positive result on the first inspection and a positive result on the second. An indicator equals when the event occurs and otherwise.
| Total | |||
|---|---|---|---|
| Total |
The probability of two positive results is , because the event corresponds to a single cell. The probability of a positive result on the first inspection is , because the two cells of the second row are added. The probability of exactly one positive result is , because the two cells in which the indicators differ are added.
Joint densities and the region of integration
Joint and marginal densities
A point is chosen at random in the square , so that the probability of falling in a region of the square equals the area of the region. Let and be the coordinates of the point. The probability that the point falls below the line is the area of the triangle with vertices , , , that is, . The same probability is the double integral of the function equal to on the square and outside:
A pair has a joint density if the probability of every region of the plane (a rectangle, a triangle, a disk) is obtained by integrating over :
A joint density is nonnegative and has integral over the whole plane. Since it is zero outside the region where lies, a probability is computed by integrating over the intersection of with the region where the density is positive. Boundary contact points, such as a segment or a vertex, have zero area and contribute nothing to the integral.
The density of alone is called the marginal density of . It is obtained by fixing and integrating the joint density along the vertical line through ; for the marginal density of one uses horizontal lines:
In the square, for one has , so is uniform on .
Cross sections of a triangular support
The density equals on the triangle and zero elsewhere. The triangle has area , so the integral of the density equals . For , the vertical cross section of the triangle runs from to . For , the horizontal cross section runs from to . Integrating over the cross sections gives two different marginal densities, both zero outside :
A probability that concerns only is computed with the marginal density of . For example
The value is less than because, as increases, the horizontal cross sections of the triangle become shorter and the marginal density decreases.
Two marginal distributions with densities
Let be uniform on and let . Both marginal distributions are uniform on . The point lies with probability on the diagonal , which has zero area. A joint density would assign probability to that line, because the integral over a set of zero area equals zero. Therefore this pair has two marginal distributions with densities but no joint density.
End of the free preview
The theory of this topic continues with 7 more sections
- Conditioning and independence
- Expectations of functions and covariance
- Linear correlation and dependence
- Linear combinations and convolution
- Extremes and transformations of a pair
- Total expectation and total variance
- Keep studying
Full access also includes the other 7 worked examples of this topic and the solutions of the 14 practice exercises.
Unlock Statistics and probability · €49Read the first 3 worked examples in this chapter for free.