跳至內容

File:Poisson pmf.svg

頁面內容不支援其他語言。
這個檔案來自維基共享資源
維基百科,自由的百科全書

原始檔案(SVG 檔案,表面大小:330 × 255 像素,檔案大小:86 KB)


摘要

描述
English: Plot of the probability mass function for the Poisson distribution.
日期
來源 自己的作品
作者 Skbkekas
SVG開發
InfoField
 
SVG檔案的原始碼通過W3C驗證
 
向量圖形使用Matplotlib創作。
原始碼
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")

授權條款

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
w:zh:共享創意
姓名標示
此檔案採用創用CC 姓名標示 3.0 未在地化版本授權條款。
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

沒有維基數據項目的某些值

作者姓名字串 繁體中文 (已轉換拼寫):​Skbkekas
維基媒體使用者名稱 繁體中文 (已轉換拼寫):​Skbkekas

著作權狀態 繁體中文 (已轉換拼寫)

有著作權 繁體中文 (已轉換拼寫)

檔案來源 Chinese (Taiwan) (已轉換拼寫)

上傳者的原創作品 繁體中文 (已轉換拼寫)

多媒體型式 繁體中文 (已轉換拼寫)

image/svg+xml

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸用戶備⁠註
目前2020年11月21日 (六) 03:26於 2020年11月21日 (六) 03:26 版本的縮圖330 × 255(86 KB)AkanoToERemoved white background and recropped to fit axis labels
2020年11月21日 (六) 03:23於 2020年11月21日 (六) 03:23 版本的縮圖360 × 288(39 KB)AkanoToEMade all text LaTeX, fixed legend text spacing
2015年9月12日 (六) 01:22於 2015年9月12日 (六) 01:22 版本的縮圖360 × 288(42 KB)TrlklyRemoved outer white background for aesthetic reasons (by hand).
2010年2月10日 (三) 20:23於 2010年2月10日 (三) 20:23 版本的縮圖360 × 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

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案:

詮釋資料