Probability Mass Function
Contents
Probability Mass Function#
Definition#
(State Space)
The set of all possible states of \(X\) is called the state space of \(X\) and is denoted as \(X(\S)\).
In particular, the state space of a discrete random variable \(X\) is a countable set as per Definition 17.
(State Space of Coin Toss)
Let us revisit the example in Example 1 and examine the state space of \(X\).
The state space of \(X\) is the set of all possible values that \(X\) can take. As enumerated in the example, we see that the state space of \(X\) is \(\{0, 1, 2\}\) (i.e. \(X\) takes 3 states 0, 1 and 2).
(State Space of Dice Roll)
Let us revisit the example in Example 2 and examine the state space of \(X\).
The state space of \(X\) is the set of all possible values that \(X\) can take. As enumerated in the example, we see that the state space of \(X\) is \(\{1, 2, 3, 4, 5, 6\}\) (i.e. \(X\) takes 6 states 1, 2, 3, 4, 5 and 6).
For two dice rolls, the state space is \(\{(1, 1), (1, 2), \ldots, (6, 6)\}\) where each state is a tuple of two dice rolls.
(Probability Mass Function)
The probability mass function (PMF) of a random variable \(X\) is a function that maps each state \(x\) in the state space \(X(\S)\) to its probability \(\pmf(x) = \P\lsq X = x \rsq\).
We denoted the PMF as
(PMF of Coin Toss)
Let us revisit Example 1 on coin toss and compute the PMF of \(X\).
Recall the sample space is given by \(\S = \{(HH), (HT), (TH), (TT)\}\) and the state space is given by \(X(\S) = \{0, 1, 2\}\) as enumerated in Example 4.
Thus, our domain of \(\pmf\) is \(X(\S) = \{0, 1, 2\}\) we have 3 mappings to compute:
Here we have enumerated all the possible states of \(X\) and computed the probability of each state. Thus, the PMF of \(X\) is completely determined by the 3 mappings above.
(PMF of Two Dice Rolls)
Let us revisit Example 2 on two dice rolls and compute the PMF of \(X\).
Recall the sample space is given by \(\S = \lset (1, 1), (1, 2), \ldots, (6, 6) \rset\) and the state space is given by \(X(\S) = \lset (1, 1), (1, 2), \ldots, (6, 6) \rset\) as enumerated in Example 5.
Thus, our domain of \(\pmf\) is \(X(\S) = \lset (1, 1), (1, 2), \ldots, (6, 6) \rset\) we have 36 states to compute:
Normalization#
(Normalization Property of PMF)
A PMF should satisfy the following normalization property:
Proof. TODO
Sturges’ Rule and Cross Validation#
See Introduction to Probability for Data Science section 3.2.5.