DCC-GARCH(1,1)
项目描述
登录
mgarch 是一个 Python 包,用于预测金融市场每日收益的波动性。
DCC-GARCH(1,1) 用于多元正态分布和学生 t 分布。
用例:
对于多元正态分布
# 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)
对于多元 Student-t 分布
# 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)
贡献
欢迎请求请求。对于重大更改,请先打开一个问题讨论您想要更改的内容。
请确保根据需要更新测试。
执照
学术免费许可证 v3.0
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
mgarch-0.3.0.tar.gz
(4.0 kB
查看哈希)
内置分布
mgarch-0.3.0-py3-none-any.whl
(4.2 kB
查看哈希)