Mathematics, Probability, Python, Programming, Computer Science.
mass function # Plot the PMF fig, ax = plt.subplots() ax.plot(x, pmf, 'bo', ms=8) # Plot the PMF as blue circles ax.vlines(x, 0, pmf, colors='black', lw=5) # Draw vertical lines connecting the circles ax.set_xlabel('Number of Cases') ax.set_ylabel('Probability') ax.set_title('Poisson Distribution: