The probability distribution of the number of heads in 3 flips of a fair coin is the
Question:
The probability distribution of the number of heads in 3 flips of a fair coin is the binomial distribution with n 3 and p
1 2
, so that P{X k}
1 2
k 1
2 3k k!(3 3
!
k)!
1 2
3 for k 0, 1, 2, 3.
The mean is 1.5.
R
(a) Obtaining uniform random numbers as instructed at the beginning of the Problems section, use the inverse transformation method to generate three random observations from this distribution, and then calculate the sample average to estimate the mean.
(b) Use the method of complementary random numbers [with the same uniform random numbers as in part (a)] to estimate the mean.
R
(c) Obtaining uniform random numbers as instructed at the beginning of the Problems section, simulate repeatedly flipping a coin in order to generate three random observations from this distribution, and then calculate the sample average to estimate the mean.
(d) Repeat part
(c) with the method of complementary random numbers [with the same uniform random numbers as in part
(c)] to estimate the mean.
Step by Step Answer:
Introduction To Operations Research
ISBN: 9780072321692
7th Edition
Authors: Frederick S. Hillier, Gerald J. Lieberman