File:Poisson pmf.svg

Page contents not supported in other languages.
Frae Wikipedia, the free beuk o knawledge

Oreeginal file(SVG file, nominallie 330 × 255 pixels, file size: 86 KB)

This file is fae Wikimedia Commons n micht be uised bi ither waurks. The descreeption oan its file descreeption page thaur is shawn ablo.

Ootline

Descreeption
English: Plot of the probability mass function for the Poisson distribution.
Date
Soorce Ain wirk
Author Skbkekas
SVG genesis
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

import 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")

Licensin

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
Ye are free:
  • tae share – tae copy, distribute an transmit the wirk
  • tae remix – tae adapt the wirk
Unner the follaein condeetions:
  • attribution – Ye must attribute the wirk in the manner specified bi the author or licensor (but nae in ony way that suggests that thay endorse ye or yer uise o the wirk).

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

image/svg+xml

File history

Clap oan ae date/time fer tae see the file aes it kithed at that time.

Date/TimeThummnailDimensionsUiserComment
current03:26, 21 November 2020Thumbnail fer version aes o 03:26, 21 November 2020330 × 255 (86 KB)AkanoToERemoved white background and recropped to fit axis labels
03:23, 21 November 2020Thumbnail fer version aes o 03:23, 21 November 2020360 × 288 (39 KB)AkanoToEMade all text LaTeX, fixed legend text spacing
01:22, 12 September 2015Thumbnail fer version aes o 01:22, 12 September 2015360 × 288 (42 KB)TrlklyRemoved outer white background for aesthetic reasons (by hand).
20:23, 10 Februar 2010Thumbnail fer version aes o 20:23, 10 Februar 2010360 × 288 (42 KB)Skbkekas{{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

The'r nae pages airts tae this eimage.

Global file uisage

The follaein ither wikis uise this file:

Metadata