File:Poisson pmf.svg
Original file (SVG file, nominally 330 × 255 pixels, file size: 86 KB)
Captions
Captions
Summary[edit]
| DescriptionPoisson pmf.svg |
English: Plot of the probability mass function for the Poisson distribution. |
| Date | |
| Source | Own work |
| Author | Skbkekas |
| SVG development | Pythonimport numpy as np
import matplotlib.pyplot as plt
import scipy.special as sp
col = {1 : 'orange', 4: 'purple', 10: 'lightblue'}
X = np.arange(0, 21)
plt.rc('text', usetex = True)
plt.rc('font', family = 'serif', size = 12)
##
## PMF
##
plt.clf()
plt.figure(figsize=(4,3.2))
A = []
for L in 1,4,10:
P = -L + X*np.log(L) - sp.gammaln(X+1)
P = np.exp(P)
plt.plot(X, P, '-', color='grey', label='_nolegend_')
a = plt.plot(X, P, 'o', color=col[L], markeredgecolor='k', markeredgewidth=0.5)
A.append(a)
plt.xlabel("$k$")
plt.ylabel(r"$P(x=k)$")
plt.ylim([0,0.4])
plt.yticks(np.arange(0,0.42,.05))
plt.tick_params(direction='in', top=True, right=True)
plt.legend((r"$\lambda=1$", r"$\lambda=4$", r"$\lambda=10$"),
numpoints=1, handlelength=0.75, handletextpad=0.5,\
loc="upper right", frameon=False)
plt.xlim(-1,21)
plt.savefig("poisson_pmf.pdf")
plt.savefig("poisson_pmf.svg")
|
Licensing[edit]
| This file is licensed under the Creative Commons Attribution 3.0 Unported license. | ||
https://creativecommons.org/licenses/by/3.0 CC BY 3.0 Creative Commons Attribution 3.0 truetrue |
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 03:26, 21 November 2020 | 330 × 255 (86 KB) | AkanoToE (talk | contribs) | Removed white background and recropped to fit axis labels | |
| 03:23, 21 November 2020 | 360 × 288 (39 KB) | AkanoToE (talk | contribs) | Made all text LaTeX, fixed legend text spacing | ||
| 01:22, 12 September 2015 | 360 × 288 (42 KB) | Trlkly (talk | contribs) | Removed outer white background for aesthetic reasons (by hand). | ||
| 20:23, 10 February 2010 | 360 × 288 (42 KB) | Skbkekas (talk | contribs) | {{Information |Description={{en|1=Plot of the probability mass function for the Poisson distribution.}} |Source={{own}} |Author=Skbkekas |Date=2-10-2010 |Permission= |other_versions= }} Category:Statistical diagrams |
You cannot overwrite this file.
File usage on Commons
The following 2 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on ast.wikipedia.org
- Usage on bn.wikipedia.org
- Usage on el.wikipedia.org
- Usage on en.wikipedia.org
- Usage on en.wikibooks.org
- Usage on es.wikipedia.org
- Usage on eu.wikipedia.org
- Usage on fa.wikipedia.org
- Usage on fi.wikipedia.org
- Usage on fr.wikipedia.org
- Usage on gl.wikipedia.org
- Usage on hr.wikipedia.org
- Usage on id.wikipedia.org
- Usage on is.wikipedia.org
- Usage on it.wikipedia.org
- Usage on ja.wikipedia.org
- Usage on ko.wikipedia.org
- Usage on mk.wikipedia.org
- Usage on pt.wikipedia.org
- Usage on sh.wikipedia.org
- Usage on sr.wikipedia.org
- Usage on sv.wikipedia.org
- Usage on tr.wikipedia.org
- Usage on uk.wikipedia.org
- Usage on zh-yue.wikipedia.org
- Usage on zh.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
| Width | 263.86578pt |
|---|---|
| Height | 204.35938pt |