Given random variables X,Y,…, that are defined on the same probability space, the joint probability distribution or multivariate probability distribution for X,Y,… is a probability distribution that gives the probability that each of X,Y,… 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 a bivariate distribution, but the concept generalizes to any number of random variables. The joint probability distribution can be expressed in terms of a joint cumulative distribution function and either in terms of a joint probability density function (in the case of continuous variables) or joint probability mass function (in the case of discrete variables). These in turn can be used to find two other types of distributions: the marginal distribution giving the probabilities for any one of the variables with no reference to any specific ranges of values for the other variables, and the conditional probability distribution giving the probabilities for any subset of the variables conditional on particular values of the remaining variables.
Examples
Draws from an urn 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 A and B 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 is 2/3, and the probability of drawing a blue ball is 1/3. The joint probability distribution is presented in the following table:
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 the marginal 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, as 2/3. Thus the marginal probability distribution for A gives A's probabilities unconditional on B, in a margin of the table.
Coin flips Consider the flip of two fair coins; let A and B be discrete random variables associated with the outcomes of the first and second coin flips respectively. Each coin flip is a Bernoulli trial and has a Bernoulli 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 is 1/2, so the marginal (unconditional) density functions are P(A)=1/2forA∈{0,1};P(B)=1/2forB∈{0,1}. The joint probability mass function of A and B defines probabilities for each pair of outcomes. All possible outcomes are (A,B)∈{(0,0),(0,1),(1,0),(1,1)}. Since each outcome is equally likely the joint probability mass function becomes P(A,B)=1/4forA,B∈{0,1}. Since the coin flips are independent, the joint probability mass function is the product of the marginals: P(A,B)=P(A)P(B)forA,B∈{0,1}.
Rolling a die Consider the roll of a fair die and let A=1 if the number is even (i.e. 2, 4, or 6) and A=0 otherwise. Furthermore, let B=1 if the number is prime (i.e. 2, 3, or 5) and B=0 otherwise.
Then, the joint distribution of A and B, expressed as a probability mass function, is P(A=0,B=0)=P{1}=16,P(A=1,B=0)=P{4,6}=26,P(A=0,B=1)=P{3,5}=26,P(A=1,B=1)=P{2}=16. These probabilities necessarily sum to 1, since the probability of some combination of A and B occurring is 1.
Marginal probability distribution
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 fX,Y(x,y) , the marginal probability density function of X and Y, which defines the marginal distribution, is given by: fX(x)=∫fX,Y(x,y)dyfY(y)=∫fX,Y(x,y)dx 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.
Joint cumulative distribution function For a pair of random variables X,Y, the joint cumulative distribution function (CDF) FX,Y is given by
where the right-hand side represents the probability that the random variable X takes on a value less than or equal to x and that Y takes on a value less than or equal to y. For N random variables X1,…,XN, the joint CDF FX1,…,XN is given by
Interpreting the N random variables as a random vector 𝐗=(X1,…,XN)T yields a shorter notation: F𝐗(𝐱)=P(X1≤x1,…,XN≤xN)
Joint density function or mass function
Discrete case The joint probability mass function of two discrete random variables X,Y is:
or written in terms of conditional distributions pX,Y(x,y)=P(Y=y∣X=x)⋅P(X=x)=P(X=x∣Y=y)⋅P(Y=y) where P(Y=y∣X=x) is the probability of Y=y given that X=x. The generalization of the preceding two-variable case is the joint probability distribution of n discrete random variables X1,X2,…,Xn which is:
or equivalently pX1,…,Xn(x1,…,xn)=P(X1=x1)⋅P(X2=x2∣X1=x1)⋅P(X3=x3∣X1=x1,X2=x2)⋯⋅P(Xn=xn∣X1=x1,X2=x2,…,Xn−1=xn−1). This identity is known as the chain rule of probability. Since these are probabilities, in the two-variable case ∑i∑jP(X=xi and Y=yj)=1, which generalizes for n discrete random variables X1,X2,…,Xn to ∑i∑j⋯∑kP(X1=x1i,X2=x2j,…,Xn=xnk)=1.
Continuous case The joint probability density function fX,Y(x,y) for two continuous random variables is defined as the derivative of the joint cumulative distribution function (see Eq.1):
… excerpt ends here. Continue reading the full article.


