Code Tag: Expected Value

RDR2 Cigarette Cards Problem

So I’m working on an achievement right now in the game where you have to complete one set of collectibles. Collectibles in this case refers to cigarette cards, each time you get a pack of premium cigarettes you get one random card. There are 12 sets of cards, each set contains 12 unique cards (144 …

Mac loves ice cream

Our friend Mac likes to eat ice-cream so much that he started to work in an ice-cream parlor. Satisfied by his work, the ice-cream owner gave him 10 different kind of ice-cream each 2 in quantity(20 ice-creams in total). Mac have gone crazy so much that he brought a fair 10 sided dice and devised …

Should You Stop Rolling?

You are playing a game with a fair six-sided die. If you roll a number greater than 1, then you win that many gold coins. For example, if you roll a 5, then you win 5 gold coins. If you roll a 1, then you lose half of your money. You start this dice game …

Baseball Division Champs

Original Question: Assume you have a sport (let’s call it “baseball”) in which each team plays 162 games in a season. Assume you have a division of five teams (call it the “AL East”) where each team is of exact equal ability. Specifically, each team has a 50 percent chance of winning each game. What is …