Laboratory Exercise 4.1
Two sliders allow you to choose both the number of “flips” N and the probability of Heads p(H). Each time you repeat the experiment you will generate another signal from this random process.
  1. Why is there usually a difference between the number of Heads that results and the number you expect given the p(H) that you have used?

  2. As N increases it appears that the number of Heads gets closer to the number that you expect. Why is this?

  3. What probability distribution governs the number of Heads (and thus Tails as well) that you produce? What is the average value μ and the standard deviation σ of that distribution for a given p(H) and N?

  4. Is the random number of Heads generated in each experiment really random? Explain your reasoning.

p(H):
coin flips:
  Discrete-time stochastic signal
With N = n and p(H) = p,

the estimated probability of Heads = estpHeads
Histogram of Heads & Tails