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

 

Categories

action (3) advice (2) alchemy (1) amazon (2) android (4) announcement (6) arcade (5) art (4) attention (1) avoider (1) beta (1) board (1) bonus (2) building (3) cards (1) civilization (3) clicker (1) codes (8) collection (3) community (4) conference (1) contest (4) cooperation (1) defense (1) development (11) easter (1) educational (1) evolution (2) experiment (5) farm (4) fast (2) forum (1) game design (2) gamedev (7) games (4) gif (10) guide (1) history (1) HTML5 (3) idle (22) incremental (9) ios (4) jam (2) list (2) logics (2) machine (1) machines (1) maps (1) math (1) mine (2) mobile (6) modding (1) monetization (1) multiplayer (1) notebook (1) numbers (2) paint (1) physics (1) press (1) process (10) puzzle (5) quiz (2) reaction (1) relax (1) release (7) released game (22) review (1) screenshotsaturday (10) script (1) SDK (1) series (1) shooter (1) simultor (1) skill (4) snow (2) speed (1) spinner (2) statistics (1) steam (1) steampunk (17) strategy (14) stream (2) tbs (2) teaser (9) testing (4) think (1) timelapse (1) tower (2) trailer (1) translation (1) turn-based (7) tutorial (4) tycoon (2) update (23) video (31) walkthrough (1) web (2) winter (1) work in progress (2)