How does a joint distribution describe two random variables at the same time?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In the context of probability and statistics, a joint distribution describes the relationship between two or more random variables defined on the same sample space by assigning probabilities to the simultaneous occurrence of their specific values.1

For two discrete random variables, X and Y, the joint distribution is represented by a function h(xi,yj), which defines the probability that X takes the value xi and Y takes the value yj at the same time:
h(xi,yj)=P{X=xi,Y=yj}

This function allows for the analysis of how the variables interact. From the joint distribution, one can derive the individual behavior of each variable through marginal distributions. For instance, the marginal distribution of X is found by summing the joint probabilities over all possible values of Y:
f(xi)=∑jh(xi,yj)

If the variables are independent, the joint distribution is simply the product of their individual marginal distributions, meaning h(xi,yj)=f(xi)g(yj) for all values.1