Skip to main content

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

Metadata

Release files for mgarch-setup-fix 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mgarch-setup-fix 0.2.0
File Size Uploaded
mgarch_setup_fix-0.2.0.tar.gz 3.3 kB Details

Release files / mgarch_setup_fix-0.2.0.tar.gz

Download URL mgarch_setup_fix-0.2.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
870b72a4d1fd3620afb45b6cbe884ea2e8dac12fa229cbf64bc3226de9355748
BLAKE2b-256 checksum
How to use checksums
11deea69abcbc7b6619afd0d79dde17faf72195eeace4efa26f2842bd7748fbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page