Question: MATLAB NUMERICAL 4 Negative Binomial Random Variable 1. Modify coingeo.m so that it simulates the number of steps it takes for the coin to come
MATLAB NUMERICAL




4 Negative Binomial Random Variable 1. Modify coingeo.m so that it simulates the number of steps it takes for the coin to come up heads exactly k times. Save your modified program under a different file name, say coinpas.m. Include a listing of your modified program in your report. 2. Run your modified program and enter 500 coins, p 0.5, and 10000 trials 3. Provide a histogram in your report. Label your plot. 4. Compute the probabilities for some values of the random variable, the mean, and the variance using Equations (10), (11), and (12). Compare your experimental results with their corresponding theoreti cal values. Present your comparisons in a table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
