Skip to main content

Multivariate fractional Brownian motion

Project description

Multivariate fractional Brownian motion (mfBm)

This package provides implementation for the multivariate fractional Brownian motion and simple fractional brownian motion with the method described in [1].

Installation

The mfbm package is available on PyPI and can be install via pip with the following command:

pip install mfbm

Example usage

import numpy as np
from mfbm import MFBM

p = 5
H = np.linspace(0.6, 0.9, 5)
n = 100
T = 100

rho = 0.7 * np.ones((p, p))
np.fill_diagonal(rho, 1)

eta = np.ones_like(rho)
sigma = np.ones(len(H))

mfbm = MFBM(H, rho, eta, sigma)
ts = mfbm.sample(n, T)

Explanation of the parameters:

  • H: np.ndarray is a one dimensional array of the Hurst parameters, where all Hursts are in the range (0, 1).
  • rho: np.ndarray is a two dimensional array of the cross correlations between the multiple fBms, default is the identity matrix.
  • sigma: np.ndarray is a one dimensional array of the standard deviations of the single fBms, default is all ones.
  • n: int is the number of increaments to generate for the multivariate fractional Gaussian noise.
  • T: float is the time horizon of the mfBm, default is n.

mfbm

[1] Andrew T. A. Wood & Grace Chan (1994): Simulation of Stationary Gaussian Processes in [0, 1]^d , Journal of Computational and Graphical Statistics, 3:4, 409-432

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mfbm-0.1.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mfbm-0.1.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file mfbm-0.1.2.tar.gz.

File metadata

  • Download URL: mfbm-0.1.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for mfbm-0.1.2.tar.gz
Algorithm Hash digest
SHA256 397a8d3489053bf4b423d51e127e071ad65b8624da1b9ba3a3ce0dc35955a1c4
MD5 9301001d30be71d49b10319ad8921ad4
BLAKE2b-256 e5e521988116152a8e4d083a26809f277a9f807ab547b41ff2c621786a13849d

See more details on using hashes here.

File details

Details for the file mfbm-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mfbm-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for mfbm-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5b0de8de1ff8609537a379b5926f37ca3af32f832c5852f4ec9510964384d0cc
MD5 abbf97a03de39f25450f083121cebb6b
BLAKE2b-256 43bce397be02e5a8446a45b745d78741c43359c9179a2281b14f3edd0c937b1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page