Jump to content

File:DriftedWienerProcess1D.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia
    Original file (SVG file, nominally 720 × 540 pixels, file size: 7.83 MB)

    Summary

    Description
    English: Wiener Process with drift mu = 1
    Date
    Source Own work
    Author Shiyu Ji
    SVG development
    InfoField
     The SVG code is valid.
     This oversized vector image was created with Python.

    Python/Matplotlib Code

    # A simulation of 1D drifted Wiener process with time step dt = .0001
    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)
    ax.set_xlabel('t')
    ax.set_ylabel('X')
    
    x = 0.0
    mu = 1
    sigma = 100.0
    # Drifted
    np.random.seed(2)
    for t in T:
        new_x = x + mu*dt + sigma * np.random.normal(0, dt)
        ax.plot([t, t+dt], [x, new_x], 'b-', linewidth=0.5)
        x = new_x
    
    # sigma * dW process
    x = 0.0
    np.random.seed(2)
    for t in T:
        new_x = x + sigma * np.random.normal(0, dt)
        ax.plot([t, t+dt], [x, new_x], 'r-', linewidth=0.5)
        x = new_x
    
    pl.show()
    

    Licensing

    I, the copyright holder of this work, hereby publish 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.
    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

    copyright status<\/a>"}},"text\/plain":{"en":{"":"copyright status"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":50423863,\"id\":\"Q50423863\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P6216":"copyrighted<\/a>"}},"text\/plain":{"en":{"P6216":"copyrighted"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P6216 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
    inception<\/a>"}},"text\/plain":{"en":{"":"inception"}}},"{\"value\":{\"time\":\"+2016-11-11T00:00:00Z\",\"timezone\":0,\"before\":0,\"after\":0,\"precision\":11,\"calendarmodel\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q1985727\"},\"type\":\"time\"}":{"text\/html":{"en":{"P571":"11 November 2016"}},"text\/plain":{"en":{"P571":"11 November 2016"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P571 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    11 November 2016

    source of file<\/a>"}},"text\/plain":{"en":{"":"source of file"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":66458942,\"id\":\"Q66458942\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P7482":"original creation by uploader<\/a>"}},"text\/plain":{"en":{"P7482":"original creation by uploader"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P7482 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
    data size<\/a>"}},"text\/plain":{"en":{"":"data size"}}},"{\"value\":{\"amount\":\"+8209170\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q8799\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P3575":"8,209,170 byte<\/span>"}},"text\/plain":{"en":{"P3575":"8,209,170 byte"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P3575 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    8,209,170 byte

    media type<\/a>"}},"text\/plain":{"en":{"":"media type"}}},"{\"value\":\"image\\\/svg+xml\",\"type\":\"string\"}":{"text\/html":{"en":{"P1163":"image\/svg+xml"}},"text\/plain":{"en":{"P1163":"image\/svg+xml"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P1163 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    image/svg+xml

    checksum<\/a>"}},"text\/plain":{"en":{"":"checksum"}}},"{\"value\":\"86870401dd1d357e43413a145a61b5827267198a\",\"type\":\"string\"}":{"text\/html":{"en":{"P4092":"86870401dd1d357e43413a145a61b5827267198a"}},"text\/plain":{"en":{"P4092":"86870401dd1d357e43413a145a61b5827267198a"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":459,\"id\":\"P459\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":"determination method or standard<\/a>"}},"text\/plain":{"en":{"":"determination method or standard"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":13414952,\"id\":\"Q13414952\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P459":"SHA-1<\/a>"}},"text\/plain":{"en":{"P459":"SHA-1"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P4092 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    86870401dd1d357e43413a145a61b5827267198a

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current03:06, 12 November 2016Thumbnail for version as of 03:06, 12 November 2016720 × 540 (7.83 MB)Shiyu Jixy labels fixed
    23:09, 11 November 2016Thumbnail for version as of 23:09, 11 November 2016720 × 540 (7.83 MB)Shiyu JiUser created page with UploadWizard

    The following 2 pages use this file:

    Global file usage

    The following other wikis use this file:

    Metadata