Code: Select all
print(f "What is the probability of unknowingly picking an orange in a basket containing an orange, apple, and pear?")
orange_outcome = 1
orange_outcome = O_F
O_F = apple_outcome = pear_outcome = 1
O_F + apple_outcome + pear_outcome = O_T
# O_T is 3
float(OF)
float(OT)
float(P_E) = O_F/O_T
percent_P_E = P_E * 100
print(f "The probability of unknowingly picking an orange is {P_E} which is {percent_PE}%")
This is the building block of probability of which most other problems are built.Read: The probability of an event is outcomes favorable divided by outcomes total.
\(P(E) = \dfrac{O_{F}}{O_{T}}\)What is the probability of unknowingly picking an orange in a basket containing an orange, apple, and pear?
\(P(orange) = \dfrac{orange}{orange, apple, pear} = \dfrac{1}{3} = 0.667 = 66.7 \%\)
