Coin Toss Simulation Task

About the Coin Toss Simulation Task

The Coin Toss Simulation task simulates the tossing of a specified number of coins. The results show the frequency and percentage of occurrences that the coin displays heads given a specified number of tosses.

Example: Probability of Outcomes for 10,000,000 Coin Tosses

To create this example:
  1. In the Tasks section, expand the Combinatorics and Probability folder and double-click Coin Toss Simulation. The user interface for the Coin Toss Simulations task opens.
  2. On the Options tab, specify these options.
    Option Name
    Value to Specify
    Number of coins
    10
    Number of tosses
    10,000,000
    Data set name
    Coins
  3. To run the task, click Submit SAS Code.
Here are the results for this example:
Tossing 10 Coins 10,000,000 Times

Setting Options

All of these options are required to run the Coin Toss Simulation task.
Option Name
Description
Observations
Number of coins
specifies the number of coins to toss.
Number of tosses
specifies the number of times to toss the coins.
Output Data Set
Data set name
specifies the name of the output data set.