It is a flexible computer language that facilitates statistical computations. Furthermore, S-plus programs can be developed in an interactive environment. Another valuable aspect of S-plus is its ability to create excellent graphical displays. Type the following commands into a script file and run them. For each distribution there is a p function that calculates c.d.f.
Simulation is a way to approximate real-world processes.
The key to simulation techniques is a sequence of random numbers. Some examples of simulation follow. There are two possible outcomes. Let x be the number of heads in n flips of a fair coin. There are six possible outcomes.