Question: Need help with Python question please Question 1: In Probability and statistics, the Poisson distribution is a discrete probability distribution that expresses the probability of
Need help with Python question please

Question 1: In Probability and statistics, the Poisson distribution is a discrete probability distribution that expresses the probability of a given number of events occurring in a fixed interval of time or space. For instance, the number of pieces of mail received in a day obeys a Poisson distribution. Other examples that may follow a Poisson include the number of phone calls received by a call center per hour and the number of decay events per second from a radioactive source. Mathematically, the probability mass function of the Poisson distribution is defined as: P(x = k events in interval) = en Write a function poisson_pmf (x, lambda) to compute the pmf of the Poisson distribution. Plot the Poisson distribution pmf in the range(0, 40) with the following lambda: 1, 4, 10, 20, In [ ]: import math import numpy as np def poisson_pmf(x, Imbd): #############YOUR CODE HERE################ ans- return ans In [ ]: import matplotlib.pyplot as plt %matplotlib inline #############YOUR CODE HERE################ # plot the Poisson PMF #****************
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
