File:BesselProcess1D.svg
Size of this PNG preview of this SVG file: 720 × 540 pixels. Other resolutions: 320 × 240 pixels | 640 × 480 pixels | 1,024 × 768 pixels | 1,280 × 960 pixels | 2,560 × 1,920 pixels.
Original file (SVG file, nominally 720 × 540 pixels, file size: 11.75 MB)
File information
Structured data
Captions
Summary edit
DescriptionBesselProcess1D.svg |
English: Bessel processes with three different dimensions. |
Date | |
Source |
Own work This W3C-unspecified plot was created with Matplotlib. |
Author | Shiyu Ji |
Python/Matplotlib Code edit
# 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()
Licensing edit
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 09:06, 13 November 2016 | 720 × 540 (11.75 MB) | Shiyu Ji (talk | contribs) | add the legend | |
08:55, 13 November 2016 | 720 × 540 (11.74 MB) | Shiyu Ji (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on pt.wikipedia.org
- Usage on zh-yue.wikipedia.org
- Usage on zh.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 576pt |
---|---|
Height | 432pt |