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

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.
Show graph table
displays the results in a graph format. You can specify whether to include grid lines, gradient fill, and data skin on the graph.
Note: This option is available only if the number of coins is 30 or less.