Skip to main content

VIX term structure in the rough Heston model via Markovian approximation

Project description

VIXRHeston

A small Python package for computing the squared VIX (VIX²) under a (rough) Heston-type setup.

Installation

From PyPI

pip install VIXRHeston

Quick start

import numpy as np
from VIXRHeston import vec_c, vec_x
from VIXRHeston import squared_VIX

H,n = 0.1,2
alpha, rn= H+0.5, 1+10*(1/(n)**0.9)
c, x = vec_c(n,rn,alpha), vec_x(n,rn,alpha)
t, tau = 0, 1/12
rho, lamb,theta,nu,V0 = -0.7,0.1,0.03,0.3, 0.01
VIX2 = squared_VIX(t, c, x, V0,lamb,theta,nu,rho, tau)
VIX  = np.sqrt(VIX2)
print(VIX)

License

MIT License. See LICENSE.

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

vixrheston-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

vixrheston-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file vixrheston-0.1.0.tar.gz.

File metadata

  • Download URL: vixrheston-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for vixrheston-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c5f79ccff61b47543b521fffc4148f340b3932ba96a646e3ad6fc0701e596f1
MD5 54306a9103d83a8d44b36bbfeb09ef5a
BLAKE2b-256 2a13d7d730835f00d952b073dc42b0e01038aab654a9fc7842f87bf7fcf848a6

See more details on using hashes here.

File details

Details for the file vixrheston-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vixrheston-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for vixrheston-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82d912626f39590b0ef30fd34d994af85ff83beac277604a119eec46d4d4505e
MD5 8b9422fbe09b3394502b40357248e768
BLAKE2b-256 c1d2f90f462fbfc9d472880ed54b408ae48b1a8cfb0fb930c97e217332927055

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