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

question 5.11 This probability distribution is known as the Poisson distribution

ID: 3624460 • Letter: Q

Question

question 5.11

This probability distribution is known as the Poisson distribution; it occur in many applications in science and engineering. For example, the number of calls k to a telephone switchboard in lime interval r. the number of bacteria k in a specified volume t of liquid, and the number of failures k of a complicated system in time interval t all have Poisson distributions. Write a function to evaluate the Poisson distribution for any k,t, and gamma Test your function by calculating the probability of 0, 1,2,........ 5 cars passing a particular point on a highway in 1 minute, given that gamma is 1.6 per minute for that highway. Plot the Poisson distribution for t = 1 and gamma = 1.6 Recursion and the Factorial Function A function is said to be recursive if the function calls itself. MATLAB functions arc designed to allow recursive operation. To test this feature, write a MATLAB function to evaluate the factorial function, which is defined as follows: where N is a positive integer. The function should check to make sure that there is a single argument N, and that N is a nonnegative integer. If it is not, generate an error using the error function. If the input argument is a nonnegative integer, the function should evaluate M using Equation (15-11). Binomial Coefficients The probability that exactly k successes will occur out of a series of n independent yes/no trials, each of which has a probability of success p, is given by Equation(5-12):

Explanation / Answer

function result = factorial ( N ) { if(length(N)!=1) error ('argument should be single'); return; end if(N