STAT 400

Fri. January 31st, 2020


Applications of the Properties of Probability

Ex. Suppose we have a random number generator. Each time it generates an integer between 11 and NN (inclusive) with equal probability, that is P({i})=1NP(\{i\})=\frac{1}{N} for all integers ii between 11 and NN.
Suppose N=100N=100.

  1. What is the probability that it generates an even number?
    A={even}={2,4,6...100}P(A)=50100=12\begin{gathered} A=\{\text{even}\}=\{2,4,6...100\}\\ P(A)=\frac{50}{100}=\frac{1}{2} \end{gathered}

  2. What is the probability that it generates a multiple of 33?
    B={multiple of 3}={3,6,9,...99}P(B)=33100\begin{gathered} B=\{\text{multiple of 3}\}=\{3,6,9,...99\}\\ P(B)=\frac{33}{100} \end{gathered}

  3. What is the probability that it generates a number that’s even AND a multiple of 33?
    AB={multiple of 6}={6,12,18...96}P(AB)=16100\begin{gathered} A\cap B=\{\text{multiple of 6}\}=\{6,12,18...96\}\\ P(A\cap B)=\frac{16}{100} \end{gathered}

  4. What is the probability that it generates a number that’s even OR a multiple of 33? (Note that we mean inclusive OR here)
    AB={2,3,4,6...99,100}P(AB)=P(A)+P(B)P(AB)=50100+3310016100=67100.\begin{gathered} A\cup B=\{2,3,4,6...99,100\}\\ P(A\cup B)=P(A)+P(B)-P(A\cap B)=\frac{50}{100}+\frac{33}{100}-\frac{16}{100}=\frac{67}{100}. \end{gathered}

  5. What is the probability that it generates a number that’s even, a multiple of 33, OR a multiple of 55?

C={multiple of 5}P(ABC)=P(A)+P(B)+P(C)P(AB)P(AC)P(BC)+P(ABC)=50100+33100+2010016100101006100+3100=64100.\begin{gathered} C=\{\text{multiple of 5}\}\\ P(A\cup B\cup C)=P(A)+P(B)+P(C)-P(A\cap B)-P(A\cap C)-P(B\cap C)+P(A\cap B\cap C)\\ =\frac{50}{100}+\frac{33}{100}+\frac{20}{100}-\frac{16}{100}-\frac{10}{100}-\frac{6}{100}+\frac{3}{100}\\ =\frac{64}{100}. \end{gathered}


Counting Techniques

Consider a sample space SS that contains finitely many outcomes.
Then for an event A={x1,x2...xn}A=\{x_1,x_2...x_n\} in SS,
P(A)=i=1nP(Ei)P(A)=\sum_{i=1}^n P(E_i)
where Ei={xi}E_i=\{x_i\} is a simple event.

Ex. Consider a train with five cars, labeled 11 through 55.
A passenger is twice as likely to enter 33 as they are to enter 22 or 44, and is also twice as likely to enter 22 or 44 as they are to enter 11 or 55. What is the probability for each car that a passenger will enter?
P({i})=pip3=2p2=2p4p2=p4=2p1=2p5p1=p5=xp2=p4=2x, p3=4x1=P(S)=p1+p2+p3+p4+p5=x+2x+4x+2x+x1=10xx=110\begin{gathered} P(\{i\})=p_i\\ p_3=2p_2=2p_4\\ p_2=p_4=2p_1=2p_5\\ p_1=p_5=x \rightarrow p_2=p_4=2x,\ p_3=4x\\\\ 1=P(S)=p_1+p_2+p_3+p_4+p_5\\ =x+2x+4x+2x+x\rightarrow 1=10x \rightarrow x=\frac{1}{10} \end{gathered}
Now we can calculate the probability of a passenger entering each individual car using the value of xx.

Equally Likely Outcomes

If we assume the probability of each outcome to be the same, i.e. there is a pp such that P(Ei)=pP(E_i)=p for all simple events EiE_i, then p=1Np=\frac{1}{N} and P(A)=np=nN,P(A)=np=\frac{n}{N}, where nn is the number of elements in AA and NN is the number of elements in SS.


Tuples

Definition. An ordered sequence of kk elements is called a k-tuple. (2-tuples are also called pairs, and 3-tuples may be called triplets.) They’re usually written with parentheses around the elements, i.e. (Heads,Tails,Tails)(\text{Heads}, \text{Tails}, \text{Tails}).

Whenever kk distinguishable outcomes occur in an experiment, we can represent the elements in the sample space of that experiment as kk-tuples.

For example, if we flipped a coin twice, we could represent each possible event from this experiment as a pair, where the first element is the result of the first flip and the second element is the result of the second flip. However, if we flipped two coins simultaneously, the two flips are indistinguishable, so we can’t use tuples to represent the events.

Product Rule for Tuples

Consider a sample space SS whose elements are kk-tuples. Let nin_i be the number of ways of selecting the iith element of each tuple, where 1ik1\le i\le k. Then
N(S)=n1n2...nk=i=1kni,N(S)=n_1n_2...n_k=\prod_{i=1}^k n_i, where N(S)N(S) denotes the number of elements in SS.
We can use this rule to quickly calculate the number of elements in a sample space containing tuples.