stochvolmodels 1.0.18__tar.gz → 1.0.19__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/PKG-INFO +1 -1
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/pyproject.toml +4 -2
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/__init__.py +0 -6
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/data/option_chain.py +1 -1
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/il_hedging/README.md +1 -3
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/logsv_model_wtih_quadratic_drift/article_figures.py +10 -6
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/logsv_model_wtih_quadratic_drift/calibrations.py +4 -4
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/logsv_model_wtih_quadratic_drift/compare_admis_reg.py +2 -2
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/logsv_model_wtih_quadratic_drift/model_fit_to_options_timeseries.py +5 -2
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/logsv_model_wtih_quadratic_drift/moments_vol_qvar.py +3 -3
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/logsv_model_wtih_quadratic_drift/ode_sol_in_time.py +2 -2
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/logsv_model_wtih_quadratic_drift/steady_state_pdf.py +1 -1
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/logsv_model_wtih_quadratic_drift/vol_drift.py +1 -1
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/volatility_models/article_figures.py +4 -4
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/volatility_models/autocorr_fit.py +2 -2
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/volatility_models/ss_distribution_fit.py +1 -1
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/volatility_models/vol_beta.py +1 -2
- stochvolmodels-1.0.19/stochvolmodels/pricers/__init__.py +0 -0
- stochvolmodels-1.0.19/stochvolmodels/pricers/analytic/__init__.py +0 -0
- stochvolmodels-1.0.19/stochvolmodels/pricers/logsv/__init__.py +0 -0
- stochvolmodels-1.0.19/stochvolmodels/tests/__init__.py +0 -0
- stochvolmodels-1.0.19/stochvolmodels/utils/__init__.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/LICENSE.txt +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/README.md +0 -0
- {stochvolmodels-1.0.18/my_papers → stochvolmodels-1.0.19/stochvolmodels/data}/__init__.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/data/fetch_option_chain.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/data/test_option_chain.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/examples/run_gmm_fit.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/examples/run_heston.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/examples/run_heston_sv_pricer.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/examples/run_lognormal_sv_pricer.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/examples/run_pricing_options_on_qvar.py +0 -0
- {stochvolmodels-1.0.18/my_papers/volatility_models → stochvolmodels-1.0.19/stochvolmodels/my_papers}/__init__.py +0 -0
- {stochvolmodels-1.0.18/stochvolmodels/data → stochvolmodels-1.0.19/stochvolmodels/my_papers/il_hedging}/__init__.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/il_hedging/logsv_figures.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/il_hedging/run_logsv_for_il_payoff.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/inverse_options/README.md +0 -0
- {stochvolmodels-1.0.18/stochvolmodels/pricers → stochvolmodels-1.0.19/stochvolmodels/my_papers/inverse_options}/__init__.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/inverse_options/compare_net_delta.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/logsv_model_wtih_quadratic_drift/README.md +0 -0
- {stochvolmodels-1.0.18/stochvolmodels/pricers/analytic → stochvolmodels-1.0.19/stochvolmodels/my_papers/logsv_model_wtih_quadratic_drift}/__init__.py +0 -0
- {stochvolmodels-1.0.18/stochvolmodels/pricers/logsv → stochvolmodels-1.0.19/stochvolmodels/my_papers/risk_premia}/__init__.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/risk_premia/check_kernel.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/risk_premia/gmm_slides.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/risk_premia/q_kernel.py +0 -0
- {stochvolmodels-1.0.18/stochvolmodels/tests → stochvolmodels-1.0.19/stochvolmodels/my_papers/t_distribution}/__init__.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/t_distribution/illustrations.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/t_distribution/market_data_fit.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/t_distribution/mc_pricer_with_kernel.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/volatility_models/README.md +0 -0
- {stochvolmodels-1.0.18/stochvolmodels/utils → stochvolmodels-1.0.19/stochvolmodels/my_papers/volatility_models}/__init__.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/volatility_models/load_data.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/analytic/bachelier.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/analytic/bsm.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/analytic/tdist.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/gmm_pricer.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/hawkes_jd_pricer.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/heston_pricer.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/logsv/affine_expansion.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/logsv/vol_moments_ode.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/logsv_pricer.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/model_pricer.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/tdist_pricer.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/tests/bsm_mgf_pricer.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/tests/qv_pricer.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/utils/config.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/utils/funcs.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/utils/mc_payoffs.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/utils/mgf_pricer.py +0 -0
- {stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/utils/plots.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "stochvolmodels"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.19"
|
|
4
4
|
description = "Implementation of stochastic volatility models for option pricing"
|
|
5
5
|
license = "LICENSE.txt"
|
|
6
6
|
authors = ["Artur Sepp <artursepp@gmail.com>"]
|
|
@@ -23,7 +23,9 @@ classifiers=[
|
|
|
23
23
|
"Programming Language :: Python :: 3 :: Only",
|
|
24
24
|
"Topic :: Office/Business :: Financial :: Investment",
|
|
25
25
|
]
|
|
26
|
-
packages = [ {include = "stochvolmodels"}
|
|
26
|
+
packages = [ {include = "stochvolmodels"}]
|
|
27
|
+
|
|
28
|
+
exclude = ["stochvolmodel/my_papers/"]
|
|
27
29
|
|
|
28
30
|
[tool.poetry.urls]
|
|
29
31
|
"Issues" = "https://github.com/ArturSepp/StochVolModels/issues"
|
|
@@ -123,12 +123,6 @@ from stochvolmodels.pricers.tdist_pricer import (
|
|
|
123
123
|
|
|
124
124
|
from stochvolmodels.data.option_chain import OptionChain, OptionSlice
|
|
125
125
|
|
|
126
|
-
"""
|
|
127
|
-
from stochvolmodels.data.fetch_option_chain import (generate_vol_chain_np,
|
|
128
|
-
load_option_chain,
|
|
129
|
-
sample_option_chain_at_times,
|
|
130
|
-
load_price_data)
|
|
131
|
-
"""
|
|
132
126
|
|
|
133
127
|
from stochvolmodels.data.test_option_chain import (
|
|
134
128
|
get_btc_test_chain_data,
|
|
@@ -246,7 +246,7 @@ class OptionChain:
|
|
|
246
246
|
bid_prices=None if option_chain.bid_prices is None else List([option_chain.bid_prices[idx]]),
|
|
247
247
|
ask_prices=None if option_chain.ask_prices is None else List([option_chain.ask_prices[idx]]))
|
|
248
248
|
else:
|
|
249
|
-
indices = np.
|
|
249
|
+
indices = np.isin(option_chain.ids, ids).nonzero()[0]
|
|
250
250
|
option_chain = cls(ids=ids,
|
|
251
251
|
ttms=option_chain.ttms[indices],
|
|
252
252
|
ticker=option_chain.ticker,
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/il_hedging/README.md
RENAMED
|
@@ -3,8 +3,6 @@ This module contains analysis for paper
|
|
|
3
3
|
by Artur Sepp, Alexander Lipton, and Vladimir Lucic
|
|
4
4
|
|
|
5
5
|
All figures in the paper are produced by unittests in
|
|
6
|
-
https://github.com/ArturSepp/StochVolModels/blob/main/my_papers/il_hedging/
|
|
7
|
-
|
|
8
|
-
https://github.com/ArturSepp/StochVolModels/blob/main/my_papers/il_hedging/logsv_figures.py
|
|
6
|
+
https://github.com/ArturSepp/StochVolModels/blob/main/my_papers/il_hedging/run_logsv_for_il_payoff.py
|
|
9
7
|
|
|
10
8
|
See the description of data and analysis in the paper.
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
"""
|
|
2
|
+
figures for paper
|
|
3
|
+
https://www.worldscientific.com/doi/10.1142/S0219024924500031
|
|
4
|
+
Log-Normal Stochastic Volatility Model With Quadratic Drift
|
|
5
|
+
"""
|
|
2
6
|
import string
|
|
3
7
|
import pandas as pd
|
|
4
8
|
import numpy as np
|
|
5
9
|
import matplotlib.pyplot as plt
|
|
6
10
|
import seaborn as sns
|
|
7
|
-
import qis
|
|
11
|
+
import qis as qis
|
|
8
12
|
from typing import Tuple
|
|
9
13
|
from numba.typed import List
|
|
10
14
|
from enum import Enum
|
|
@@ -22,10 +26,10 @@ from stochvolmodels.utils.funcs import set_seed, compute_histogram_data
|
|
|
22
26
|
import stochvolmodels.utils.plots as plot
|
|
23
27
|
|
|
24
28
|
# implementations for paper
|
|
25
|
-
import my_papers.logsv_model_wtih_quadratic_drift
|
|
26
|
-
import my_papers.logsv_model_wtih_quadratic_drift.
|
|
27
|
-
import my_papers.logsv_model_wtih_quadratic_drift.ode_sol_in_time as osi
|
|
28
|
-
from my_papers.logsv_model_wtih_quadratic_drift.model_fit_to_options_timeseries import report_calibration_timeseries
|
|
29
|
+
import stochvolmodels.my_papers.logsv_model_wtih_quadratic_drift as mvq
|
|
30
|
+
import stochvolmodels.my_papers.logsv_model_wtih_quadratic_drift.steady_state_pdf as ssp
|
|
31
|
+
import stochvolmodels.my_papers.logsv_model_wtih_quadratic_drift.ode_sol_in_time as osi
|
|
32
|
+
from stochvolmodels.my_papers.logsv_model_wtih_quadratic_drift.model_fit_to_options_timeseries import report_calibration_timeseries
|
|
29
33
|
|
|
30
34
|
|
|
31
35
|
def plot_fitted_model(option_chain: OptionChain,
|
|
@@ -103,7 +103,7 @@ def run_unit_test(unit_test: UnitTests):
|
|
|
103
103
|
if unit_test == UnitTests.CALIBRATION:
|
|
104
104
|
asset = Assets.BTC
|
|
105
105
|
fig = calibrate_logsv_model(asset=asset)
|
|
106
|
-
plot.save_fig(fig=fig, local_path='
|
|
106
|
+
plot.save_fig(fig=fig, local_path='../../../docs/figures//', file_name=f"calibration_{asset.value}")
|
|
107
107
|
|
|
108
108
|
elif unit_test == UnitTests.MODEL_COMPARISION_WITH_MC:
|
|
109
109
|
|
|
@@ -143,8 +143,8 @@ def run_unit_test(unit_test: UnitTests):
|
|
|
143
143
|
|
|
144
144
|
is_save = False
|
|
145
145
|
if is_save:
|
|
146
|
-
plot.save_fig(fig=fig1, local_path='
|
|
147
|
-
plot.save_fig(fig=fig2, local_path='
|
|
146
|
+
plot.save_fig(fig=fig1, local_path='../../../docs/figures//', file_name="btc_fit")
|
|
147
|
+
plot.save_fig(fig=fig2, local_path='../../../docs/figures//', file_name="btc_mc_comp")
|
|
148
148
|
|
|
149
149
|
elif unit_test == UnitTests.PLOT_QVAR_FIGURE_FOR_ARTICLE:
|
|
150
150
|
|
|
@@ -170,7 +170,7 @@ def run_unit_test(unit_test: UnitTests):
|
|
|
170
170
|
nb_path=100000)
|
|
171
171
|
is_save = False
|
|
172
172
|
if is_save:
|
|
173
|
-
plot.save_fig(fig=fig, local_path='
|
|
173
|
+
plot.save_fig(fig=fig, local_path='../../../docs/figures//', file_name="model_vs_mc_qvar_logsv")
|
|
174
174
|
|
|
175
175
|
else:
|
|
176
176
|
raise NotImplementedError(f"not implemented {unit_test}")
|
|
@@ -56,7 +56,7 @@ def lognormal_combined(vartheta_min=0.5,
|
|
|
56
56
|
ax[i].legend()
|
|
57
57
|
ax[i].set(xlabel=r"$\vartheta$", ylabel=r"$\beta$")
|
|
58
58
|
|
|
59
|
-
plot.save_fig(fig=fig, local_path='
|
|
59
|
+
plot.save_fig(fig=fig, local_path='../../../docs/figures//',
|
|
60
60
|
file_name='logsv_regions')
|
|
61
61
|
|
|
62
62
|
|
|
@@ -101,7 +101,7 @@ def heston_exp_ou_combined(vartheta_min=0.5,
|
|
|
101
101
|
ax[1].set(xlabel=r"$\vartheta$", ylabel=r"$\rho$")
|
|
102
102
|
ax[1].set_title(f"(B) Exp-OU model")
|
|
103
103
|
|
|
104
|
-
plot.save_fig(fig=fig, local_path='
|
|
104
|
+
plot.save_fig(fig=fig, local_path='../../../docs/figures//',
|
|
105
105
|
file_name='heston_exp_ou_combined')
|
|
106
106
|
|
|
107
107
|
|
|
@@ -11,8 +11,11 @@ from typing import Dict, Tuple, Any, Optional
|
|
|
11
11
|
from enum import Enum
|
|
12
12
|
|
|
13
13
|
# analytics
|
|
14
|
-
from stochvolmodels import (
|
|
15
|
-
|
|
14
|
+
from stochvolmodels.data.fetch_option_chain import (generate_vol_chain_np,
|
|
15
|
+
load_option_chain,
|
|
16
|
+
sample_option_chain_at_times,
|
|
17
|
+
load_price_data)
|
|
18
|
+
from stochvolmodels import (OptionChain, LogSvParams, LogSVPricer, ConstraintsType, LogsvModelCalibrationType)
|
|
16
19
|
|
|
17
20
|
# chain data
|
|
18
21
|
from option_chain_analytics import OptionsDataDFs, create_chain_from_from_options_dfs
|
|
@@ -194,7 +194,7 @@ def run_unit_test(unit_test: UnitTests):
|
|
|
194
194
|
|
|
195
195
|
is_save = True
|
|
196
196
|
if is_save:
|
|
197
|
-
plot.save_fig(fig=fig, local_path='
|
|
197
|
+
plot.save_fig(fig=fig, local_path='../../../docs/figures//', file_name='vol_qvar_exp')
|
|
198
198
|
|
|
199
199
|
elif unit_test == UnitTests.JOINT_VOL_MOMENTS_VS_MC_FIGURE:
|
|
200
200
|
params = LogSvParams(sigma0=1.5, theta=1.0, kappa1=4.0, kappa2=4.0, beta=0.0, volvol=1.0)
|
|
@@ -212,7 +212,7 @@ def run_unit_test(unit_test: UnitTests):
|
|
|
212
212
|
|
|
213
213
|
is_save = False
|
|
214
214
|
if is_save:
|
|
215
|
-
plot.save_fig(fig=fig, local_path='
|
|
215
|
+
plot.save_fig(fig=fig, local_path='../../../docs/figures//', file_name='vol_moments')
|
|
216
216
|
|
|
217
217
|
elif unit_test == UnitTests.SINGLE_QVAR_FIGURE:
|
|
218
218
|
with sns.axes_style('darkgrid'):
|
|
@@ -222,7 +222,7 @@ def run_unit_test(unit_test: UnitTests):
|
|
|
222
222
|
|
|
223
223
|
is_save = False
|
|
224
224
|
if is_save:
|
|
225
|
-
plot.save_fig(fig=fig, local_path='
|
|
225
|
+
plot.save_fig(fig=fig, local_path='../../../docs/figures//', file_name='qvar_exp')
|
|
226
226
|
|
|
227
227
|
plt.show()
|
|
228
228
|
|
|
@@ -281,13 +281,13 @@ def run_unit_test(unit_test: UnitTests):
|
|
|
281
281
|
fig = plot_ode_solutions(params=params, ttm=ttm, expansion_order=ExpansionOrder.FIRST,
|
|
282
282
|
is_spot_measure=is_spot_measure)
|
|
283
283
|
if is_save:
|
|
284
|
-
plot.save_fig(fig=fig, local_path='
|
|
284
|
+
plot.save_fig(fig=fig, local_path='../../../docs/figures//', file_name="first_order_fig")
|
|
285
285
|
|
|
286
286
|
elif unit_test == UnitTests.SECOND_ORDER:
|
|
287
287
|
fig = plot_ode_solutions(params=params, ttm=ttm, expansion_order=ExpansionOrder.SECOND,
|
|
288
288
|
is_spot_measure=is_spot_measure)
|
|
289
289
|
if is_save:
|
|
290
|
-
plot.save_fig(fig=fig, local_path='
|
|
290
|
+
plot.save_fig(fig=fig, local_path='../../../docs/figures//', file_name="second_order_fig")
|
|
291
291
|
|
|
292
292
|
elif unit_test == UnitTests.APPROXIMATION:
|
|
293
293
|
plot_approximate_solutions(phi=-0.5 + 1j,
|
|
@@ -234,7 +234,7 @@ def run_unit_test(unit_test: UnitTests):
|
|
|
234
234
|
|
|
235
235
|
is_save = True
|
|
236
236
|
if is_save:
|
|
237
|
-
plot.save_fig(fig=fig, local_path='
|
|
237
|
+
plot.save_fig(fig=fig, local_path='../../../docs/figures//', file_name='vol_steady_state')
|
|
238
238
|
|
|
239
239
|
plt.show()
|
|
240
240
|
|
|
@@ -12,10 +12,10 @@ from stochvolmodels.pricers.logsv_pricer import LogSvParams
|
|
|
12
12
|
from stochvolmodels.utils.funcs import set_seed
|
|
13
13
|
|
|
14
14
|
# project
|
|
15
|
-
from my_papers.volatility_models.load_data import fetch_ohlc_vol
|
|
16
|
-
import my_papers.volatility_models.ss_distribution_fit as ssd
|
|
17
|
-
from my_papers.volatility_models.vol_beta import estimate_vol_beta
|
|
18
|
-
from my_papers.volatility_models.autocorr_fit import autocorr_fit_report_logsv
|
|
15
|
+
from stochvolmodels.my_papers.volatility_models.load_data import fetch_ohlc_vol
|
|
16
|
+
import stochvolmodels.my_papers.volatility_models.ss_distribution_fit as ssd
|
|
17
|
+
from stochvolmodels.my_papers.volatility_models.vol_beta import estimate_vol_beta
|
|
18
|
+
from stochvolmodels.my_papers.volatility_models.autocorr_fit import autocorr_fit_report_logsv
|
|
19
19
|
|
|
20
20
|
KWARGS = dict(fontsize=14)
|
|
21
21
|
FIGSIZE = (18, 8)
|
|
@@ -6,8 +6,8 @@ from typing import Tuple
|
|
|
6
6
|
from scipy.optimize import minimize
|
|
7
7
|
from enum import Enum
|
|
8
8
|
|
|
9
|
-
import my_papers.volatility_models.ss_distribution_fit as ssd
|
|
10
|
-
from my_papers.volatility_models.load_data import fetch_ohlc_vol
|
|
9
|
+
import stochvolmodels.my_papers.volatility_models.ss_distribution_fit as ssd
|
|
10
|
+
from stochvolmodels.my_papers.volatility_models.load_data import fetch_ohlc_vol
|
|
11
11
|
from stochvolmodels.pricers.logsv_pricer import LogSvParams, LogSVPricer
|
|
12
12
|
from stochvolmodels.utils.funcs import set_seed
|
|
13
13
|
|
|
@@ -9,7 +9,7 @@ from typing import Optional
|
|
|
9
9
|
from enum import Enum
|
|
10
10
|
import qis
|
|
11
11
|
|
|
12
|
-
from my_papers.volatility_models.load_data import fetch_ohlc_vol
|
|
12
|
+
from stochvolmodels.my_papers.volatility_models.load_data import fetch_ohlc_vol
|
|
13
13
|
from stochvolmodels import LogSvParams, HestonParams
|
|
14
14
|
|
|
15
15
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import numpy as np
|
|
2
1
|
import pandas as pd
|
|
3
2
|
import matplotlib.pyplot as plt
|
|
4
3
|
import seaborn as sns
|
|
5
4
|
from enum import Enum
|
|
6
5
|
import qis
|
|
7
6
|
|
|
8
|
-
from my_papers.volatility_models.load_data import fetch_ohlc_vol
|
|
7
|
+
from stochvolmodels.my_papers.volatility_models.load_data import fetch_ohlc_vol
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
def estimate_vol_beta(vol: pd.Series,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/examples/run_heston_sv_pricer.py
RENAMED
|
File without changes
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/examples/run_lognormal_sv_pricer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/il_hedging/logsv_figures.py
RENAMED
|
File without changes
|
|
File without changes
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/inverse_options/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/risk_premia/check_kernel.py
RENAMED
|
File without changes
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/risk_premia/gmm_slides.py
RENAMED
|
File without changes
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/risk_premia/q_kernel.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19/stochvolmodels}/my_papers/volatility_models/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/analytic/bachelier.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/logsv/affine_expansion.py
RENAMED
|
File without changes
|
{stochvolmodels-1.0.18 → stochvolmodels-1.0.19}/stochvolmodels/pricers/logsv/vol_moments_ode.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|