Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Experiments in tossing a coin with Clojure

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 clojure
Octocat-spinner-32 clojurescript
Octocat-spinner-32 dart
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
README.md

Coin tossing simulation

In his book The Black Swan, Nassim Nicholas Taleb describes a simple way to derive a Gaussian distribution curve. Gamble repeatedly on the outcome of a coin toss. If it's heads, you win a dollar. If it's tails, you lose a dollar. Repeat the experiment for, say, 20 tosses, and record your net winnings. Run the experiment repeatedly, and then plot the frequency of each amount: you get a Gaussian "bell curve".

This program runs the game Taleb describes.

  • clojure/ -- a simple Clojure command line implementation
  • clojurescript/ -- a web based demonstration in ClojureScript
  • dart/ -- a web based demonstration in Dart

About the author

Edd Dumbill enjoys tinkering. Connect with Edd via Google+.

Further reading

http://www.mathamazement.com/Lessons/Pre-Calculus/10_Sequences-Induction-and-Probability/probability.html

http://en.wikipedia.org/wiki/The_Black_Swan_(Taleb_book)

Something went wrong with that request. Please try again.