Contact:
(DA & BA | ML Eng. | DevOps)
1.2 Description:
Data has changed since Covid in most industries and the markets project the public's sentiment, financially speaking.
In this regard, from indexes OHLCVs, Volumes are standarized and compared dynamically in a web-app to show the big picture of indexes supported to the user, as well as to note important insights.
App-Markdown
Moreover, from
From
- Estimators:
$\mu_{j_d}, \mu_{j_{Yr}} \mu_{P_d}, \mu_{P_{Yr}}$ . - Disperssion measures:
$Q_n$ ,$IQR$ ,$\sigma_{j_d}, \sigma_{j_{Yr}} \sigma_{P_d}, \sigma_{P_{Yr}}$ , Correlation$\rho_{i,j}$ and Covariance$\sigma_{i,j}$ matrices.
- Optimizations:
$R_{Sharpe}$ ,$R_{Sortino}$ ,$R_{Calmar}$ ,$R_{Burke}$ ,$R_{Kappa}$ ,$R_{\Omega}$ ,$R_{Traynor}$ ,$R_{Jensen}$ . - Risk measures:
$VaR_{\alpha}$ ,$ES_{\alpha}$ ,$MDD$ .
Considering, the
- It's the most commonly used index to determine the overall state of the economy.
- It has the most liquid derivatives markets (the same generally applies for
$j$ components).
Note: Market Risk exposure hedging won't be covered.
- Its components provide a broader scope to industries.
Out of the indexes supported, it will be modelled as an example (sections 4-7):
Starting from its Optimizations
-
$m$ = No° of components. -
$j$ = Component -
$n$ = No° of periods. -
$t$ = Period.
And concluding with their Simulations and Forecasts.
Import files with .py
extension in cwd callable as a list.
import glob
mod = [__import__(name[:-3]) for name in glob.glob('*.py')]
Generate requirements.txt
file with latest versions of libraries used in project.
!pipreqs --encoding utf-8 "./" --force
mod[1].get_requirements(docstring)
with open(glob.glob('*.txt')[0], 'r') as file: print(file.read())
Install the packages in environment and import libraries (refer to 2.2).
%%capture
!pip install -r requirements.txt
Data is extracted for indexes an saved in an html embed dataframe: OHCLV-web
(see refs.).
Volumes are standarized and compared dynamically in an html embed plot: Plotly-web-app
.
As an example of its usage, an image of its features is captured by selecting the NASDAQ and the SP500:
Nasdaq relative volume have sustained at much higher levels than the benchmark since Covid for example.
Libraries
-
Pandas:
pd.isin
pd.df.sample
pd.df.fillna
pd.df.resample
pandas.DataFrame.describe
-
Numpy:
np.quantile
np.arange
np.add
np.subtract
np.dot
np.divide
np.cov
np.power
-
Stats:
scipy.stats
scipy.stats.rv_continuous
scipy.stats.rv_discrete
scipy.optimize.minimize
-
Sklearn:
sklearn.model_selection.GridSearchCV
Hyper-parameters Exhaustive GridSearchCV
sklearn.neighbors.KernelDensity
sklearn.neighbors.KernelDensity.fit
sklearn.neighbors.KernelDensity.score_samples
sklearn.metrics
-
Other:
-
Other References:
Indexes Supported:
S&P
Dow Jones
NASDAQ 100
Russell 1000
FTSE 100
IPC
DAX
IBEX 35
CAC 40
EURO STOXX 50
FTSE MIB
Hang Seng Index