跳至內容

File:Geometric cdf.svg

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

原始檔案(SVG 檔案,表面大小:675 × 288 像素,檔案大小:116 KB)


摘要

描述
English: Plots of the cumulative distribution functions for several members of the geometric family of probability distributions.
日期
來源 自己的作品
作者 Skbkekas
SVG開發
InfoField
 
SVG檔案的原始碼通過W3C驗證
 
vector image使用Matplotlib創作。
原始碼
InfoField

Python code

import numpy as np
import matplotlib.pyplot as plt
import scipy.special as sp

col = {0.2: 'orange', 0.5: 'purple', 0.8: 'lightblue'}

plt.clf()
plt.figure(figsize=(7.5,3.2))
ax1 = plt.axes([0.08,0.13,0.4,0.8])
ax2 = plt.axes([0.57,0.13,0.4,0.8])
plt.hold(True)

X1 = np.arange(1,11)
X2 = np.arange(0,11)

ms = 4.9

A1,A2 = [],[]
for p in 0.2,0.5,0.8:
    Y1 = 1 - (1-p)**X1
    Y2 = 1 - (1-p)**(X2+1)
    for k in range(len(Y1)-1):
        ax1.plot([X1[k],X1[k]+1], [Y1[k],Y1[k]], '-', color='grey')
        ax2.plot([X2[k],X2[k]+1], [Y2[k],Y2[k]], '-', color='grey')

    ax1.plot(X1[1:], Y1[:-1], 'o', mec='k', mfc='w', ms=ms)
    ax2.plot(X2[1:], Y2[:-1], 'o', mec='k', mfc='w', ms=ms)
    a1 = ax1.plot(X1, Y1, 'o', color=col[p], ms=ms)
    a2 = ax2.plot(X2, Y2, 'o', color=col[p], ms=ms)
    A1.append(a1)
    A2.append(a2)

ax1.set_xlabel("x")
ax1.set_ylabel(u"P(X\N{Less-THAN OR EQUAL TO}x)")
ax2.set_xlabel("x")
ax2.set_ylabel(u"P(X\N{Less-THAN OR EQUAL TO}x)")

bx1 = ax1.legend(A1, ("p=0.2", "p=0.5", "p=0.8"),\
                 numpoints=1, handletextpad=0, loc="lower right")
bx2 = ax2.legend(A2, ("p=0.2", "p=0.5", "p=0.8"),\
                numpoints=1, handletextpad=0, loc="lower right")
bx1.draw_frame(False)
bx2.draw_frame(False)
ax1.set_xlim(-0.2,10.2)
ax2.set_xlim(-0.2,10.2)
ax1.set_ylim(-0.05,1.05)
ax2.set_ylim(-0.05,1.05)

plt.savefig("geometric_cdf.pdf")
plt.savefig("geometric_cdf.svg")

授權條款

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

說明

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

在此檔案描寫的項目

描繪內容

創用CC姓名標示3.0未本地化 繁體中文 (已轉換拼寫)

檔案歷史

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

日期/時間縮⁠圖尺寸使用者備⁠註
目前2013年5月1日 (三) 21:26於 2013年5月1日 (三) 21:26 版本的縮圖675 × 288(116 KB)DicklyonPaint in the missing strokes in upper right part of right plot.
2010年3月1日 (一) 00:34於 2010年3月1日 (一) 00:34 版本的縮圖675 × 288(76 KB)SkbkekasAdd open circles to make it clear that it is right continuous.
2010年2月26日 (五) 23:32於 2010年2月26日 (五) 23:32 版本的縮圖675 × 288(64 KB)Skbkekas{{Information |Description={{en|1=Plots of the cumulative distribution functions for several members of the geometric family of probability distributions.}} |Source={{own}} |Author=Skbkekas |Date=2010-02-26 |Permission= |other_versions=

下列頁面有用到此檔案:

全域檔案使用狀況

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

詮釋資料