Skip to main content

DCC-GARCH(1,1)

Project description

mgarch

mgarch is a python package for predicting volatility of daily returns in financial markets.

DCC-GARCH(1,1) for multivariate normal and student t distribution.

Use case:

For Multivariate Normal Distribution

# shape(rt) = (t, n) numpy matrix with t days of observation and n number of assets
import mgarch
vol = mgarch.mgarch()
vol.fit(rt)
ndays = 10 # volatility of nth day
cov_nextday = vol.predict(ndays)

For Multivariate Student-t Distribution

# shape(rt) = (t, n) numpy matrix with t days of observation and n number of assets
import mgarch
dist = 't'
vol = mgarch.mgarch(dist)
vol.fit(rt)
ndays = 10 # volatility of nth day
cov_nextday = vol.predict(ndays)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Academic Free License v3.0

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

mgarch-0.3.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

mgarch-0.3.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file mgarch-0.3.0.tar.gz.

File metadata

  • Download URL: mgarch-0.3.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for mgarch-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4b81e5e3163f4c707f7b36e86f6da390abd825bcd2587b1494b3dcedb6587725
MD5 d1d8629903f281f51d1193c2bcea6d14
BLAKE2b-256 8398cdeb8100d880d72b817b82d4cac95c0dc346f512e3d83e4e9c9af593cc3f

See more details on using hashes here.

File details

Details for the file mgarch-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: mgarch-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for mgarch-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77cf35e9d8ef3e0509d1f169907a797f2cf42da1eaa51f53e89b305736410f11
MD5 34c2d593c09c29ee30a704332a2935e6
BLAKE2b-256 6e423e598fac0ba4b8c42c54eee441a1d90ddc9f809a83b4813b82768a0f5459

See more details on using hashes here.

Supported by

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