Question: Write a MATLAB program to verity your answer in Exercise 2. That is, randomly draw two letters without replacement and check whether one is a

Write a MATLAB program to verity your answer in Exercise 2. That is, randomly draw two letters without replacement and check whether one is a vowel and the other is a consonant. Compute the probability by repeating the experiment for N times, where N is an integer selected from the set Nset = round(logspace(2, 5, 100)) Overlay and plot the following results in one single figure: The true probability you find in Exercise 2. Call this prob_true. The estimated probability at each N. Call this prob_est. prob_true + prob_std./ squareroot (Nset) and prob.true - prob_std./ squareroot (Nset), where prob_std is the standard deviation of the estimated probability. What is the minimum N (a rough estimate) that can ensure your estimated probability is within 5% of the true probability? Submit your code, your plot, and the minimum N. You may use for-loop in this exercise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
