Select a random sample of size 15 from a large population where 60%,
or p = 0.6, of the population has a property (like believes milk
costs too much).
Define a random variable X to be equal to
the number out of 15 that believe milk costs too much.
OR
Repeat a simple experiment a fixed number of times, say N = 24 times.
Designate some event, say A, for this experiment to be a success.
Define a random variable X to be the number of trials (out of N)
of your experiment that end with a success.
The purpose of today's activity is to simulate outcomes from this type of situation, estimate probabilities using our simulation and calculate statistics based on our simulation. Random variables like those above are called Binomial Random Variables.
Read the handout "Love is not blind, and study finds it touching".
We can define our experiment to be one partner trying to locate their
lover, amongst three persons. A success in our experiment is defined as
one lover correctly locating their partner. We repeat this experiment N
= 72 times. Our trials (repetitions of the experiment) are independent,
since one partner finding (or missing) their lover has no effect on the
next couple. If the partners simply guess which of the three persons is
their mate, they would be correct p = 1 / 3 of the time, or about p = 0.3333.
Let's simulate this situation. We want to repeat an experiment N = 72 times
where each trial results in a success with probability p = 0.333. Let's
define X to be the number, out of 72, that properly select their partner,
and collect a large number of simulated values of the variable X. The command
randBin(72, 0.333) will (after a while) spit out a single
simulated value of the variable X.
| X1 | X2 | X3 | X4 | X5 | X6 | X7 | X8 | X9 | X10 | X11 | X12 |