Using MATLAB, generate a random number uniformly between 0 and 1 and round off to 0 or 1, which ever is the nearest. Note the frequency of each.
Flip a fair coin a lot of times and let heads be 1 and tails be 0. Denote frequency of each.
In the above two experiments, ideally when experiment is repeated a lot of times, frequencies should converge to 0.5(weak law of large numbers). So we can study the rate of convergence in real life random variables and computer generated random variables.
Get Answers For Free
Most questions answered within 1 hours.