Question: MATLAB .3 Geometric Random Variable 1. Download the MATLAB file coingeo.m from the course web page. The file contains a program that simulates the tossing
MATLAB




.3 Geometric Random Variable 1. Download the MATLAB file coingeo.m from the course web page. The file contains a program that simulates the tossing of a large number of coins; the program looks for the first occurrence of a head, and after many repeated trials, the program generates a histogram for the first occurrences of heads. Execute the program and enter 500 (or higher) for the number of coins, p 0.5 for the probability of heads, and 10000 for the number of trials. 2. Obtain a plot of a representative histogram and include a printout in your report. 3. In a table present comparisons between experimental results and the theoretical values given by Equa- tions (7), (8), and (9). 4. Repeat Steps 1, 2, and 3 for p 0.2. Comment on your observations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
