# Statistical Simulators

The following statistical simulation programs are needed for lessons within the statistics unit. Each program has an online version and also a link to code for the Texas Instruments 83 and 84 lines. Both the calculators and the web-based simulators work well for the lessons, but the web-based simulators are much faster.

Sample Normal Distribution (NORMSAMP): In this simulation, the user specifies the mean and standard deviation for a normally distributed population. Random samples of any size are then generated a user specified number of times and a distribution of the sample means and sample standard deviations are produced. This simulation can be used to establish how likely a particular sample mean would be from a given population.

Sample Normal Distribution Web Based App

Normal Sample Calculator Code

Sample Proportion Simulation (PSIMUL): In this simulation, the user specifies a population proportion value ranging from 0 to 1 (population p). Random samples of any size are then generated a user specified number of times and the distribution of sample proportion (p) values is produced. This simulation can be used to establish how likely a sample p value (p hat) would be given a population with a different p.

Sample Proportion Simulation Web Based App

Sample Proportion Simulation Calculator Code

Difference of Sample Means (MEANCOMP): In this simulation, the user inputs data sets from two treatments. The data sets are scrambled to produced random groupings of outcomes a user specified number of times. For each random grouping, a difference of treatment means is calculated. A final distribution of these differences is produced. This simulation can be used to establish how likely an observed difference in treatment means would be by chance assignment alone. This is equivalent to determining how likely the observed difference is due to the treatments.

Difference of Sample Means Web Based App

Difference in Sample Means Calculator Code