Coder Social home page Coder Social logo

fractional-brownian-motion's Introduction

Fractional-Brownian-Motion

Python implementation of Fractional Brownian Motion (FBM) simulation using Hosking, Cholesky, and Davies-Harte methods for generating samples of fractional Gaussian noise. FBM is obtained by taking cumulative sums of the sampled FGN.

Hosking's method:

This method computes samples of fractional Gaussian noise (FGN) by using knowledge of its conditional distribution. The complexity of this algorithm is of order O(N^2)

Cholesky's method:

This method makes use of the Cholesky decomposition of the covariance matrix to generate samples of FGN. For each row of the Choleksy matrix generated, a single sample of FGN is obtained. This means that the complexity for this algorithm is of order O(N^3). However, the Cholesky matrix can be saved in memory after the first simulation, meaning that each subsequent simulation can be of order O(N^2).

Davies-Harte method:

This method obtains samples of FGN by embedding the covariance matrix in a "circulant covariance matrix" of size 2N, which allows for efficient computation of the "square root" of the covariance matrix. The eigenvalues of this matrix are used to generate samples of FGN. This algorithm makes use of the Fast Fourier Transform (FFT) for efficiency. The complexity of this algorithm is of order O(N log(N)).

Plotting sample paths

Sample paths with different Hurst parameters

Required packages:

numpy

fractional-brownian-motion's People

Contributors

732jhy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.