31. SIMULATING BINOMIAL EXPERIMENT

Download Report

Transcript 31. SIMULATING BINOMIAL EXPERIMENT

Simulating Binomial
Distribution
...& Introduction to Geometric
Distribution
Simulating Binomial Distribution
Recall Ryan’s free throw percent was 75%. In a particular
game, he had 12 attempts and he made only 7. Now we will
use the calculator to simulate 12 attempted shots and we will
count the number of basket he makes.
Syntax: Math>prb>randbin(1,.75,12)
Continue to press enter 20 times to simulate 10 games and
list the number of times 1 appeared in your simulation
Compute for the probability of your simulated result by adding
the number of times he got 1’s out of 20 simulation: (result
may vary)
To further automate your
simulation...
Syntax: Math > prb > randbin( > 1,.75,12)
> sto > 2nd > 1 > alpha > . > 2nd > Stat >
math > 5
randBin(1,.75,12)➙L1:sum(L1)
ess enter 10 times to simulate the eve
Find the probability of the event. (answer
may vary)
Compare your simulated probability to the
real prb.
Practic
e
Kayla read that 1 out of 4 eggs contains salmonella
bacteria. So she never uses more than 3 eggs in
cooking. Assume that eggs do or don’t contain
salmonella independently of each other.
A.) What is the distribution of the number of
contaminated eggs when Kayla uses 3 eggs that
are chosen in random?
B.) Calculate the exact probability that at least one of
Kayla’s eggs contains salmonella. Compare this
result with your simulation in (B)
Answers:
A.) n=3,
b(3,0.25)
p= .25
B.) P(X≥1)= 1-P(X≥1)
= 1-binomcdf(3,0.25,0)
=.5781