A joint distribution keeps the relationship between variables. Knowing each marginal distribution separately does not tell us how the variables move together.
Joint, marginal, and conditional laws
A joint PMF assigns probability to pairs of discrete values. A joint density assigns probability through integration over regions. Sum or integrate out the other variable to obtain a marginal.
The denominators must be positive. Conditioning on an exact value of a continuous variable uses a conditional density; it is not a division by the zero point probability of that value.
Bayes’ rule also works when an unknown continuous parameter is combined with discrete observations: posterior density is proportional to likelihood times prior density, with an integral supplying the normalizing constant.
Independence of random variables
Independence means for all relevant sets . Equivalently, the joint CDF factors. For PMFs or densities, the joint law factors into the marginals on the full support.
Check the support as well as the algebra. A constant density over a triangle does not usually describe independent coordinates, because the possible values of one coordinate depend on the other.
Averaging functions of several variables
Covariance and correlation
Correlation is defined when both variances are positive and finite, and lies between minus one and one. It measures linear association. Independent variables with finite second moments have zero covariance, but the reverse implication is false.
For example, let be uniform on and let . Symmetry gives , so their covariance is zero, even though is completely determined by .
Adding constants does not change correlation. Positive rescaling does not change it either; multiplying exactly one variable by a negative number reverses its sign.
Variance of a sum
Variances add when all the pairwise covariances are zero. Independence is a sufficient condition, but is stronger than necessary. Covariance is symmetric and bilinear, so the same expansion handles weighted sums.
Multivariate models
A multivariate uniform distribution has constant density over a specified finite-volume region; the density equals the reciprocal of that volume. A vector is multivariate normal when every linear combination of its coordinates is normal, allowing degenerate combinations.
For a jointly normal vector, zero covariance between two coordinates does imply their independence. Having normal marginals alone is not enough.
For standard normal marginals with correlation , the bivariate normal density is: