SlideShare a Scribd company logo
Shock detection and portfolio allocation in
cryptocurrency markets
Apostolos Chalkis 1, 2
1Dept Informatics & Telecommunications
National & Kapodistrian U. Athens, Greece
2ATHENA Research & Innovation Center, Greece
June 2, 2021
Shock event detection (Part I)
Copula representation.
Define an indicator.
Detection of shock events according to the value
of the indicator.
[Chalkis, Christoforou, Emiris ’21]
Stock markets’ types of behavior
Financial markets exhibit 3 types of behavior e.g. [Billio,
Getmansky,Pelizzon’12]:
1 In normal times, stocks are characterized by slightly positive
returns and a moderate volatility.
2 In up-market times (typically bubbles) by high returns and low
volatility.
3 During financial crises by strongly negative returns and high
volatility.
These observations motivate us to describe the time-varying
dependency between portfolios’ returns and volatility.
Geometric representation of portfolios
Set of portfolios
{x ∈ Rn
|
P
i xi = 1, xi ≥ 0}
The set of portfolios can be seen
as the simplex/polytope in Rn
.
Ptf x= (0.3, 0.25, 0.45)
Portfolio return and volatility
Ptf x= (0.3, 0.25, 0.45)
– Asset returns R ∈ Rn
– R = (0.09, 0.13, −0.038)
– Return Rx = RT
x = 18%
– Covariance matrix Σ ∈ Rn×n
– Σ =


3.66 0.25 −0.66
0.25 6.36 0.50
−0.66 0.50 0.18


– Volatility Vx = xT
Σx = 73%
Consider k consecutive days
Date . . . asset j asset j + 1 . . .
day i . . . Ri,j Ri,j+1 . . .
day i + 1 . . . Ri+1,j Ri+1,j+1 . . .
.
.
. . . . . . . . . . . . .
day i + k − 1 . . . Ri+k−1,j Ri+k−1,j+1 . . .
– Compute compound return
– Cut the simplex with mqqqa df
e hyperplanes
– Equidistant in terms of volume
– Here m = 3
–Estimate the covariance matrix
– Cut the simplex with mqqqa df
e ellipsoids
– Equidistant in terms of volume
– Here m = 3
Computing the copula of a given time period
– Cut the simplex with bothqqqa
q hyperplanes and ellipsoids
– Compute the volume of the q
d bodies defined by the qdfxcvxc
d intersections
→
– Obtain a Copula
– Bivariate distribution
– Each marginal is uniform
Apostolos Chalkis Practical Volume Computation & Crises detection
Q: How to detect a shock event?
We use the daily returns of the 12 cryptocurrencies with longest
history.
16th December 2017 15th March 2020
Left Copula corresponds to normal and right copula to crises times.
⇒ Normal times: The mass of portfolios on the up diagonal.
⇒ Crisis times: The mass of portfolios on the down diagonal.
Answer: Define an indicator I
I :=
mass in red area
mass in blue area
When I > 1 for > 60 days then we report a shock event.
Detecting shock events
When I > 1 for > 60days we report a shock event.
When I > 1 for > 30days we report a short shock event.
Alternative portfolio allocations (Part II)
Directions:
Use an alternative score to evaluate a portfolio.
Define new performance measures based on the score.
Compute the corresponding optimal portfolios.
Compare them with mainstream portfolios.
[Calès, Chalkis, Emiris, ’21]
Score of a portfolio
Ptf x= (0.3, 0.25, 0.45), Asset returns R = (0.09, 0.13, −0.038)
ewrtertsdfhsdgh Ptf return Rx = RT x = 18%
Score of x:=percentage of the Ptfs with worse return than x.
0 ≤ score of a Ptf ≤ 1.
The score as a random variable
Given a portfolio x ∈ Rn (use Monte Carlo),
Assume a distribution for the asset returns R ∼ D, and
estimate the distribution of the scores of x (sample from D), or
Use in-sample observations of asset returns R1, . . . , RN
New performance measures
f (x) the PDF of the score distribution of a Ptf.
Define 4 performance measures, e.g.,
PerfA =
R 1
0 (x − S∗)f (x)dx
qR 1
0 (x − S∗)2f (x)dx
=
µ − S∗
σ
,
PerfB =
R 1
0 xf (x)dx
qR 1
0 x2f (x)dx
=
µ
σ
,
...
Allocation exercise
We consider the daily returns of the 12 cryptocurrencies with
longest history.
We let a sliding window (s.w.) of length W = 100 days.
We shift the s.w. by one day.
For each s.w. we compute the following Ptfs (average
volatility):
The optimal Markowitz Mean-Variance Ptf (OptMV).
The closest single asset Ptf on BTC (OptBTC).
The optimal PerfA, PerfB, PerfC, PerfD (in-sample).
We evaluate the portfolios with the (W + 1)th asset returns.
Score and Return distributions
All portfolios are difficult to be distinguished in Markowitz
framework (very similar average return and variance).
Both OptMV and OptBTC the most of the times among the
best or the worst performers.
PerfA, PerfB, PerfC, PerfD are more stable in terms of score
(new concept of risk).
Diversified Portfolios
PerfA, PerfB, PerfC, PerfD are much more diversified than
both OptMV and OptBTC.
Performance Evaluation
Performance Evaluation
Performance Evaluation
Open Source Code
The computational tools are implemented in package
volesti of Open Source Org. Geomscale.
github.com/GeomScale/volume_approximation.
geomscale.github.io/.

More Related Content

What's hot

8ano.angulos.retas
8ano.angulos.retas8ano.angulos.retas
8ano.angulos.retasHélio Rocha
 
Sheet 6 (2016 2017)
Sheet 6 (2016 2017)Sheet 6 (2016 2017)
Sheet 6 (2016 2017)
Menna Elsaoudy
 
09. amortized analysis
09. amortized analysis09. amortized analysis
09. amortized analysis
Onkar Nath Sharma
 
Econophysics VII: Credits and the Instability of the Financial System - Thoma...
Econophysics VII: Credits and the Instability of the Financial System - Thoma...Econophysics VII: Credits and the Instability of the Financial System - Thoma...
Econophysics VII: Credits and the Instability of the Financial System - Thoma...
Lake Como School of Advanced Studies
 
Amortized analysis
Amortized analysisAmortized analysis
Amortized analysis
ajmalcs
 
Aoa amortized analysis
Aoa amortized analysisAoa amortized analysis
Aoa amortized analysis
Salabat Khan
 
13 Amortized Analysis
13 Amortized Analysis13 Amortized Analysis
13 Amortized Analysis
Andres Mendez-Vazquez
 
3.5 3.6 exp-log models 13-14
3.5 3.6  exp-log models 13-143.5 3.6  exp-log models 13-14
3.5 3.6 exp-log models 13-14Sharon Henry
 
Statistics lecture 5 (ch4)
Statistics lecture 5 (ch4)Statistics lecture 5 (ch4)
Statistics lecture 5 (ch4)
jillmitchell8778
 
Robust Portfolio Optimization with Multivariate Copulas: A Worst-Case CVaR Ap...
Robust Portfolio Optimization with Multivariate Copulas: A Worst-Case CVaR Ap...Robust Portfolio Optimization with Multivariate Copulas: A Worst-Case CVaR Ap...
Robust Portfolio Optimization with Multivariate Copulas: A Worst-Case CVaR Ap...
Fernando A. B. Sabino da Silva
 
Econophysics V: Market States and Subtleties of Correlations - Thomas Guhr
Econophysics V: Market  States and Subtleties of Correlations - Thomas GuhrEconophysics V: Market  States and Subtleties of Correlations - Thomas Guhr
Econophysics V: Market States and Subtleties of Correlations - Thomas Guhr
Lake Como School of Advanced Studies
 
Cs105 l15-bucket radix
Cs105 l15-bucket radixCs105 l15-bucket radix
Cs105 l15-bucket radix
Gopi Saiteja
 

What's hot (12)

8ano.angulos.retas
8ano.angulos.retas8ano.angulos.retas
8ano.angulos.retas
 
Sheet 6 (2016 2017)
Sheet 6 (2016 2017)Sheet 6 (2016 2017)
Sheet 6 (2016 2017)
 
09. amortized analysis
09. amortized analysis09. amortized analysis
09. amortized analysis
 
Econophysics VII: Credits and the Instability of the Financial System - Thoma...
Econophysics VII: Credits and the Instability of the Financial System - Thoma...Econophysics VII: Credits and the Instability of the Financial System - Thoma...
Econophysics VII: Credits and the Instability of the Financial System - Thoma...
 
Amortized analysis
Amortized analysisAmortized analysis
Amortized analysis
 
Aoa amortized analysis
Aoa amortized analysisAoa amortized analysis
Aoa amortized analysis
 
13 Amortized Analysis
13 Amortized Analysis13 Amortized Analysis
13 Amortized Analysis
 
3.5 3.6 exp-log models 13-14
3.5 3.6  exp-log models 13-143.5 3.6  exp-log models 13-14
3.5 3.6 exp-log models 13-14
 
Statistics lecture 5 (ch4)
Statistics lecture 5 (ch4)Statistics lecture 5 (ch4)
Statistics lecture 5 (ch4)
 
Robust Portfolio Optimization with Multivariate Copulas: A Worst-Case CVaR Ap...
Robust Portfolio Optimization with Multivariate Copulas: A Worst-Case CVaR Ap...Robust Portfolio Optimization with Multivariate Copulas: A Worst-Case CVaR Ap...
Robust Portfolio Optimization with Multivariate Copulas: A Worst-Case CVaR Ap...
 
Econophysics V: Market States and Subtleties of Correlations - Thomas Guhr
Econophysics V: Market  States and Subtleties of Correlations - Thomas GuhrEconophysics V: Market  States and Subtleties of Correlations - Thomas Guhr
Econophysics V: Market States and Subtleties of Correlations - Thomas Guhr
 
Cs105 l15-bucket radix
Cs105 l15-bucket radixCs105 l15-bucket radix
Cs105 l15-bucket radix
 

Similar to Shock detection and portfolio allocation in cryptocurrency markets

Interactive Visualization in Human Time -StampedeCon 2015
Interactive Visualization in Human Time -StampedeCon 2015Interactive Visualization in Human Time -StampedeCon 2015
Interactive Visualization in Human Time -StampedeCon 2015
StampedeCon
 
Multi risk factor model
Multi risk factor model Multi risk factor model
Multi risk factor model
Stefan Duprey
 
Martingales Stopping Time Processes
Martingales Stopping Time ProcessesMartingales Stopping Time Processes
Martingales Stopping Time Processes
IOSR Journals
 
Black-Schole Model.pptx
Black-Schole Model.pptxBlack-Schole Model.pptx
Black-Schole Model.pptx
YashRajSingh731869
 
Expanding further the universe of exotic options closed pricing formulas in t...
Expanding further the universe of exotic options closed pricing formulas in t...Expanding further the universe of exotic options closed pricing formulas in t...
Expanding further the universe of exotic options closed pricing formulas in t...caplogic-ltd
 
2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.
WeihanKhor2
 
Derivatives pricing and Malliavin Calculus
Derivatives pricing and Malliavin CalculusDerivatives pricing and Malliavin Calculus
Derivatives pricing and Malliavin CalculusHugo Delatte
 
Summary of "A Universally-Truthful Approximation Scheme for Multi-unit Auction"
Summary of "A Universally-Truthful Approximation Scheme for Multi-unit Auction"Summary of "A Universally-Truthful Approximation Scheme for Multi-unit Auction"
Summary of "A Universally-Truthful Approximation Scheme for Multi-unit Auction"Thatchaphol Saranurak
 
nr_exams.pdf
nr_exams.pdfnr_exams.pdf
nr_exams.pdf
assamaganga1
 
Montecarlophd
MontecarlophdMontecarlophd
Montecarlophd
Marco Delogu
 
Sc ppt
Sc pptSc ppt
Chapter-6-Random Variables & Probability distributions-3.doc
Chapter-6-Random Variables & Probability distributions-3.docChapter-6-Random Variables & Probability distributions-3.doc
Chapter-6-Random Variables & Probability distributions-3.doc
Desalechali1
 
Fair valuation of participating life insurance contracts with jump risk
Fair valuation of participating life insurance contracts with jump riskFair valuation of participating life insurance contracts with jump risk
Fair valuation of participating life insurance contracts with jump risk
Alex Kouam
 
Learning Financial Market Data with Recurrent Autoencoders and TensorFlow
Learning Financial Market Data with Recurrent Autoencoders and TensorFlowLearning Financial Market Data with Recurrent Autoencoders and TensorFlow
Learning Financial Market Data with Recurrent Autoencoders and TensorFlow
Altoros
 
Introduction to Quantum Monte Carlo
Introduction to Quantum Monte CarloIntroduction to Quantum Monte Carlo
Introduction to Quantum Monte Carlo
Claudio Attaccalite
 
Spike sorting: What is it? Why do we need it? Where does it come from? How is...
Spike sorting: What is it? Why do we need it? Where does it come from? How is...Spike sorting: What is it? Why do we need it? Where does it come from? How is...
Spike sorting: What is it? Why do we need it? Where does it come from? How is...
NeuroMat
 
intro
introintro

Similar to Shock detection and portfolio allocation in cryptocurrency markets (20)

Interactive Visualization in Human Time -StampedeCon 2015
Interactive Visualization in Human Time -StampedeCon 2015Interactive Visualization in Human Time -StampedeCon 2015
Interactive Visualization in Human Time -StampedeCon 2015
 
OR2 Chapter1
OR2 Chapter1OR2 Chapter1
OR2 Chapter1
 
Multi risk factor model
Multi risk factor model Multi risk factor model
Multi risk factor model
 
Martingales Stopping Time Processes
Martingales Stopping Time ProcessesMartingales Stopping Time Processes
Martingales Stopping Time Processes
 
Black-Schole Model.pptx
Black-Schole Model.pptxBlack-Schole Model.pptx
Black-Schole Model.pptx
 
Expanding further the universe of exotic options closed pricing formulas in t...
Expanding further the universe of exotic options closed pricing formulas in t...Expanding further the universe of exotic options closed pricing formulas in t...
Expanding further the universe of exotic options closed pricing formulas in t...
 
Markov chains1
Markov chains1Markov chains1
Markov chains1
 
2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.2 Review of Statistics. 2 Review of Statistics.
2 Review of Statistics. 2 Review of Statistics.
 
trading
tradingtrading
trading
 
Derivatives pricing and Malliavin Calculus
Derivatives pricing and Malliavin CalculusDerivatives pricing and Malliavin Calculus
Derivatives pricing and Malliavin Calculus
 
Summary of "A Universally-Truthful Approximation Scheme for Multi-unit Auction"
Summary of "A Universally-Truthful Approximation Scheme for Multi-unit Auction"Summary of "A Universally-Truthful Approximation Scheme for Multi-unit Auction"
Summary of "A Universally-Truthful Approximation Scheme for Multi-unit Auction"
 
nr_exams.pdf
nr_exams.pdfnr_exams.pdf
nr_exams.pdf
 
Montecarlophd
MontecarlophdMontecarlophd
Montecarlophd
 
Sc ppt
Sc pptSc ppt
Sc ppt
 
Chapter-6-Random Variables & Probability distributions-3.doc
Chapter-6-Random Variables & Probability distributions-3.docChapter-6-Random Variables & Probability distributions-3.doc
Chapter-6-Random Variables & Probability distributions-3.doc
 
Fair valuation of participating life insurance contracts with jump risk
Fair valuation of participating life insurance contracts with jump riskFair valuation of participating life insurance contracts with jump risk
Fair valuation of participating life insurance contracts with jump risk
 
Learning Financial Market Data with Recurrent Autoencoders and TensorFlow
Learning Financial Market Data with Recurrent Autoencoders and TensorFlowLearning Financial Market Data with Recurrent Autoencoders and TensorFlow
Learning Financial Market Data with Recurrent Autoencoders and TensorFlow
 
Introduction to Quantum Monte Carlo
Introduction to Quantum Monte CarloIntroduction to Quantum Monte Carlo
Introduction to Quantum Monte Carlo
 
Spike sorting: What is it? Why do we need it? Where does it come from? How is...
Spike sorting: What is it? Why do we need it? Where does it come from? How is...Spike sorting: What is it? Why do we need it? Where does it come from? How is...
Spike sorting: What is it? Why do we need it? Where does it come from? How is...
 
intro
introintro
intro
 

More from Apostolos Chalkis

Sampling Spectrahedra: Volume Approximation and Optimization
Sampling Spectrahedra: Volume Approximation and OptimizationSampling Spectrahedra: Volume Approximation and Optimization
Sampling Spectrahedra: Volume Approximation and Optimization
Apostolos Chalkis
 
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...
Apostolos Chalkis
 
Practical volume estimation of polytopes by billiard trajectories and a new a...
Practical volume estimation of polytopes by billiard trajectories and a new a...Practical volume estimation of polytopes by billiard trajectories and a new a...
Practical volume estimation of polytopes by billiard trajectories and a new a...
Apostolos Chalkis
 
dingo: a python package to analyzes metabolic networks
dingo: a python package to analyzes metabolic networksdingo: a python package to analyzes metabolic networks
dingo: a python package to analyzes metabolic networks
Apostolos Chalkis
 
Symposium of Computational Geometry 2021
Symposium of Computational Geometry 2021Symposium of Computational Geometry 2021
Symposium of Computational Geometry 2021
Apostolos Chalkis
 
The slides of my Ph.D. defense
The slides of my Ph.D. defenseThe slides of my Ph.D. defense
The slides of my Ph.D. defense
Apostolos Chalkis
 
Presentation of volesti in eRum 2020
Presentation of volesti in eRum 2020 Presentation of volesti in eRum 2020
Presentation of volesti in eRum 2020
Apostolos Chalkis
 
14th Athens Colloquium on Algorithms and Complexity (ACAC19)
14th Athens Colloquium on Algorithms and Complexity (ACAC19)14th Athens Colloquium on Algorithms and Complexity (ACAC19)
14th Athens Colloquium on Algorithms and Complexity (ACAC19)
Apostolos Chalkis
 

More from Apostolos Chalkis (8)

Sampling Spectrahedra: Volume Approximation and Optimization
Sampling Spectrahedra: Volume Approximation and OptimizationSampling Spectrahedra: Volume Approximation and Optimization
Sampling Spectrahedra: Volume Approximation and Optimization
 
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...
Practical Volume Estimation of Zonotopes by a new Annealing Schedule for Cool...
 
Practical volume estimation of polytopes by billiard trajectories and a new a...
Practical volume estimation of polytopes by billiard trajectories and a new a...Practical volume estimation of polytopes by billiard trajectories and a new a...
Practical volume estimation of polytopes by billiard trajectories and a new a...
 
dingo: a python package to analyzes metabolic networks
dingo: a python package to analyzes metabolic networksdingo: a python package to analyzes metabolic networks
dingo: a python package to analyzes metabolic networks
 
Symposium of Computational Geometry 2021
Symposium of Computational Geometry 2021Symposium of Computational Geometry 2021
Symposium of Computational Geometry 2021
 
The slides of my Ph.D. defense
The slides of my Ph.D. defenseThe slides of my Ph.D. defense
The slides of my Ph.D. defense
 
Presentation of volesti in eRum 2020
Presentation of volesti in eRum 2020 Presentation of volesti in eRum 2020
Presentation of volesti in eRum 2020
 
14th Athens Colloquium on Algorithms and Complexity (ACAC19)
14th Athens Colloquium on Algorithms and Complexity (ACAC19)14th Athens Colloquium on Algorithms and Complexity (ACAC19)
14th Athens Colloquium on Algorithms and Complexity (ACAC19)
 

Recently uploaded

Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
faizulhassanfaiz1670
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
Vladimir Samoylov
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
khadija278284
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Sebastiano Panichella
 
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
OECD Directorate for Financial and Enterprise Affairs
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Sebastiano Panichella
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
Sebastiano Panichella
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
OWASP Beja
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
Access Innovations, Inc.
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Access Innovations, Inc.
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
Howard Spence
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
IP ServerOne
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
Faculty of Medicine And Health Sciences
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
gharris9
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
eCommerce Institute
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Orkestra
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Matjaž Lipuš
 

Recently uploaded (17)

Media as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern EraMedia as a Mind Controlling Strategy In Old and Modern Era
Media as a Mind Controlling Strategy In Old and Modern Era
 
Getting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control TowerGetting started with Amazon Bedrock Studio and Control Tower
Getting started with Amazon Bedrock Studio and Control Tower
 
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdfBonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
Bonzo subscription_hjjjjjjjj5hhhhhhh_2024.pdf
 
Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...Announcement of 18th IEEE International Conference on Software Testing, Verif...
Announcement of 18th IEEE International Conference on Software Testing, Verif...
 
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
Competition and Regulation in Professional Services – KLEINER – June 2024 OEC...
 
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...Doctoral Symposium at the 17th IEEE International Conference on Software Test...
Doctoral Symposium at the 17th IEEE International Conference on Software Test...
 
International Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software TestingInternational Workshop on Artificial Intelligence in Software Testing
International Workshop on Artificial Intelligence in Software Testing
 
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
0x01 - Newton's Third Law:  Static vs. Dynamic Abusers0x01 - Newton's Third Law:  Static vs. Dynamic Abusers
0x01 - Newton's Third Law: Static vs. Dynamic Abusers
 
Eureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 PresentationEureka, I found it! - Special Libraries Association 2021 Presentation
Eureka, I found it! - Special Libraries Association 2021 Presentation
 
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdfSupercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
Supercharge your AI - SSP Industry Breakout Session 2024-v2_1.pdf
 
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptxsomanykidsbutsofewfathers-140705000023-phpapp02.pptx
somanykidsbutsofewfathers-140705000023-phpapp02.pptx
 
Acorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutesAcorn Recovery: Restore IT infra within minutes
Acorn Recovery: Restore IT infra within minutes
 
Obesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditionsObesity causes and management and associated medical conditions
Obesity causes and management and associated medical conditions
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
 
María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024María Carolina Martínez - eCommerce Day Colombia 2024
María Carolina Martínez - eCommerce Day Colombia 2024
 
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...
 
Bitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXOBitcoin Lightning wallet and tic-tac-toe game XOXO
Bitcoin Lightning wallet and tic-tac-toe game XOXO
 

Shock detection and portfolio allocation in cryptocurrency markets

  • 1. Shock detection and portfolio allocation in cryptocurrency markets Apostolos Chalkis 1, 2 1Dept Informatics & Telecommunications National & Kapodistrian U. Athens, Greece 2ATHENA Research & Innovation Center, Greece June 2, 2021
  • 2. Shock event detection (Part I) Copula representation. Define an indicator. Detection of shock events according to the value of the indicator. [Chalkis, Christoforou, Emiris ’21]
  • 3. Stock markets’ types of behavior Financial markets exhibit 3 types of behavior e.g. [Billio, Getmansky,Pelizzon’12]: 1 In normal times, stocks are characterized by slightly positive returns and a moderate volatility. 2 In up-market times (typically bubbles) by high returns and low volatility. 3 During financial crises by strongly negative returns and high volatility. These observations motivate us to describe the time-varying dependency between portfolios’ returns and volatility.
  • 4. Geometric representation of portfolios Set of portfolios {x ∈ Rn | P i xi = 1, xi ≥ 0} The set of portfolios can be seen as the simplex/polytope in Rn . Ptf x= (0.3, 0.25, 0.45)
  • 5. Portfolio return and volatility Ptf x= (0.3, 0.25, 0.45) – Asset returns R ∈ Rn – R = (0.09, 0.13, −0.038) – Return Rx = RT x = 18% – Covariance matrix Σ ∈ Rn×n – Σ =   3.66 0.25 −0.66 0.25 6.36 0.50 −0.66 0.50 0.18   – Volatility Vx = xT Σx = 73%
  • 6. Consider k consecutive days Date . . . asset j asset j + 1 . . . day i . . . Ri,j Ri,j+1 . . . day i + 1 . . . Ri+1,j Ri+1,j+1 . . . . . . . . . . . . . . . . . . day i + k − 1 . . . Ri+k−1,j Ri+k−1,j+1 . . . – Compute compound return – Cut the simplex with mqqqa df e hyperplanes – Equidistant in terms of volume – Here m = 3 –Estimate the covariance matrix – Cut the simplex with mqqqa df e ellipsoids – Equidistant in terms of volume – Here m = 3
  • 7. Computing the copula of a given time period – Cut the simplex with bothqqqa q hyperplanes and ellipsoids – Compute the volume of the q d bodies defined by the qdfxcvxc d intersections → – Obtain a Copula – Bivariate distribution – Each marginal is uniform Apostolos Chalkis Practical Volume Computation & Crises detection
  • 8. Q: How to detect a shock event? We use the daily returns of the 12 cryptocurrencies with longest history. 16th December 2017 15th March 2020 Left Copula corresponds to normal and right copula to crises times. ⇒ Normal times: The mass of portfolios on the up diagonal. ⇒ Crisis times: The mass of portfolios on the down diagonal.
  • 9. Answer: Define an indicator I I := mass in red area mass in blue area When I > 1 for > 60 days then we report a shock event.
  • 10. Detecting shock events When I > 1 for > 60days we report a shock event. When I > 1 for > 30days we report a short shock event.
  • 11. Alternative portfolio allocations (Part II) Directions: Use an alternative score to evaluate a portfolio. Define new performance measures based on the score. Compute the corresponding optimal portfolios. Compare them with mainstream portfolios. [Calès, Chalkis, Emiris, ’21]
  • 12. Score of a portfolio Ptf x= (0.3, 0.25, 0.45), Asset returns R = (0.09, 0.13, −0.038) ewrtertsdfhsdgh Ptf return Rx = RT x = 18% Score of x:=percentage of the Ptfs with worse return than x. 0 ≤ score of a Ptf ≤ 1.
  • 13. The score as a random variable Given a portfolio x ∈ Rn (use Monte Carlo), Assume a distribution for the asset returns R ∼ D, and estimate the distribution of the scores of x (sample from D), or Use in-sample observations of asset returns R1, . . . , RN
  • 14. New performance measures f (x) the PDF of the score distribution of a Ptf. Define 4 performance measures, e.g., PerfA = R 1 0 (x − S∗)f (x)dx qR 1 0 (x − S∗)2f (x)dx = µ − S∗ σ , PerfB = R 1 0 xf (x)dx qR 1 0 x2f (x)dx = µ σ , ...
  • 15. Allocation exercise We consider the daily returns of the 12 cryptocurrencies with longest history. We let a sliding window (s.w.) of length W = 100 days. We shift the s.w. by one day. For each s.w. we compute the following Ptfs (average volatility): The optimal Markowitz Mean-Variance Ptf (OptMV). The closest single asset Ptf on BTC (OptBTC). The optimal PerfA, PerfB, PerfC, PerfD (in-sample). We evaluate the portfolios with the (W + 1)th asset returns.
  • 16. Score and Return distributions All portfolios are difficult to be distinguished in Markowitz framework (very similar average return and variance). Both OptMV and OptBTC the most of the times among the best or the worst performers. PerfA, PerfB, PerfC, PerfD are more stable in terms of score (new concept of risk).
  • 17. Diversified Portfolios PerfA, PerfB, PerfC, PerfD are much more diversified than both OptMV and OptBTC.
  • 21. Open Source Code The computational tools are implemented in package volesti of Open Source Org. Geomscale. github.com/GeomScale/volume_approximation. geomscale.github.io/.