Post · 6 min read· pp. 56–59

1.3.4 Discrete Probability Models


Video Available Video Available

Here, we will distinguish between two different types of sample spaces, discrete and continuous. We will discuss the difference more in detail later on, when we discuss random variables. The basic idea is that in discrete probability models we can compute the probability of events by adding all the corresponding outcomes, while in continuous probability models we need to use integration instead of summation.

Consider a sample space SS. If SS is a countable set, this refers to a discrete probability model. In this case, since SS is countable, we can list all the elements in SS:

S={s1,s2,s3,⋯ }.S=\{s_1, s_2, s_3,\cdots\}.
If A⊂SA \subset S is an event, then AA is also countable, and by the third axiom of probability we can write
P(A)=P(⋃sj∈A{sj})=∑sj∈AP(sj).P(A)=P(\bigcup_{s_j \in A} \{s_j\})=\sum_{s_j \in A} P(s_j).
Thus in a countable sample space, to find probability of an event, all we need to do is sum the probability of individual elements in that set.


Example

I play a gambling game in which I will win k−2k-2 dollars with probability 12k\frac{1}{2^k} for any k∈Nk \in \mathbb{N}, that is,

  • with probability 12\frac{1}{2}, I lose $1$ dollar;
  • with probability 14\frac{1}{4}, I win $0$ dollar;
  • with probability 18\frac{1}{8}, I win $1$ dollar;
  • with probability 116\frac{1}{16}, I win $2$ dollars;
  • with probability 132\frac{1}{32}, I win $3$ dollars;
  • ⋯\cdots

What is the probability that I win more than or equal to $1$ dollar and less than $4$ dollars? What is the probability that I win more than $2$ dollars?

  • Solution
    • In this problem, the random experiment is the gambling game and the outcomes are the amount in dollars that I win (lose). Thus we may write

      S={−1,0,1,2,3,4,5,⋯ }.S=\{-1,0,1,2,3,4,5,\cdots\}.
      As we see this is an infinite but countable set. The problem also states that
      P(k)=P({k})=12k+2 for k∈S.P(k)=P(\{k\})=\frac{1}{2^{k+2}} \textrm{ for $k \in S$}.
      First, let's check that this is a valid probability measure. To do so, we should check if all probabilities add up to one, i.e., P(S)=1P(S)=1. We have

      P(S)P(S)$ =\sum_{k=-1}^{\infty} P(k)$
      =∑k=−1∞12k+2= \sum_{k=-1}^{\infty} \frac{1}{2^{k+2}}
      =12+14+18+⋯= \frac{1}{2}+\frac{1}{4}+\frac{1}{8}+\cdots \hspace{20pt}(geometric sum)\textrm{(geometric sum)}
      =1=1.

      Now let's solve the problem. Let's define AA as the event that I win more than or equal to $1$ dollar and less than $4$ dollars, and BB as the event that I win more than $2$ dollars. Thus,

      A={1,2,3},B={3,4,5,⋯ }.A=\{1,2,3\}, B=\{3,4,5,\cdots\}.
      Then

      P(A)P(A)=P(1)+P(2)+P(3)=P(1)+P(2)+P(3)
      =18+116+132=\frac{1}{8}+\frac{1}{16}+\frac{1}{32}
      =732=\frac{7}{32}
      ≈0.219\approx 0.219

      Similarly,

      P(B)P(B)=P(3)+P(4)+P(5)+P(6)+⋯=P(3)+P(4)+P(5)+P(6)+\cdots
      =132+164+1128+1256+⋯=\frac{1}{32}+\frac{1}{64}+\frac{1}{128}+\frac{1}{256}+\cdots \hspace{20pt}(geometric sum)\textrm{(geometric sum)}
      =116=\frac{1}{16}
      =0.0625= 0.0625

      Note that another way to find P(B)P(B) is to write

      P(B)P(B)=1−P(Bc)=1-P(B^c)
      =1−P({−1,0,1,2})=1-P(\{-1,0,1,2\})
      =1−(P(−1)+P(0)+P(1)+P(2))=1-\bigg(P(-1)+P(0)+P(1)+P(2)\bigg)
      =1−(12+14+18+116)=1-\left(\frac{1}{2}+\frac{1}{4}+\frac{1}{8}+\frac{1}{16}\right)
      =1−1516=1-\frac{15}{16}
      =116=\frac{1}{16}
      =0.0625= 0.0625

Note: Here we have used the geometric series sum formula. In particular, for any a,x∈Ra,x \in \mathbb{R}, we have

a+ax+ax2+ax3+⋯+axn−1=∑k=0n−1axk=a1−xn1−x(1.3)a + ax + a x^2 + a x^3 + \cdots + a x^{n-1} = \sum_{k=0}^{n-1} ax^k= a \frac{1-x^{n}}{1-x} \hspace{30pt} (1.3)
Moreover, if ∣x∣<1|x|<1, then we have
a+ax+ax2+ax3+⋯=∑k=0∞axk=a11−x(1.4)a + ax + a x^2 + a x^3 + \cdots = \sum_{k=0}^{\infty} ax^k= a \frac{1}{1-x} \hspace{70pt} (1.4)


Finite Sample Spaces with Equally Likely Outcomes:

An important special case of discrete probability models is when we have a finite sample space SS, where each outcome is equally likely, i.e.,

S={s1,s2,⋯ ,sN}, where P(si)=P(sj) for all i,j∈{1,2,⋯ ,N}.S=\{s_1,s_2,\cdots,s_N\}, \textrm{ where } P(s_i)=P(s_j) \textrm{ for all }i,j \in \{1,2,\cdots,N\}.
Rolling a fair die is an instance of such a probability model. Since all outcomes are equally likely, we must have
P(si)=1N, for all i∈{1,2,⋯ ,N}.P(s_i)=\frac{1}{N}, \textrm{ for all }i \in \{1,2,\cdots,N\}.
In such a model, if AA is any event with cardinality ∣A∣=M|A|=M, we can write
P(A)=∑sj∈AP(sj)=∑sj∈A1N=MN=∣A∣∣S∣.P(A)=\sum_{s_j \in A} P(s_j)=\sum_{s_j \in A} \frac{1}{N}=\frac{M}{N}=\frac{|A|} {|S|}.
Thus, finding probability of AA reduces to a counting problem in which we need to count how many elements are in AA and SS.


Example

I roll a fair die twice and obtain two numbers: X1=X_1= result of the first roll, and X2=X_2= result of the second roll. Write down the sample space SS, and assuming that all outcomes are equally likely (because the die is fair), find the probability of the event AA defined as the event that X1+X2=8X_1+X_2=8.

  • Solution
    • The sample space SS can be written as

      S={S=\{(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),
      (2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),
      (3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),
      (4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),
      (5,1),(5,2),(5,3),(5,4),(5,5),(5,6),(5,1),(5,2),(5,3),(5,4),(5,5),(5,6),
      (6,1),(6,2),(6,3),(6,4),(6,5),(6,6)}(6,1),(6,2),(6,3),(6,4),(6,5),(6,6)\}.

      As we see there are ∣S∣=36|S|=36 elements in SS. To find probability of AA, all we need to do is find M=∣A∣M=|A|. In particular, AA is defined as

      AA={(X1,X2)∣X1+X2=8,X1,X2∈{1,2,⋯ ,6}}=\{(X_1,X_2) | X_1+X_2=8, X_1,X_2 \in \{1,2,\cdots,6\}\}
      ={(2,6),(3,5),(4,4),(5,3),(6,2)}=\{(2,6),(3,5),(4,4),(5,3),(6,2)\}.

      Thus, ∣A∣=5|A|=5, which means that

      P(A)=∣A∣∣S∣=536.P(A)=\frac{|A|}{|S|}=\frac{5}{36}.
      A very common mistake is not distinguishing between, say (2,6)(2,6) and (6,2)(6,2). It is important to note that these are two different outcomes: (2,6)(2,6) means that the first roll is a $2$ and the second roll is a $6$, while (6,2)(6,2) means that the first roll is a $6$ and the second roll is a $2$. Note that it is very common to write P(X1+X2=8)P(X_1+X_2=8) when referring to P(A)P(A) as defined above. In fact, X1X_1 and X2X_2 are examples of random variables that will be discussed in detail later on.


In a finite sample space SS, where all outcomes are equally likely, the probability of any event AA can be found by

P(A)=∣A∣∣S∣.P(A)=\frac{|A|}{|S|}.

The formula P(A)=∣A∣∣S∣P(A)=\frac{|A|} {|S|} suggests that it is important to be able to count elements in sets. If sets are small, this is an easy task; however, if the sets are large and defined implicitly, this could be a difficult job. That is why we discuss counting methods later on.