Expected Value vs. Trial Length

Get Adobe Flash player

CAUTION! May crash if run in low-configuration environment. Please refresh the page and try again with lower iteration values if encountered such problem.

This application is designed and developed by Saumitra Chakravarty under GNU General Public License. May be used or distributed for non-commercial educational purposes only.


May not play if you do not have the latest Flash Player installed. In case of Android devices, may require Dolphin Jetpack and Dolphin Browser along with Flash Player Plugin to play this application.

What is this thing?

If you look for a given sequence in a randomly arranged set of characters where repitition is allowed, like in a series of cointoss (H, T) or DNA bases (A, T, G, C), how many characters must you go through before you get your desired sequence? This application tries to determine the answer to the question statistically by means of repeated random trials.

This flash web application is cited in the following work(s) by Saumitra Chakravarty:

  1. Sombhoboto (BOOK) > Section 2.29