File:WienerProcess3D.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 1,728 × 863 pixels, file size: 3.97 MB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: A single sample path of a three-dimensional Brownian motion (Wiener process) Wt, as generated by Wolfram Mathematica with a time step of size 0.0001, for times 0 ≤ t ≤ 2.
    Date
    Source Own work based on: Wiener process 3d.png
    Author Shiyu Ji
    SVG development
    InfoField
     The SVG code is valid.
     This oversized plot was created with Matplotlib.

    Python/Matplotlib Code

    # A simulation of Wiener process with time step dt = .0001
    from mpl_toolkits.mplot3d import axes3d
    import matplotlib.pyplot as pl
    import numpy as np
    
    t0 = 0.0
    dt = 0.0001
    t_final = 2
    T = np.arange(t0, t_final, dt)
    ax = pl.figure().add_subplot(111, projection='3d')
    ax.set_xlabel('X')
    ax.set_ylabel('Y')
    ax.set_zlabel('Z')
    
    x, y, z = 0.0, 0.0, 0.0
    np.random.seed(1)
    for t in T:
        new_x = x + np.random.normal(0, dt)
        new_y = y + np.random.normal(0, dt)
        new_z = z + np.random.normal(0, dt)
        ax.plot([x, new_x], [y, new_y], [z, new_z], 'b-', linewidth=0.5)
        x, y, z = new_x, new_y, new_z
    
    pl.show()
    

    Licensing

    Shiyu Ji, the copyright holder of this work, hereby publishes it under the following license:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
    Attribution:
    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.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    11 November 2016

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current11:32, 11 November 2016Thumbnail for version as of 11:32, 11 November 20161,728 × 863 (3.97 MB)wikimediacommons>Shiyu JiUser created page with UploadWizard

    There are no pages that use this file.