原始檔案(SVG 檔案,表面大小:327 × 260 像素,檔案大小:91 KB)


摘要

描述
English: Plot of the cumulative distribution function for a 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

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

授權條款

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

說明

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

在此檔案描寫的項目

描繪內容

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

image/svg+xml

檔案歷史

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

日期/時間縮⁠圖尺寸使用者備⁠註
目前2020年11月21日 (六) 03:25於 2020年11月21日 (六) 03:25 版本的縮圖327 × 260(91 KB)AkanoToEMade all text LaTeX, fixed legend text spacing
2015年9月12日 (六) 01:23於 2015年9月12日 (六) 01:23 版本的縮圖360 × 288(53 KB)TrlklyRemoved outer white background for aesthetic reasons (by hand).
2010年2月10日 (三) 20:25於 2010年2月10日 (三) 20:25 版本的縮圖360 × 288(54 KB)Skbkekas{{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

下列頁面有用到此檔案:

全域檔案使用狀況

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

詮釋資料