Virtual Laboratories > Bernoulli Trials > 1 2 3 4 5 6 [7]
It is very easy to simulate a Bernoulli trials process with random numbers.
1. Let p
be in [0, 1] and let U1, U2, U3,
... be a sequence of independent random variables, each uniformly distributed on (0, 1).
Show that the following sequence is a Bernoulli trials process with parameter p:
Ij = 1 if Uj p, Ij = 0 if Uj > p
The binomial and negative binomial experiments can now be simulated directly from the Bernoulli trials sequence, since these variables are functions of the Bernoulli trials sequence.
Bernoulli trials appear in many chapters in this project, further evidence of the importance of the model.
The Bernoulli trials model is discussed in virtually every book on probability. In particular see
1.8. Yes, probably
so. The outcomes are correct and incorrect and p = 1 / 4.
1.9. Yes,
approximately. The outcomes are prefer A and do not prefer A; p
is the proportion of voters in the entire district who prefer A.
1.10. Yes, the
outcomes are red and black, and p = 18 / 38.
1.11. No, probably
not. The games are almost certainly dependent, and the win probably depends on who
is serving and thus is not constant from game to game.
1.17.
2.5.
f(0) = 0.4019, f(1) = 0.4019, f(2) = 0.1608, f(3) =
0.0322, f(4) = 0.0032, f(5) = 0.0001.
2.6.
0.07813
2.11.
2.12.
2.23. X =
Number of failures. E(X) = 1, sd(X) = 0.9899
2.24.
X = Number of aces. E(X) = 166.67, sd(X) = 11.79
2.31. Xn
= Number of heads in the first n tosses. P(X20 =
j | X100 = 30) = C(20, j) C(80, 30
- j) / C(100, 30).
2.37. X =
Number who prefer A
2.44.
3.13. R:
Reject null hypothesis that the coin is fair.
3.15. No: 0.0262
4.5.
0.482
4.10.
X = # launches. E(X) = 50, sd(X) = 49.497.
4.12. 0.4
4.18.
Geometric with p = 18 / 38.
4.22.
$1000.
4.27.
5.6.
0.579
5.13.
X = launch number of 4'th failure. E(X) = 200, sd(X)
= 98.995
5.17.
X = number of tosses needed to get 50 heads.
5.30.
5.36.
A gets $72.56, B gets $27.44
6.11.
6.12.
f(u, v, w, x, y, z) = C(4; u,
v, w, x, y, z) (1/4)u + z
(1/8)v + w + x+ y
for u, v, w, x, y, z nonnegative
integers that sum to 4
6.14.