Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2.1 Probability calculation for Benoulli trials. (a) Write a MATLAB function sub

ID: 3058770 • Letter: 2

Question

2.1 Probability calculation for Benoulli trials. (a) Write a MATLAB function subroutine bn exact . m, with the top line P = bn exact n N (p, N, k), implementing (2.27) to calculate P = P{A occurs exactly k times i trials), 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 exact.m to solve part (a) of Example 2.23. Make sure the results are correct. Compare the results with those obtained using the companion software P&R; (c) Find P for p = 0.36643, N = 120, k = 47.

Explanation / Answer

2.1 Probability calculation for Benoulli trials. (a) Write a MATLAB function subroutine bn exact . m, with the top line P = bn exact n N (p, N, k), implementing (2.27) to calculate P = P{A occurs exactly k times i trials), 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 exact.m to solve part (a) of Example 2.23. Make sure the results are correct. Compare the results with those obtained using the companion software P&R; (c) Find P for p = 0.36643, N = 120, k = 47.