Aan de slagGa gratis aan de slag

Voters

Of the total population of three states X, Y, and Z, 43% are from state X, 25% are from state Y, and 32% are from state Z. A poll is taken and the result is the following:

  • 53% of the voters support John Doe in state X.
  • 67% of the voters support John Doe in state Y.
  • 32% of the voters support John Doe in state Z.

Given that a voter supports John Doe, answer the following questions.

Deze oefening maakt deel uit van de cursus

Foundations of Probability in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Individual probabilities
P_X = ____

# Conditional probabilities
P_Support_g_X = ____

# Total probability calculation
P_X_n_Support = ____ * ____
print(P_X_n_Support)
Code bewerken en uitvoeren