Suppose that X and Y are discrete random variables with joint probability mass function p. Then the marginal distribution of X is the distribution with probability mass function p1, where
A similar formula gives the marginal distribution of Y.
Suppose that X and Y are continuous random variables with joint probability density function f. Then the marginal distribution of X is the distribution with probability density function fX, where