Question: Complete the following problems using MATLAB. 1. (10 points) A patient is waiting for a suitable matching kidney donor for a transplant. If the probability
Complete the following problems using MATLAB.

1. (10 points) A patient is waiting for a suitable matching kidney donor for a transplant. If the probability that a randomly selected donor is a suitable match is p 0.1, simulate 1000 trials of the number of potential donors until a matching donor is found. Plot a histogram of the obtained sample. (10 points) Simulate 1000 trials of a geometric distribution with parameter p 0.1 using the inverse transform method. Plot a histogram 1. (10 points) A patient is waiting for a suitable matching kidney donor for a transplant. If the probability that a randomly selected donor is a suitable match is p 0.1, simulate 1000 trials of the number of potential donors until a matching donor is found. Plot a histogram of the obtained sample. (10 points) Simulate 1000 trials of a geometric distribution with parameter p 0.1 using the inverse transform method. Plot a histogram
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
