Lably
Skip to content

Marginal distribution

Aspect of probability and statistics

  • 6 min read
  • 4 chapters

Related on Lably

Through Statistics, Subset and Random variable

Marginal variables are those variables in the subset of variables being retained. These concepts are "marginal" because they can be found by summing values in a table along rows or columns, and writing the sum in the margins of the table. The distribution of the marginal variables (the marginal distribution) is obtained by marginalizing (that is, focusing on the sums in the margin) over the distribution of the variables being discarded, and the discarded variables are said to have been marginalized out.

The context here is that the theoretical studies being undertaken, or the data analysis being done, involves a wider set of random variables but that attention is being limited to a reduced number of those variables. In many applications, an analysis may start with a given collection of random variables, then first extend the set by defining new ones (such as the sum of the original random variables) and finally reduce the number by placing interest in the marginal distribution of a subset (such as the sum). Several different analyses may be done, each treating a different subset of variables as the marginal distribution.

Definition

Marginal probability mass function

Given a known joint distribution of two discrete random variables, say, X and Y, the marginal distribution of either variable – X for example – is the probability distribution of X when the values of Y are not taken into consideration. This can be calculated by summing the joint probability distribution over all values of Y. Naturally, the converse is also true: the marginal distribution can be obtained for Y by summing over the separate values of X.

pX(xi)=∑jp(xi,yj),andpY(yj)=∑ip(xi,yj)

A marginal probability can always be written as an expected value: pX(x)=∫ypX∣Y(x∣y)pY(y)dy=EY⁡[pX∣Y(x∣Y)].

Intuitively, the marginal probability of X is computed by examining the conditional probability of X given a particular value of Y, and then averaging this conditional probability over the distribution of all values of Y.

This follows from the definition of expected value (after applying the law of the unconscious statistician) EY⁡[f(Y)]=∫yf(y)pY(y)dy.

Therefore, marginalization provides the rule for the transformation of the probability distribution of a random variable Y and another random variable X=g(Y): pX(x)=∫ypX∣Y(x∣y)pY(y)dy=∫yδ(x−g(y))pY(y)dy.

Marginal probability density function

Given two continuous random variables X and Y whose joint distribution is known, then the marginal probability density function for X can be obtained by integrating the joint probability density, f, over Y, and vice versa. That is

fX(x)=∫cdf(x,y)dyfY(y)=∫abf(x,y)dx

where x∈[a,b], and y∈[c,d].

Marginal cumulative distribution function

Finding the marginal cumulative distribution function from the joint cumulative distribution function is easy. Recall that:

  • For discrete random variables, F(x,y)=P(X≤x,Y≤y)
  • For continuous random variables, F(x,y)=∫ax∫cyf(x′,y′)dy′dx′

If X and Y jointly take values on [a, b] × [c, d] then

FX(x)=F(x,d)andFY(y)=F(b,y)

If d is ∞, then this becomes a limit FX(x)=limy→∞F(x,y). Likewise for FY(y).

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Statistics and probability