STSTEER

Bayes' Rule

The ability to update probabilistic beliefs according to Bayes' Rule: Let $A$ and $B$ be events and $P(B) \neq 0$, then $P(A|B) = P(B|A)P(A)/P(B)$.

Question template

Lisa, a tennis player, has a PB% chance of winning a match. In PBA% of games when she is playing on grass court, she wins the match. She plays on grass court PA% of the time. If Lisa just won a match, what is the probability she was playing on grass court? Give the answer as a percentage rounded to two decimal places.

Use it

from datasets import load_dataset
ds = load_dataset("narunraman/steer", "bayes_rule")