The Following Is A Joint Probability Mass Function

5 min read

A joint probability mass function (joint PMF) serves as the cornerstone for analyzing the relationship between two or more discrete random variables. While a standard probability mass function describes the likelihood of a single variable taking on a specific value, the joint version extends this concept to capture the probability of simultaneous occurrences. This function is essential for understanding dependence, calculating marginal distributions, and deriving conditional probabilities in fields ranging from data science and machine learning to statistical physics and risk management Simple as that..

Defining the Joint Probability Mass Function

Let $X$ and $Y$ be two discrete random variables defined on the same sample space. The joint probability mass function, denoted as $p_{X,Y}(x, y)$ or simply $p(x, y)$, defines the probability that $X$ takes the value $x$ and $Y$ takes the value $y$ simultaneously. Mathematically, this is expressed as:

$p(x, y) = P(X = x, Y = y)$

For any valid joint PMF, two fundamental properties must hold true. First, non-negativity requires that $p(x, y) \ge 0$ for all possible pairs $(x, y)$. Probabilities cannot be negative Turns out it matters..

$\sum_{x} \sum_{y} p(x, y) = 1$

These axioms confirm that the function behaves as a legitimate probability distribution across the two-dimensional outcome space.

Visualizing the Distribution: Tables and Support

Because discrete random variables take on countable values, the joint PMF is frequently represented using a probability table (or contingency table). Rows typically represent values of $X$, columns represent values of $Y$, and the cell entries contain the joint probabilities $p(x_i, y_j)$ That's the part that actually makes a difference..

The official docs gloss over this. That's a mistake.

The support of the joint PMF is the set of all pairs $(x, y)$ for which $p(x, y) > 0$. Identifying the support is a critical first step in any analysis, as it defines the domain over which summations and calculations are performed. Think about it: if the support forms a rectangular grid (Cartesian product of the individual supports), the variables might be independent, though this is not a guarantee. If the support is non-rectangular (e.g., triangular or L-shaped), the variables are definitely dependent Simple as that..

Marginal Probability Mass Functions

One of the most common operations performed on a joint PMF is marginalization—extracting the distribution of a single variable while ignoring the other. This is achieved by summing the joint probabilities over all possible values of the variable you wish to "marginalize out."

The marginal PMF of $X$ is obtained by summing over $y$: $p_X(x) = \sum_{y} p(x, y)$

Similarly, the marginal PMF of $Y$ is found by summing over $x$: $p_Y(y) = \sum_{x} p(x, y)$

These marginal distributions reside in the "margins" of the probability table (hence the name). They provide the standalone probabilities for each variable, stripped of the context of the other variable's specific outcome.

Conditional Probability Mass Functions

While marginal distributions ask "What is the probability of $X$ regardless of $Y$?", conditional distributions ask "What is the probability of $X$ given that $Y$ has already occurred?"

The conditional PMF of $X$ given $Y = y$ is defined as: $p_{X|Y}(x|y) = \frac{p(x, y)}{p_Y(y)} \quad \text{provided } p_Y(y) > 0$

This formula slices the joint distribution horizontally (for a fixed $y$) and renormalizes the probabilities so they sum to 1. It effectively restricts the sample space to the event ${Y=y}$. Conditional PMFs are the building blocks of Bayesian inference, hidden Markov models, and numerous classification algorithms Not complicated — just consistent..

Independence of Random Variables

The concept of independence is central to probability theory. Two discrete random variables $X$ and $Y$ are independent if and only if their joint PMF factors into the product of their marginal PMFs for all values $x$ and $y$:

$p(x, y) = p_X(x) \cdot p_Y(y) \quad \forall x, y$

If this equality holds, knowing the outcome of $Y$ provides zero information about $X$, and vice versa. So naturally, the conditional PMF equals the marginal PMF: $p_{X|Y}(x|y) = p_X(x)$.

Crucial Distinction: Zero correlation (uncorrelatedness) does not imply independence for non-linear relationships, though independence always implies zero correlation. To prove independence, you must verify the factorization property across the entire support. To disprove it, finding a single cell where $p(x, y) \neq p_X(x)p_Y(y)$ is sufficient It's one of those things that adds up..

Expectation, Covariance, and Correlation

The joint PMF allows us to compute expectations of functions involving both variables. The Law of the Unconscious Statistician (LOTUS) for two variables states:

$E[g(X, Y)] = \sum_{x} \sum_{y} g(x, y) p(x, y)$

Two specific measures of linear association derive from this:

  1. Covariance: Measures the direction of the linear relationship. $Cov(X, Y) = E[XY] - E[X]E[Y] = \sum_{x} \sum_{y} xy , p(x, y) - \mu_X \mu_Y$
  2. Correlation Coefficient ($\rho$): Normalizes covariance to a scale of $[-1, 1]$. $\rho_{X,Y} = \frac{Cov(X, Y)}{\sigma_X \sigma_Y}$

A $\rho$ close to $+1$ indicates a strong positive linear trend; close to $-1$ indicates a strong negative linear trend; near $0$ suggests little to no linear association Which is the point..

Worked Example: Rolling Two Dice

Consider rolling two fair, four-sided dice (labeled 1–4). Let $Z = \min(X, Y)$. Worth adding: let $X$ be the value of the first die and $Y$ be the value of the second die. We want the joint PMF of $X$ and $Z$ Nothing fancy..

The sample space has $4 \times 4 = 16$ equally likely outcomes. The support for $(X, Z)$ is pairs $(x, z)$ where $1 \le z \le x \le 4$. Now, * If $x > z$: The first die is $x$, and the second die must be exactly $z$. Plus, for a specific pair $(x, z)$:

  • If $x = z$: The first die is $x$, and the second die must be $\ge x$. Because of that, there are $(5-x)$ outcomes. There is exactly 1 outcome.

Calculating probabilities (dividing by 16):

$X \backslash Z$ 1 2 3 4 $p_X(x)$
1 4/16 0 0 0 4/16
2 1/16 3/16 0 0 4/16
3 1/16 1/16 2/16 0 4/16
4 1/16 1/16 1/16 1/16 4/1
Fresh Picks

Fresh Stories

Handpicked

People Also Read

Thank you for reading about The Following Is A Joint Probability Mass Function. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home