Matlab question:
A person has just installed ‘N’ light bulbs in his/her new home.Suppose that each light bulb has a probability ‘p’ of functioningmore than four months.
a. Write a function named ‘lightPCdf’ which takes N and p asinputs and returns the outputs [‘pdfX’, ‘cdfX’, ‘X’] where ‘pdfX’and ‘cdfX’ are respectively the probability distribution functionand the cumulative distribution function of ‘X’ which is the numberof light bulbs functioning more than four months.
b. Write a script named ‘lightBulb1’ to:
• Initialize N = 35, p=0.35
• Call the function ‘lightPCdf ‘
• Calculate the probability that at most ten of thesefunctioning more than four months and
PayPal Gateway not configured
PayPal Gateway not configured