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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mgarch_setup_fix-0.2.0.tar.gz
.
File metadata
- Download URL: mgarch_setup_fix-0.2.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 870b72a4d1fd3620afb45b6cbe884ea2e8dac12fa229cbf64bc3226de9355748 |
|
MD5 | 086f2c1c2baf4d118eb444f936aa6da5 |
|
BLAKE2b-256 | 11deea69abcbc7b6619afd0d79dde17faf72195eeace4efa26f2842bd7748fbc |