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.3.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.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mfbm-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d788c89c4dc8c2dec69e16d3b847736c5cd850e14fc17cf52226eab6123e2826
MD5 19073f3508977c9f0604f0312c8a3ed5
BLAKE2b-256 59b5b24a867f6390cdff2a5acc0a1ad0c3213eb0f0a40cad26d409f325f6808d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mfbm-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f9a1685edacd9fac64b9c286489fcaa6a8ae32eb55171914c8ac58933f41cf62
MD5 7ae4f62d1626ec524366c22be64237a8
BLAKE2b-256 3a2cb8929e72018d0cc2a3e75b10f167fc950d153d5e4d8004bf8ff9f9a68852

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