The EJS Coin Flip Equilibrium model simulates a a simple system of N coins arranged in ordered rows. The coins all begin heads up. At each step of the simulation one or more coins are chosen at random and flipped over. Separate windows show the set of coins, a plot of the number of heads/tails after each step, the entropy of the system after each step, and a histogram of the occurrences of a given number of heads. The user can change the number of coins and the number of coins flipped at each step of the simulation. A user can modify this simulation if EJS is installed locally by right-clicking within the plot and selecting "Open Ejs Model" from the pop-up menu item.
EJS Coin Flip Equilibrium model was created using the Easy Java Simulations (EJS) modeling tool. It is distributed as a ready-to-run (compiled) Java archive. Double clicking the ejs_CoinFlip.jar file will run the program if Java is installed. EJS is a part of the Open Source Physics Project and is designed to make it easier to access, modify, and generate computer models. Additional EJS models are available. They can be found by searching ComPADRE for Open Source Physics, OSP, or EJS.
Please note that this resource requires
at least version 1.5 of Java (JRE).
Coin Flip Equilibrium Source Code
The source code zip archive contains an XML representation of the EJS Coin Flip Equilibrium Model. Unzip this archive in your EJS workspace to compile and run this model using EJS. download 74kb .zip
Published: June 14, 2010
Rights: This material is released under the GNU General Public License Version 2.
previous versions
Timberlake, T. (2010). Coin Flip Equilibrium [Computer software]. Retrieved November 6, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=10090&DocID=1700
%0 Computer Program %A Timberlake, Todd %D June 14, 2010 %T Coin Flip Equilibrium %8 June 14, 2010 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=10090&DocID=1700
Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.