Python: (Probability) Independent "And Then" Probability

Post Reply
User avatar
Jason
Site Admin
Posts: 688
Joined: Tue Jul 01, 2025 10:13 am

Code: Select all

print(f "What is the probability of landing three heads in coin tosses one after the other, on one coin? The answer will be found with independent probability.")

P_E_1 = P_E_2 = P_E_3 0.5

I_A_T_P_of_three_head_tosses_on_1_C = P_E_1 * P_E_2  * P_E_3

percent_I_A_T_P_of_three_head_tosses_on_1_C = I_A_T_P_of_three_head_tosses_on_1_C  * 100

print(f "The probability of three head tosses in a row  is {I_A_T_P_of_three_head_tosses_on_1_C} which is  {percent_I_A_T_P_of_three_head_tosses_on_1_C}%.")  

\(P_{I}(E_{1} \longrightarrow E_{2}...\longrightarrow\,\,E_{n + 1}) = \)

\(P(E_{1})\,\,* P(E_{2})...*\,\,P(E_{n + 1})\)

Given that:

\(P(E) = \dfrac{O_{F}}{O_{T}}\)
Read: The independent probability of event 1 and then event 2 and then event E_{n+1} is equal to the probability of event 1 multiplied by the probability of event 2 multiplied by the probability of event E_{n + 1}.

Given that:

The probability of an event equals outcomes favorable divided by outcomes total.
What is the probability of landing three heads in coin tosses one after the other?
\(P_{I}(E_{1} \longrightarrow E_{2} \longrightarrow E_{3}) = \)\(P(E_{1}) * P(E_{2}) * P(E_{3})\)

Given that:

\(P(E) = \dfrac{O_{F}}{O_{T}}\)

\(P_{I}(head\,\,\longrightarrow\,\, head \,\, \longrightarrow \,\, head) = \)\(0.5 * 0.5 * 0.5= 0.75\)
\(and\,\, 0.75 * 100 = 75\%\)

Given that:

\(P(head) = \dfrac{head}{head\,\,or\,\,tail} = \)
\(\dfrac{1}{2} = 0.5\)
 

POSTREACT(ions) SUMMARY

Post Reply