The probability of an event or element in a sample space is written as $P(A)$, where $A$ is the event or element in the sample space. Answer the following problems symbolically and simplified. Each problem is worth 1 point.
[2 points] Our sample space contains three elements: $Q = \{A, B, C, D\}$. What is the probability of observing $P(A \,\textrm{OR} \,\textrm{B}\, \textrm{OR}\, C, \textrm{OR} D)$
[2 points] What has to be true of the two elements that are part of an OR statement?
[2 points] Consider the sample space of months in a year and assume each month has equal probability. If event $E$ is elements $\{\textrm{September}, \textrm{October}, \textrm{December}\}$, then what is the probability of the event $E$, $P(E)$?
[2 points] What is the probability of observing September and then November?
[2 points] What is the probability of not event $E$ from the previous question?
[4 points] State the number of observations/samples for the probabilities specified in questions 1.1-1.5.
You are rolling a die with 8 sides. Event $A$ is that you roll a number less than 4. Event $B$ is that you roll a $6$. Event $C$ is rolling a number greater than 2. Answer these problems using python code. Each problem is worth 1 point.
In [1]:
3 / 8
Out[1]:
In [2]:
3 / 8 + 6 / 8 - 1/8
Out[2]:
In [3]:
(3 / 8) * (6 / 8) + (6 / 8) * (3 / 8)
Out[3]:
If you are careful about this, you'll notice that we are overcounting. Take $AC$ to mean the permutation of rolling $A$ and then $C$. We are asked about $P(AC\,\textrm{OR}\,CA)$. That is:
$$ P(AC\,\textrm{OR}\,CA) = P(AC) + P(CA) - P(AC\cap CA) $$What does $P(AC\cap CA)$ mean? It means is there a set of rolls that results in both $AC$ and $CA$? There is such a roll, it is $3,3$ which makes both A/C happen simultaneously.
In [7]:
3/8*6/8 + 6/8 * 3/8 - 1/8 * 1/8
Out[7]:
In [5]:
1/8
Out[5]:
In [6]:
(3 / 8) * ( 6 / 8)
Out[6]:
Answers these problems symbolically
Each problem is worth 4 points