Question: 2.2 Probability calculation for Bernoulli trials. Use only MATLAB (a) Write a MATLAB function subroutine bn-atleast. m, with the top line P = bn atleast(p,

2.2 Probability calculation for Bernoulli trials. Use only MATLAB (a) Write a MATLAB function subroutine bn-atleast. m, with the top line P = bn atleast(p, N, k), calculating P = P(A occurs at least k times in N trials) based on subroutine bn exact . m, where p = P{A} is the probability of event A on any single trial; N is the total number of trials; and k is the number of occurrences of event A. (b) Use bn atleast.m to solve parts (b) and (c) of Example 2.23, and problems 2.42 and 2.43. Make sure the results are correct (c) Find P for p = 0.36643, N = 120, k = 47 (d) Use the companion software P&R to find P and compare the result with the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
