The probability of an event or sample is written as $P(A)$, where $A$ is the event or sample. Answer the following problems symbolically and simplified. Each problem is worth 1 point.
If we observe an event, what is the probability that the event is $A$ or $B$ assuming that $A$ and $B$ are mutually exclusive?
If we observe a sample, what is the probability of observing $A$ or $B$ if they are the only two possible samples?
What is the probability of observing samples or events $A$ and $B$ if they are independent?
Question 1.2 and question 1.3 were ambiguous about the number of observations. Specifically how many observations occur in each question?
You are rolling a die with 6 sides. Event $A$ is that you roll a number greater than 3. Event $B$ is that you roll a $3$. Event $C$ rolling a number less than 3. Answer these problems using python code. Make sure your numbers contain decimals (write 1.0
instead of 1
) so python knows you want to have decimals. Each problem is worth 1 point.
In [1]:
#Answer to 2.1
3.0 / 6.0
Out[1]:
In [2]:
#Answer to 2.2
3.0/6.0 + 2.0/6.0
Out[2]:
In [3]:
#Answer to 2.3
3.0 / 6.0
Out[3]:
In [4]:
#Answer to 2.4
(3.0 / 6.0) * (1.0 / 6.0)
Out[4]:
In [6]:
#Answer to 2.5
(3.0 / 6.0) * (1.0 / 6.0) + (3.0 / 6.0) * (1.0 / 6.0)
Out[6]:
Answers these problems symbolically
Each problem is worth 2 points
In [ ]: