![]()
written by
Jan Tobochnik and Harvey Gould
technical implementer: Wolfgang Christian and Robert Hanson
Program CoinToss models the repeated tossing of a single coin or the tossing of a large number of identical coins at the same time.
The goal of this simulation is to see how the percentage of times that you obtain heads fluctuates and to obtain some feel for how close you come to the expected average after $N$ tosses of a single coin or the toss of $N$ coins at one time. Problem: Multiple tosses of a single coin Use Program CoinToss to simulate multiple tosses of a single coin. What is the correspondence between this simulation of a coin being tossed many times and the actual physical tossing of a coin? If the coin is “fair” what do you think the ratio of the number of heads to the total number of tosses will be? Do you obtain this number after 100 tosses? 10,000 tosses? The STP CoinToss program shown here was converted from Java to JavaScript by Wolfgang Christian and Robert Hanson (St. Olaf College) using the SwingJS system developed at St. Olaf College.
ComPADRE is beta testing Citation Styles!
![]() <a href="https://www.compadre.org/portal/items/detail.cfm?ID=15445">Tobochnik, Jan, and Harvey Gould. "STP CoinToss JS Simulation."</a>
![]() J. Tobochnik and H. Gould, Computer Program STP COINTOSS JS SIMULATION (2020), WWW Document, (https://www.compadre.org/stpbook/probability/ex3_1.cfm).
![]() J. Tobochnik and H. Gould, Computer Program STP COINTOSS JS SIMULATION (2020), <https://www.compadre.org/stpbook/probability/ex3_1.cfm>.
![]() Tobochnik, J., & Gould, H. (2020). STP CoinToss JS Simulation [Computer software]. Retrieved May 1, 2025, from https://www.compadre.org/stpbook/probability/ex3_1.cfm
![]() Tobochnik, Jan, and Harvey Gould. "STP CoinToss JS Simulation." https://www.compadre.org/stpbook/probability/ex3_1.cfm (accessed 1 May 2025).
![]() Tobochnik, Jan, and Harvey Gould. STP CoinToss JS Simulation. Computer software. 2020. 1 May 2025 <https://www.compadre.org/stpbook/probability/ex3_1.cfm>.
![]() @misc{
Author = "Jan Tobochnik and Harvey Gould",
Title = {STP CoinToss JS Simulation},
Month = {August},
Year = {2020}
}
![]() %A Jan Tobochnik %A Harvey Gould %T STP CoinToss JS Simulation %D August 12, 2020 %U https://www.compadre.org/stpbook/probability/ex3_1.cfm %O application/javascript ![]() %0 Computer Program %A Tobochnik, Jan %A Gould, Harvey %D August 12, 2020 %T STP CoinToss JS Simulation %8 August 12, 2020 %U https://www.compadre.org/stpbook/probability/ex3_1.cfm 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.
Citation Source Information
The AIP Style presented is based on information from the AIP Style Manual. The APA Style presented is based on information from APA Style.org: Electronic References. The Chicago Style presented is based on information from Examples of Chicago-Style Documentation. The MLA Style presented is based on information from the MLA FAQ. |