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

Release files for mgarch 0.3.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 0.3.0
File Size Uploaded
mgarch-0.3.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mgarch 0.3.0
File Interpreter ABI Platform
mgarch-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / mgarch-0.3.0.tar.gz

Download URL mgarch-0.3.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4b81e5e3163f4c707f7b36e86f6da390abd825bcd2587b1494b3dcedb6587725
BLAKE2b-256 checksum
How to use checksums
8398cdeb8100d880d72b817b82d4cac95c0dc346f512e3d83e4e9c9af593cc3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Release files / mgarch-0.3.0-py3-none-any.whl

Download URL mgarch-0.3.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77cf35e9d8ef3e0509d1f169907a797f2cf42da1eaa51f53e89b305736410f11
BLAKE2b-256 checksum
How to use checksums
6e423e598fac0ba4b8c42c54eee441a1d90ddc9f809a83b4813b82768a0f5459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

1 release file

0.2.0

2 release files

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