File:BesselProcess1D.svg

頁面內容唔支援其他語言。
出自維基百科,自由嘅百科全書

原本檔案(SVG檔案,表面大細: 720 × 540 像素,檔案大細:11.75 MB)

摘要

描述
English: Bessel processes with three different dimensions.
日期
來源 自己作品
 
This W3C-unspecified plot was created with Matplotlib.
作者 Shiyu Ji

Python/Matplotlib Code

# A realization of 1D Bessel process with n = 3, 10, 20 and time step dt = .0001

import matplotlib.pyplot as pl
import numpy as np
import matplotlib.patches as mpatches

t0 = 0.0
dt = 0.0001
t_final = 2.0
T = np.arange(t0, t_final, dt)
ax = pl.figure().add_subplot(111)
ax.set_xlabel('t')
ax.set_ylabel('X')

def realize(ax, n, color):
    B = [0.0 for _ in range(n)]
    np.random.seed(1)

    for t in T:
        old_value = np.sqrt(sum([x*x for x in B]))
        for i in range(len(B)):
            B[i] += np.random.normal(0, dt)
        new_value = np.sqrt(sum([x*x for x in B]))
        ax.plot([t, t+dt], [old_value, new_value], color, linewidth=0.5)

realize(ax, 3, 'b-')
realize(ax, 10, 'r-')
realize(ax, 20, 'g-')

bluePatch = mpatches.Patch(color='blue', label='$n = 3$')
redPatch = mpatches.Patch(color='red', label='$n = 10$')
greenPatch = mpatches.Patch(color='green', label='$n = 20$')
pl.legend(handles = [bluePatch, redPatch, greenPatch], loc=2)

pl.show()

協議

我,呢份作品嘅作者,決定用以下許可發佈呢件作品:
w:en:Creative Commons
署名 相同方式分享
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
你可以:
  • 去分享 – 複製、發佈同傳播呢個作品
  • 再改 – 創作演繹作品
要遵照下面嘅條件:
  • 署名 – 你一定要畀合適嘅表彰、畀返指向呢個授權條款嘅連結,同埋寫明有無改過嚟。你可以用任何合理方式去做,但唔可以用任何方式暗示授權人認可咗你或者你嘅使用方式。
  • 相同方式分享 – 如果你用任何方式改過呢個作品,你必須要用返原本或者相似嘅條款發佈。

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

圖中顯示嘅係

13 11 2016

image/svg+xml

1e719e47b47326381348299f3f4f8995c6a1b804

12,318,976 字節

540 像素

720 像素

檔案歷史

撳個日期/時間去睇響嗰個時間出現過嘅檔案。

日期/時間縮圖尺寸用戶註解
現時2016年11月13號 (日) 09:06響2016年11月13號 (日) 09:06嘅縮圖版本720 × 540(11.75 MB)Shiyu Jiadd the legend
2016年11月13號 (日) 08:55響2016年11月13號 (日) 08:55嘅縮圖版本720 × 540(11.74 MB)Shiyu JiUser created page with UploadWizard

以下嘅2版用到呢個檔:

全域檔案使用情況

下面嘅維基都用緊呢個檔案:

Metadata