File:Poisson cdf.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 327 × 260 pixels. Other resolutions: 302 × 240 pixels | 604 × 480 pixels | 966 × 768 pixels | 1,280 × 1,018 pixels | 2,560 × 2,035 pixels.
Original file (SVG file, nominally 327 × 260 pixels, file size: 91 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionPoisson cdf.svg |
English: Plot of the cumulative distribution function for a Poisson distribution |
Date | |
Source | Own work |
Author | Skbkekas |
SVG development InfoField | This plot was created with Matplotlib. |
Source code InfoField | Python codeimport numpy as np
import matplotlib.pyplot as plt
import scipy.special as sp
X = np.arange(0,21)
plt.rc('text', usetex = True)
plt.rc('font', family = 'serif', size = 12)
##
## CDF
##
col = {1: 'orange', 4: 'purple', 10: 'lightblue'}
plt.clf()
plt.figure(figsize=(4,3.2))
plt.axes([0.17,0.13,0.79,0.8])
A = []
for L in 1,4,10:
P = -L + X*np.log(L) - sp.gammaln(X+1)
P = np.exp(P)
P = np.cumsum(P)
for k in range(1,len(X)):
plt.plot([k-1,k], [P[k-1],P[k-1]], '-', 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(u"$P(X\le k)$")
bx = plt.legend((r"$\lambda=1$", r"$\lambda=4$", r"$\lambda=10$"),\
numpoints=1, handletextpad=0, loc="lower right")
bx.draw_frame(False)
plt.xlim([-1,21])
plt.ylim([0,1])
plt.savefig("poisson_cdf.pdf")
plt.savefig("poisson_cdf.svg")
|
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
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:25, 21 November 2020 | 327 × 260 (91 KB) | AkanoToE (talk | contribs) | Made all text LaTeX, fixed legend text spacing | |
01:23, 12 September 2015 | 360 × 288 (53 KB) | Trlkly (talk | contribs) | Removed outer white background for aesthetic reasons (by hand). | ||
20:25, 10 February 2010 | 360 × 288 (54 KB) | Skbkekas (talk | contribs) | {{Information |Description={{en|1=Plot of the cumulative distribution function for a Poisson distribution}} |Source={{own}} |Author=Skbkekas |Date=2010-2-10 |Permission= |other_versions= }} Category:Statistical diagrams |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on be.wikipedia.org
- Usage on bn.wikipedia.org
- Usage on en.wikipedia.org
- Usage on en.wikibooks.org
- Usage on fa.wikipedia.org
- Usage on fi.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 lv.wikipedia.org
- Usage on mk.wikipedia.org
- Usage on sq.wikipedia.org
- Usage on sr.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 | 261.51282pt |
---|---|
Height | 207.73982pt |