Dice rolling: experiment

A very interesting math problem with counterintuive emerged the web yesterday.

You throw a dice until you get 6. What is the expected number of throws (including the throw giving 6) conditioned on the event that all throws gave even numbers?  Original post

 At first I gave an incorrect answer, but then, after clearly figuring out what exactly happens if we roll an odd number, managed to understand why the correct number is correct.

So, I made this script to let you see what exactly happens with the sequence length expectation as we roll the die again and again. You can roll a die once or you can launch a whole experiment, which will end when you get 6.

 And in the meanwhile I'll get back to the development of my steampunk game

 

2 comments:

  1. Really stick with absolutely Biogenic Xr herbal methods like sporting activities, jelqing and other extensively practiced paths to a extra powerful .
    http://www.healthprograme.com/biogenic-xr-reviews/

    ReplyDelete
  2. Cla Safflower Oil In the event that you are an occupant from Australia you can get some weight reduction rebates. Snap discussion on the landing page to get to this one.
    http://www.drozhealthblog.com/cla-safflower-oil/

    ReplyDelete

Categories

action (3) advice (2) arcade (4) art (3) attention (1) board (1) cards (1) civilization (2) collection (3) conference (1) contest (3) cooperation (1) defense (1) development (10) educational (1) experiment (1) fast (2) game design (2) gamedev (7) games (1) gif (7) history (1) idle (2) jam (2) list (1) logics (2) math (1) mobile (3) monetization (1) multiplayer (1) notebook (1) numbers (2) paint (1) physics (1) process (10) puzzle (5) quiz (2) reaction (1) relax (1) released game (15) review (1) screenshotsaturday (4) script (1) SDK (1) series (1) shooter (1) simultor (1) skill (4) snow (1) speed (1) statistics (1) steampunk (4) strategy (10) testing (1) think (1) timelapse (1) turn-based (7) tutorial (1) update (3) video (4) web (2) winter (1)