Simulating Data from a Binomial Distribution Using JMP
Suppose we want to simulate results from a binomial distribution with a specified number of trials (n) and probability
of success (p).
Think back to the stoplight data. In the first week (MF), how many green lights do we observe? How about the next
week? If we want to simulate a month’s worth, or six months worth or years worth of weekly green light data, how
would we do it? For this problem, we know n (5) and we know p (.40). We can set up a worksheet in JMP that does
this for us.
Note: See simulatebin.jmp on Scholar for the finished file.
Directions:
(1) Open JMP and select New Data Table.
(2) Double click on the header for Column 1. Name this something meaningful, like GreenLights.
(3) Double click on the worksheet header (Untitled) and name it something meaningful, like
SimulationWksht.
(4) Click on the red triangle next to the worksheet title, SimulationWksht.
Select New Property/Script.
(5) Name the script Refresh. In the script area, type GreenLights<<eval formula
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview.
Sign up
to
access the rest of the document.
 '07
 MQLemons
 Binomial, Probability, Cumulative distribution function, Double click, Red triangle, GreenLights

Click to edit the document details