Compute and plot the Poisson probability density function for the specified range of integer values and average rate.
In the computer hard disk manufacturing process, flaws occur randomly. Assuming that on average a 4 GB hard disk has two flaws, compute the probability that a disk has no flaws.
poisspdf(0,2)
ans = 0.1353
Compute the Poisson probability density function values at each value from 0 to 10. These values correspond to the probabilities that a disk has 0, 1, 2, ..., 10 flaws.
flaws = 0:10;
y = poisspdf(flaws,2);
Plot the resulting probability values.
scatter(flaws,y,'Marker',"o")
grid on