| Part of a series onstatistics |
| Probability theory |
|---|
Givenrandom variables, that are defined on the same[1]probability space, themultivariate orjoint probability distribution for is aprobability distribution that gives the probability that each of falls in any particular range or discrete set of values specified for that variable. In the case of only two random variables, this is called abivariate distribution, but the concept generalizes to any number of random variables.
The joint probability distribution can be expressed in terms of a jointcumulative distribution function and either in terms of a jointprobability density function (in the case ofcontinuous variables) or jointprobability mass function (in the case ofdiscrete variables). These in turn can be used to find two other types of distributions: themarginal distribution giving the probabilities for any one of the variables with no reference to any specific ranges of values for the other variables, and theconditional probability distribution giving the probabilities for any subset of the variables conditional on particular values of the remaining variables.
Each of two urns contains twice as many red balls as blue balls, and no others, and one ball is randomly selected from each urn, with the two draws independent of each other. Let and be discrete random variables associated with the outcomes of the draw from the first urn and second urn respectively. The probability of drawing a red ball from either of the urns is2/3, and the probability of drawing a blue ball is1/3. The joint probability distribution is presented in the following table:
| A=Red | A=Blue | P(B) | |
|---|---|---|---|
| B=Red | (2/3)(2/3) =4/9 | (1/3)(2/3) =2/9 | 4/9 +2/9 =2/3 |
| B=Blue | (2/3)(1/3) =2/9 | (1/3)(1/3) =1/9 | 2/9 +1/9 =1/3 |
| P(A) | 4/9 +2/9 =2/3 | 2/9 +1/9 =1/3 |
Each of the four inner cells shows the probability of a particular combination of results from the two draws; these probabilities are the joint distribution. In any one cell the probability of a particular combination occurring is (since the draws are independent) the product of the probability of the specified result for A and the probability of the specified result for B. The probabilities in these four cells sum to 1, as with all probability distributions.
Moreover, the final row and the final column give themarginal probability distribution for A and the marginal probability distribution for B respectively. For example, for A the first of these cells gives the sum of the probabilities for A being red, regardless of which possibility for B in the column above the cell occurs, as2/3. Thus the marginal probability distribution for gives's probabilitiesunconditional on, in a margin of the table.
Consider the flip of twofair coins; let and be discrete random variables associated with the outcomes of the first and second coin flips respectively. Each coin flip is aBernoulli trial and has aBernoulli distribution. If a coin displays "heads" then the associated random variable takes the value 1, and it takes the value 0 otherwise. The probability of each of these outcomes is1/2, so the marginal (unconditional) density functions are
The joint probability mass function of and defines probabilities for each pair of outcomes. All possible outcomes areSince each outcome is equally likely the joint probability mass function becomes
Since the coin flips are independent, the joint probability mass function is the product of the marginals:
Consider the roll of a fairdie and let if the number is even (i.e. 2, 4, or 6) and otherwise. Furthermore, let if the number is prime (i.e. 2, 3, or 5) and otherwise.
| 1 | 2 | 3 | 4 | 5 | 6 | |
|---|---|---|---|---|---|---|
| A | 0 | 1 | 0 | 1 | 0 | 1 |
| B | 0 | 1 | 1 | 0 | 1 | 0 |
Then, the joint distribution of and, expressed as a probability mass function, is
These probabilities necessarily sum to 1, since the probability ofsome combination of and occurring is 1.
If more than one random variable is defined in a random experiment, it is important to distinguish between the joint probability distribution of X and Y and the probability distribution of each variable individually. The individual probability distribution of a random variable is referred to as its marginal probability distribution. In general, the marginal probability distribution of X can be determined from the joint probability distribution of X and other random variables.
If the joint probability density function of random variable X and Y is , the marginal probability density function of X and Y, which defines themarginal distribution, is given by:
where the first integral is over all points in the range of (X,Y) for which X=x and the second integral is over all points in the range of (X,Y) for which Y=y.[2]
For a pair of random variables, the joint cumulative distribution function (CDF) is given by[3]: 89
(Eq.1)
where the right-hand side represents theprobability that the random variable takes on a value less than or equal toand that takes on a value less than or equal to.
For random variables, the joint CDF is given by
(Eq.2)
Interpreting the random variables as arandom vector yields a shorter notation:
The jointprobability mass function of twodiscrete random variables is:
(Eq.3)
or written in terms of conditional distributionswhere is theprobability of given that.
The generalization of the preceding two-variable case is the joint probability distribution of discrete random variables which is:
(Eq.4)
or equivalently
This identity is known as thechain rule of probability.
Since these are probabilities, in the two-variable case
which generalizes for discrete random variables to
Thejointprobability density function for twocontinuous random variables is defined as the derivative of the joint cumulative distribution function (seeEq.1):
(Eq.5)
This is equal to:
where and are theconditional distributions of given and of given respectively, and and are themarginal distributions for and respectively.
The definition extends naturally to more than two random variables:
(Eq.6)
Again, since these are probability distributions, one hasrespectively
The "mixed joint density" may be defined where one or more random variables are continuous and the other random variables are discrete. With one variable of each typeOne example of a situation in which one may wish to find the cumulative distribution of one random variable which is continuous and another random variable which is discrete arises when one wishes to use alogistic regression in predicting the probability of a binary outcome Y conditional on the value of a continuously distributed outcome. Onemust use the "mixed" joint density when finding the cumulative distribution of this binary outcome because the input variables were initially defined in such a way that one could not collectively assign it either a probability density function or a probability mass function. Formally, is the probability density function of with respect to theproduct measure on the respectivesupports of and. Either of these two decompositions can then be used to recover the joint cumulative distribution function:The definition generalizes to a mixture of arbitrary numbers of discrete and continuous random variables.
In general two random variables and areindependent if and only if the joint cumulative distribution function satisfies
Two discrete random variables and are independent if and only if the joint probability mass function satisfiesfor all and.
While the number of independent random events grows, the related joint probability value decreases rapidly to zero, according to a negative exponential law.
Similarly, two absolutely continuous random variables are independent if and only iffor all and. This means that acquiring any information about the value of one or more of the random variables leads to a conditional distribution of any other variable that is identical to its unconditional (marginal) distribution; thus no variable provides any information about any other variable.
If a subset of the variables isconditionally dependent given another subset of these variables, then the probability mass function of the joint distribution is. is equal to. Therefore, it can be efficiently represented by the lower-dimensional probability distributions and. Such conditional independence relations can be represented with aBayesian network orcopula functions.
When two or more random variables are defined on a probability space, it is useful to describe how they vary together; that is, it is useful to measure the relationship between the variables. A common measure of the relationship between two random variables is the covariance. Covariance is a measure of linear relationship between the random variables. If the relationship between the random variables is nonlinear, the covariance might not be sensitive to the relationship, which means, it does not relate the correlation between two variables.
The covariance between the random variables and is[2]
There is another measure of the relationship between two random variables that is often easier to interpret than the covariance.
The correlation just scales the covariance by the product of the standard deviation of each variable. Consequently, the correlation is a dimensionless quantity that can be used to compare the linear relationships between pairs of variables in different units. If the points in the joint probability distribution of X and Y that receive positive probability tend to fall along a line of positive (or negative) slope, ρXY is near +1 (or −1). If ρXY equals +1 or −1, it can be shown that the points in the joint probability distribution that receive positive probability fall exactly along a straight line. Two random variables with nonzero correlation are said to be correlated. Similar to covariance, the correlation is a measure of the linear relationship between random variables.
The correlation coefficient between the random variables and is
Named joint distributions that arise frequently in statistics include themultivariate normal distribution, themultivariate stable distribution, themultinomial distribution, thenegative multinomial distribution, themultivariate hypergeometric distribution, and theelliptical distribution.