In this short course you find the probability of an event by counting, check it with a simulation, and find the chance of two things happening together. You learn why a short run of tosses can mislead and a long run does not. The code boxes only need Run and a few changed numbers.
3 lessons, about 1 h 30 min3 simulations10 problems6 practice questionsPython in every lesson
A probability is a number from 0 to 1 that says how likely an event is: 0 is impossible, 1 is certain. When all the outcomes are equally likely, the probability is the number of outcomes we want divided by the number of all the outcomes. The chance that an event does not happen is 1 minus its probability.
We can find a probability by doing an experiment many times. The relative frequency, the number of successes divided by the number of tries, jumps about in a short run and settles near the true probability in a long run. A fair coin that lands heads 5 times in a row is still 50 percent likely to land heads next time, because it has no memory.
To find the chance of two events together, list all the equally likely pairs and count the ones we want. Two dice have 36 pairs, and six of them make a sum of 7. For two coins the pairs are HH, HT, TH and TT. For at least one, find the chance of none and take it from 1. Taking a second marble without putting the first back changes the chances.
Log in to join the discussion.
Loading…