STA102 · Probability simulations

Conditioning by throwing runs away

P(A | B) means: among the occasions when B happens, how often does A happen too? A simulation can do that literally. Run the experiment, throw away every run where B is false, and count A among the survivors.

From the slides: Probability and what happens when you learn something and Why should anyone care about chance?.

What to notice