Probability
Warm-upHumanA coin is tossed and a die is rolled. How many outcomes are in the sample space? (For example, (H, 3) is one outcome.)
A coin is tossed and a die is rolled. How many outcomes are in the sample space? (For example, (H, 3) is one outcome.)
Two fair dice are rolled. What is the probability that the sum is ?
A die is rolled three times. What is the probability of getting at least one six?
A number is chosen at random from (all equally likely). What is the probability that it is a multiple of or a multiple of ?
A fair coin has landed tails times in a row. What is the probability that the next toss is heads?
In 1754 d'Alembert argued: “Toss a coin up to twice, stopping when heads appears. The possible results are H, TH and TT; two of the three give a head, so the probability of getting a head is .” What is wrong?
Neema rolls a fair die times and gets sixes. Which statements are true? (Choose all that apply.)
Three dice are rolled. In how many of the ordered outcomes is the sum equal to ?
In the Lean file, prob S A is the probability of the event A in the list of outcomes S. Which statement is the complement rule, correctly stated?
Write prob_sum(dice, total) that returns the exact probability (as a Fraction) that dice fair dice add up to total. List every ordered outcome with itertools.product(range(1, 7), repeat=dice) and count. Then check Galileo: is a total of more likely than with three dice?