SlideShare una empresa de Scribd logo
1 de 33
Descargar para leer sin conexión
Marcos López de Prado
Lawrence Berkeley National Laboratory
Computational Research Division
Building Diversified Portfolios that
Outperform Out-Of-Sample
Key Points
2
• The problem: Mean-Variance (MV) portfolios are optimal in-sample,
however they tend to perform poorly out-of-sample (even worse
than the 1/N naïve portfolio!)
• Two major causes:
1. Returns can rarely be forecasted with sufficient accuracy
2. Quadratic optimizers require the inversion of a positive-definite covariance
matrix
• A partial solution: To deal with the first cause, some modern
approaches drop returns forecasts, e.g. Risk Parity (RP)
• Still, matrix inversion is a major reason why MV and RP
underperform out-of-sample (OOS)
• We introduce a new portfolio construction method that
substantially improves the OOS performance of diversified
portfolios
SECTION I
The Pitfalls of Quadratic Optimizers
Quadratic Optimization
4
• In 1956, Harry Markowitz developed the Critical
Line Algorithm (CLA):
– CLA is a quadratic optimization procedure specifically
designed for inequality constraints portfolio optimization
– It finds the exact solution after a known number of steps
– It ingeniously circumvents the Karush-Kuhn-Tucker
conditions through the notion of “turning point”
• A turning point occurs when a previously free weight
hits a boundary
• The constrained efficient frontier between two
neighbor turning points can be reformulated as an
unconstrained problem
• CLA solves the optimization problem by finding the
sequence of turning points
Open source CLA Python library: Bailey and López de Prado [2013]
Risk Parity
5
• Numerous studies show that
quadratic optimizers in general
produce unreliable solutions, e.g.
Michaud [1998]
• One major reason for this is, returns
can rarely be forecasted with
sufficient confidence
• Small forecasting errors can lead to
dramatically different Efficient
Frontiers
As a consequence, many authors have dropped returns forecasting
altogether, giving rise to risk-based asset allocation approaches. E.g.:
Risk parity
Markowitz’s curse
6
• De Miguel et al. [2009] show that many of the best known
quadratic optimizers underperform the Naïve 1/N allocation OOS,
even after dropping forecasted returns!
• The reason is, quadratic optimizers require the inversion of a
positive-definite covariance matrix
• The condition number of a covariance
matrix is the ratio between its highest
and smallest (in moduli) eigenvalues
• The more correlated the assets, the
higher the condition number, and the
more unstable is the inverse matrix
• Markowitz’s curse: Quadratic
optimization is likely to fail precisely
when there is a greater need for
finding a diversified portfolio
SECTION II
From Geometry To Topology
Topology
8
• Around 1735, Leonhard Euler
asked this question
• Euler was one of the first to
recognize that Geometry could
not solve this problem
• Hint: The relevant information is
not the geometric location of the
bridges, but their logical relations
Is it possible to walk through the city of Königsberg
crossing each bridge once and only once, ending at the
starting point?
Graph Theory
9
• A graph can be understood as a
relational map between pairs of
items
• Once considered a branch of
Topology, Graph Theory has
grown to become a
Mathematical subject in its own
right
• Graph theory can answer
questions regarding the logical
structure, architecture and
dynamics of a complex system
Graph Theory is applied by Google to rank
hyperlinks, by GPS systems to find your
shortest path home, by LinkedIn to suggest
connections, by the NSA to track terrorists... In
the example above, Graph Theory is used to
derive the political inclination of a community,
based on the speeches they re-tweet
Topology & Graph Theory at work
10
• Subway plans are not
geographic maps, but
topological representations
of how lines and stations
are interconnected
• Adding to that map
geographic details would
make it more difficult to
solve problems such as how
to find alternative routes,
minimize waiting time,
avoid congestion paths, etc.
What does it mean “inverting the matrix”?
11
• One reason for the instability of
quadratic optimizers is that the vector
space is modelled as a complete (fully
connected) graph, where every node is a
potential candidate to substitute
another
• In algorithmic terms, inverting the matrix
means evaluating the rates of
substitution across the complete graph
• For a numerically-ill conditioned covariance matrix, small estimation
errors over several edges lead to grossly incorrect inversions
• Correlation matrices lack the notion of hierarchy, because all
investments are potential substitutes to each other
• Intuitively it would be desirable to drop unnecessary edges
SECTION III
Hierarchical Risk Parity (HRP)
Adding a Hierarchical Structure
13
• A tree structure introduces two desirable
features:
– It has only N-1 edges to connect N nodes, so
the weights only rebalance among peers at
various hierarchical levels
– The weights are distributed top-down,
consistent with how many asset managers
build their portfolios, e.g. from asset class to
sectors to individual securities
• The HRP algorithm works in three stages:
1. Tree Clustering: Group similar investments into clusters, based on a proper
distance metric
2. Quasi-diagonalization: Reorganize the rows and columns of the covariance
matrix, so that the largest values lie along the diagonal
3. Recursive bisection: Split allocations through recursive bisection of the
reordered covariance matrix
Stage 1: Tree Clustering (1/3)
14
• The only input needed is the correlation matrix, of size 𝑁𝑥𝑁
1. Define the distance measure 𝑑: 𝑋𝑖, 𝑋𝑗 ⊂ 𝐵 → ℝ ∈ 0,1 ,
𝑑𝑖,𝑗 = 𝑑 𝑋𝑖, 𝑋𝑗 =
1
2
1 − 𝜌𝑖,𝑗 , where B is the Cartesian product
of items in 1, … , 𝑖, … , 𝑁 . This forms a proper metric space D
2. Compute the Euclidean distance on D, 𝑑: 𝐷𝑖, 𝐷𝑗 ⊂ 𝐵 → ℝ ∈
0, 𝑁 = 𝑑 𝑛,𝑖 − 𝑑 𝑛,𝑗
2𝑁
𝑛=1
• Note the difference between distance
metrics 𝑑𝑖,𝑗 and 𝑑𝑖,𝑗. Whereas 𝑑𝑖,𝑗 is
defined on column-vectors of X, 𝑑𝑖,𝑗 is
defined on column-vectors of D (a distance
of distances)
Stage 1: Tree Clustering (2/3)
15
3. Cluster together the pair of columns 𝑖∗, 𝑗∗ such that
𝑖∗
, 𝑗∗
= argmin 𝑖,𝑗
𝑖≠𝑗
𝑑𝑖,𝑗
4. Update 𝑑𝑖,𝑗 with the new cluster
5. Apply steps 3-4 recursively until all 𝑁 − 1 clusters are formed
• Similar items are clustered together, in a
tree structure where two leaves are
bundled together at each iteration
• The dendogram’s y-axis reports the
distance between the two joining leaves
Stage 1: Tree Clustering (3/3)
16
#------------------------------------------------------------------------------
import scipy.cluster.hierarchy as sch
import numpy as np
import pandas as pd
cov,corr=x.cov(),x.corr()
dist=((1-corr)/2.)**.5 # distance matrix
link=sch.linkage(dist,'single') # linkage matrix
Stage 2: Quasi-Diagonalization (1/2)
17
• This stage places correlated items together, and uncorrelated items
far apart. This is accomplished by
– replacing clusters with their components recursively, until no clusters remain
– replacements preserve the order of the clustering
• Because the resulting covariance is quasi-diagonal, we define the
variance of a continuous subset 𝐿𝑖 ∈ 𝐿 as the quadratic form
𝑉𝑖 ≡ 𝑤𝑖
′
𝑉𝑖 𝑤𝑖, where 𝐿 is the sorted list of all items and
o 𝑉𝑖 is the covariance matrix between the
constituents of subset 𝐿𝑖
o 𝑤𝑖 = diag 𝑉𝑖
−1 1
tr diag 𝑉 𝑖
−1 , where diag . and
tr . are the diagonal and trace operators
• This definition of 𝑉𝑖 is motivated by the fact
that the inverse-variance allocation is
optimal for a diagonal covariance matrix
Stage 2: Quasi-Diagonalization (2/2)
18
sortIx=getQuasiDiag(link)
#------------------------------------------------------------------------------
def getQuasiDiag(link):
# Sort clustered items by distance
link=link.astype(int)
sortIx=pd.Series([link[-1,0],link[-1,1]])
numItems=link[-1,3] # number of original items
while sortIx.max()>=numItems:
sortIx.index=range(0,sortIx.shape[0]*2,2) # make space
df0=sortIx[sortIx>=numItems] # find clusters
i=df0.index;j=df0.values-numItems
sortIx[i]=link[j,0] # item 1
df0=pd.Series(link[j,1],index=i+1)
sortIx=sortIx.append(df0) # item 2
sortIx=sortIx.sort_index() # re-sort
sortIx.index=range(sortIx.shape[0]) # re-index
return sortIx.tolist()
Stage 3: Recursive Bisection (1/2)
19
• This stage carries out a top-down allocation
1. Assign a unit weight to all items: 𝑤 𝑛 = 1, ∀𝑛 = 1, … , 𝑁
2. Recursively bisect a list 𝐿𝑖 of items into two lists 𝐿𝑖
1
⋃𝐿𝑖
2
3. Compute the variance 𝑉𝑖
𝑗
of 𝐿𝑖
𝑗
, 𝑗 = 1,2
4. Compute the split factor: 𝛼𝑖 = 1 −
𝑉𝑖
1
𝑉𝑖
1
+𝑉𝑖
2 , so that 0 ≤ 𝛼𝑖 ≤ 1
5. Re-scale allocations 𝑤 𝑛 by a factor of 𝛼𝑖, ∀𝑛 ∈ 𝐿𝑖
1
6. Re-scale allocations 𝑤 𝑛 by a factor of 1 − 𝛼𝑖 , ∀𝑛 ∈ 𝐿𝑖
2
7. Stop once 𝐿𝑖 = 1, ∀𝐿𝑖 ∈ 𝐿
• This algorithm takes advantage of the quasi-diagonalization
bottom-up (step 3) and top-down (step 4)
Stage 3: Recursive Bisection (2/2)
20
hrp=getRecBipart(cov,sortIx)
#------------------------------------------------------------------------------
def getRecBipart(cov,sortIx):
# Compute HRP alloc
w=pd.Series(1,index=sortIx)
cItems=[sortIx] # initialize all items in one section
while len(cItems)>0:
cItems=[i[j:k] for i in cItems for j,k in ((0,len(i)/2), 
(len(i)/2,len(i))) if len(i)>1] # bi-section
for i in xrange(0,len(cItems),2): # parse in pairs
cItems0=cItems[i] # section 1
cItems1=cItems[i+1] # section 2
cVar0=getClusterVar(cov,cItems0)
cVar1=getClusterVar(cov,cItems1)
alpha=1-cVar0/(cVar0+cVar1)
w[cItems0]*=alpha # weight 1
w[cItems1]*=1-alpha # weight 2
return w
A Numerical Example
21
• Simulate a matrix of observations X, of order 10000𝑥10
• Add random jumps and a random correlation structure
• Apply three alternative allocation methods:
– Quadratic optimization, represented by CLA
– Risk parity, represented by the Inverse Variance Portfolio (IVP)
– Hierarchical allocation, represented by HRP
• CLA concentrates weights on a few
investments, hence becoming exposed
to idiosyncratic shocks
• IVP evenly spreads weights through all
investments, ignoring the correlation
structure. This makes it vulnerable to
systemic shocks
• HRP diversifies across clusters & items
Weight # CLA HRP IVP
1 14.44% 7.00% 10.36%
2 19.93% 7.59% 10.28%
3 19.73% 10.84% 10.36%
4 19.87% 19.03% 10.25%
5 18.68% 9.72% 10.31%
6 0.00% 10.19% 9.74%
7 5.86% 6.62% 9.80%
8 1.49% 9.10% 9.65%
9 0.00% 7.12% 9.64%
10 0.00% 12.79% 9.61%
SECTION IV
Out-Of-Sample Monte Carlo Experiments
Experiment Design
23
• By definition, CLA has the lowest variance in-sample
• But what method delivers the lowest variance out-of-sample?
1. Generate 10 series of random Gaussian returns (520 observations,
equivalent to 2 years of daily history), with 0 mean and an
arbitrary standard deviation of 10%
– Add random shocks, idiosyncratic and common to correlated assets
– Add a random correlation structure
2. Compute HRP, CLA and IVP portfolios by looking back at 260
observations (a year of daily history)
– These portfolios are re-estimated and rebalanced every 22 observations
(equivalent to a monthly frequency).
3. Compute the out-of-sample returns associated with the three
portfolios: CLA, IVP, HRP
4. This procedure is repeated 10,000 times
CLA Allocations
24
• Variance of the out-of-sample portfolio returns: 𝝈 𝑪𝑳𝑨
𝟐
=. 𝟏𝟏𝟓𝟕
• Although CLA’s goal is to deliver the lowest variance (that is
the objective of its optimization program), its performance
happens to exhibit the highest variance out-of-sample, and
72.47% greater variance than HRP’s
• Let’s pick one of the 10,000
experiments, and see how CLA
allocations changed between
rebalances.
• CLA allocations respond
erratically to idiosyncratic and
common shocks
IVP Allocations
25
• Variance of the out-of-sample portfolio returns: 𝝈 𝑰𝑽𝑷
𝟐
=. 𝟎𝟗𝟐𝟖
• Assuming that the covariance matrix is diagonal brings some
stability to the IVP, however its variance is still 38.24% greater
than HRP’s
• IVP’s response to idiosyncratic
and common shocks is to
reduce the allocation to the
affected investment, and
spread that former exposure
across all other investments
• Consequently, IVP allocations
among the unaffected
investments grow over time,
regardless of their correlation
HRP Allocations
26
• Variance of the out-of-sample portfolio returns: 𝝈 𝑯𝑷𝑪
𝟐
=. 𝟎𝟔𝟕𝟏
• HRP’s response to the idiosyncratic shock is to reduce the
allocation to the affected investment, and use that reduced
amount to increase the allocation to a correlated investment
that was unaffected
• As a response to the common
shock, HRP reduces allocation
to the affected investments,
and increases allocation to
uncorrelated ones (with lower
variance)
• Because Risk Parity funds are
leveraged, this variance
reduction is critical
SECTION V
Further Research
Big Data is Hierarchical
28
• Small-data techniques developed decades and centuries ago (factor
models, regression analysis, econometrics) fail to recognize the
hierarchical nature of financial Big Data
• A PCA analysis on a large fixed income universe suffers the same
drawbacks we described for CLA
Next Steps
29
• At its core, HRP is essentially a robust procedure to avoid matrix
inversions
• It is relatively straightforward to incorporate forecasted returns and
Black-Litterman-style views to this hierarchical approach
• The same ideas underlying HRP can be used to replace many
econometric regression methods, notorious for their unstable
outputs (like VAR or VECM)
• Traditional optimization or econometric methods fail to recognize
the hierarchical structure of financial Big Data, where the numerical
instabilities defeat the benefits of the analysis, resulting in
unreliable outcomes
THANKS FOR YOUR ATTENTION!
30
Notice:
The full paper is available at:
http://ssrn.com/abstract=2708678
For information on other disruptive financial technologies:
http://www.ssrn.com/link/Big-Data-Innovative-Financial-Tech-RES.html
Bio
Marcos López de Prado is Senior Managing Director at Guggenheim Partners. He is also a Research Fellow
at Lawrence Berkeley National Laboratory's Computational Research Division (U.S. Department of Energy’s
Office of Science), where he conducts unclassified research in the mathematics of large-scale financial
problems and supercomputing.
Before that, Marcos was Head of Quantitative Trading & Research at Hess Energy Trading Company (the
trading arm of Hess Corporation, a Fortune 100 company) and Head of Global Quantitative Research at
Tudor Investment Corporation. In addition to his 17 years of trading and investment management
experience at some of the largest corporations, he has received several academic appointments, including
Postdoctoral Research Fellow of RCC at Harvard University and Visiting Scholar at Cornell University. Marcos
earned a Ph.D. in Financial Economics (2003), a second Ph.D. in Mathematical Finance (2011) from
Complutense University, is a recipient of the National Award for Excellence in Academic Performance by the
Government of Spain (National Valedictorian, 1998) among other awards, and was admitted into American
Mensa with a perfect test score.
Marcos serves on the Editorial Board of the Journal of Portfolio Management (IIJ) and the Journal of
Investment Strategies (Risk). He has collaborated with ~30 leading academics, resulting in some of the most
read papers in Finance (SSRN), multiple international patent applications on Algorithmic Trading, three
textbooks, numerous publications in the top Mathematical Finance journals, etc. Marcos has an Erdös #2
and an Einstein #4 according to the American Mathematical Society. www.QuantResearch.org
32
Disclaimer
• The views expressed in this document are the authors’
and do not necessarily reflect those of the
organizations he is affiliated with
• No investment decision or particular course of action is
recommended by this presentation
• All Rights Reserved
33

Más contenido relacionado

La actualidad más candente

Swarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimizationSwarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimizationMuhammad Haroon
 
07 regularization
07 regularization07 regularization
07 regularizationRonald Teo
 
Cs6660 compiler design may june 2016 Answer Key
Cs6660 compiler design may june 2016 Answer KeyCs6660 compiler design may june 2016 Answer Key
Cs6660 compiler design may june 2016 Answer Keyappasami
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationanurag singh
 
Compiler optimization techniques
Compiler optimization techniquesCompiler optimization techniques
Compiler optimization techniquesHardik Devani
 
K mean-clustering algorithm
K mean-clustering algorithmK mean-clustering algorithm
K mean-clustering algorithmparry prabhu
 
Relational Algebra and MapReduce
Relational Algebra and MapReduceRelational Algebra and MapReduce
Relational Algebra and MapReducePietro Michiardi
 
Performance Evaluation for Classifiers tutorial
Performance Evaluation for Classifiers tutorialPerformance Evaluation for Classifiers tutorial
Performance Evaluation for Classifiers tutorialBilkent University
 
Attention mechanism 소개 자료
Attention mechanism 소개 자료Attention mechanism 소개 자료
Attention mechanism 소개 자료Whi Kwon
 
Practical Non-Monotonic Reasoning
Practical Non-Monotonic ReasoningPractical Non-Monotonic Reasoning
Practical Non-Monotonic ReasoningGuido Governatori
 
Ensemble Learning and Random Forests
Ensemble Learning and Random ForestsEnsemble Learning and Random Forests
Ensemble Learning and Random ForestsCloudxLab
 
Ensemble learning
Ensemble learningEnsemble learning
Ensemble learningHaris Jamil
 
lecture 30
lecture 30lecture 30
lecture 30sajinsc
 

La actualidad más candente (20)

Swarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimizationSwarm intelligence and particle swarm optimization
Swarm intelligence and particle swarm optimization
 
07 regularization
07 regularization07 regularization
07 regularization
 
Cs6660 compiler design may june 2016 Answer Key
Cs6660 compiler design may june 2016 Answer KeyCs6660 compiler design may june 2016 Answer Key
Cs6660 compiler design may june 2016 Answer Key
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
Compiler optimization techniques
Compiler optimization techniquesCompiler optimization techniques
Compiler optimization techniques
 
Lecture26
Lecture26Lecture26
Lecture26
 
K mean-clustering algorithm
K mean-clustering algorithmK mean-clustering algorithm
K mean-clustering algorithm
 
Randomized Algorithm
Randomized AlgorithmRandomized Algorithm
Randomized Algorithm
 
Relational Algebra and MapReduce
Relational Algebra and MapReduceRelational Algebra and MapReduce
Relational Algebra and MapReduce
 
Performance Evaluation for Classifiers tutorial
Performance Evaluation for Classifiers tutorialPerformance Evaluation for Classifiers tutorial
Performance Evaluation for Classifiers tutorial
 
Attention mechanism 소개 자료
Attention mechanism 소개 자료Attention mechanism 소개 자료
Attention mechanism 소개 자료
 
Practical Non-Monotonic Reasoning
Practical Non-Monotonic ReasoningPractical Non-Monotonic Reasoning
Practical Non-Monotonic Reasoning
 
Ensemble Learning and Random Forests
Ensemble Learning and Random ForestsEnsemble Learning and Random Forests
Ensemble Learning and Random Forests
 
Ensemble learning
Ensemble learningEnsemble learning
Ensemble learning
 
lecture 30
lecture 30lecture 30
lecture 30
 
5.1 greedy
5.1 greedy5.1 greedy
5.1 greedy
 
Dynamic programming
Dynamic programmingDynamic programming
Dynamic programming
 
Anfis (1)
Anfis (1)Anfis (1)
Anfis (1)
 
Birch
BirchBirch
Birch
 
Greedy method by Dr. B. J. Mohite
Greedy method by Dr. B. J. MohiteGreedy method by Dr. B. J. Mohite
Greedy method by Dr. B. J. Mohite
 

Similar a "Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos López de Prado, Senior Managing Director at Guggenheim Partners 

Data structure-questions
Data structure-questionsData structure-questions
Data structure-questionsShekhar Chander
 
Exploiting the query structure for efficient join ordering in SPARQL queries
Exploiting the query structure for efficient join ordering in SPARQL queriesExploiting the query structure for efficient join ordering in SPARQL queries
Exploiting the query structure for efficient join ordering in SPARQL queriesLuiz Henrique Zambom Santana
 
Programming in python
Programming in pythonProgramming in python
Programming in pythonIvan Rojas
 
Unsupervised Learning in Machine Learning
Unsupervised Learning in Machine LearningUnsupervised Learning in Machine Learning
Unsupervised Learning in Machine LearningPyingkodi Maran
 
for sbi so Ds c c++ unix rdbms sql cn os
for sbi so   Ds c c++ unix rdbms sql cn osfor sbi so   Ds c c++ unix rdbms sql cn os
for sbi so Ds c c++ unix rdbms sql cn osalisha230390
 
An_Accelerated_Nearest_Neighbor_Search_Method_for_the_K-Means_Clustering_Algo...
An_Accelerated_Nearest_Neighbor_Search_Method_for_the_K-Means_Clustering_Algo...An_Accelerated_Nearest_Neighbor_Search_Method_for_the_K-Means_Clustering_Algo...
An_Accelerated_Nearest_Neighbor_Search_Method_for_the_K-Means_Clustering_Algo...Adam Fausett
 
Spatial data mining
Spatial data miningSpatial data mining
Spatial data miningMITS Gwalior
 
machine learning - Clustering in R
machine learning - Clustering in Rmachine learning - Clustering in R
machine learning - Clustering in RSudhakar Chavan
 
CLUSTER ANALYSIS ALGORITHMS.pptx
CLUSTER ANALYSIS ALGORITHMS.pptxCLUSTER ANALYSIS ALGORITHMS.pptx
CLUSTER ANALYSIS ALGORITHMS.pptxShwetapadmaBabu1
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learningKnoldus Inc.
 
Advanced database and data mining & clustering concepts
Advanced database and data mining & clustering conceptsAdvanced database and data mining & clustering concepts
Advanced database and data mining & clustering conceptsNithyananthSengottai
 
Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Sateesh Allu
 
II B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptxII B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptxsabithabanu83
 
07 dimensionality reduction
07 dimensionality reduction07 dimensionality reduction
07 dimensionality reductionMarco Quartulli
 
Parallel Computing 2007: Bring your own parallel application
Parallel Computing 2007: Bring your own parallel applicationParallel Computing 2007: Bring your own parallel application
Parallel Computing 2007: Bring your own parallel applicationGeoffrey Fox
 
OBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkk
OBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkkOBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkk
OBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkkshesnasuneer
 

Similar a "Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos López de Prado, Senior Managing Director at Guggenheim Partners  (20)

Data structure-questions
Data structure-questionsData structure-questions
Data structure-questions
 
Exploiting the query structure for efficient join ordering in SPARQL queries
Exploiting the query structure for efficient join ordering in SPARQL queriesExploiting the query structure for efficient join ordering in SPARQL queries
Exploiting the query structure for efficient join ordering in SPARQL queries
 
Programming in python
Programming in pythonProgramming in python
Programming in python
 
Unsupervised Learning in Machine Learning
Unsupervised Learning in Machine LearningUnsupervised Learning in Machine Learning
Unsupervised Learning in Machine Learning
 
for sbi so Ds c c++ unix rdbms sql cn os
for sbi so   Ds c c++ unix rdbms sql cn osfor sbi so   Ds c c++ unix rdbms sql cn os
for sbi so Ds c c++ unix rdbms sql cn os
 
An_Accelerated_Nearest_Neighbor_Search_Method_for_the_K-Means_Clustering_Algo...
An_Accelerated_Nearest_Neighbor_Search_Method_for_the_K-Means_Clustering_Algo...An_Accelerated_Nearest_Neighbor_Search_Method_for_the_K-Means_Clustering_Algo...
An_Accelerated_Nearest_Neighbor_Search_Method_for_the_K-Means_Clustering_Algo...
 
Neural nw k means
Neural nw k meansNeural nw k means
Neural nw k means
 
Spatial data mining
Spatial data miningSpatial data mining
Spatial data mining
 
machine learning - Clustering in R
machine learning - Clustering in Rmachine learning - Clustering in R
machine learning - Clustering in R
 
CLUSTER ANALYSIS ALGORITHMS.pptx
CLUSTER ANALYSIS ALGORITHMS.pptxCLUSTER ANALYSIS ALGORITHMS.pptx
CLUSTER ANALYSIS ALGORITHMS.pptx
 
UNIT_V_Cluster Analysis.pptx
UNIT_V_Cluster Analysis.pptxUNIT_V_Cluster Analysis.pptx
UNIT_V_Cluster Analysis.pptx
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learning
 
Bigdata analytics
Bigdata analyticsBigdata analytics
Bigdata analytics
 
Advanced database and data mining & clustering concepts
Advanced database and data mining & clustering conceptsAdvanced database and data mining & clustering concepts
Advanced database and data mining & clustering concepts
 
Technical aptitude questions_e_book1
Technical aptitude questions_e_book1Technical aptitude questions_e_book1
Technical aptitude questions_e_book1
 
II B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptxII B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptx
 
07 dimensionality reduction
07 dimensionality reduction07 dimensionality reduction
07 dimensionality reduction
 
Data structure-question-bank
Data structure-question-bankData structure-question-bank
Data structure-question-bank
 
Parallel Computing 2007: Bring your own parallel application
Parallel Computing 2007: Bring your own parallel applicationParallel Computing 2007: Bring your own parallel application
Parallel Computing 2007: Bring your own parallel application
 
OBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkk
OBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkkOBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkk
OBJECTRECOGNITION1.pptxjjjkkkkjjjjkkkkkkk
 

Más de Quantopian

Being open (source) in the traditionally secretive field of quant finance.
Being open (source) in the traditionally secretive field of quant finance.Being open (source) in the traditionally secretive field of quant finance.
Being open (source) in the traditionally secretive field of quant finance.Quantopian
 
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018Quantopian
 
Tearsheet feedback webinar 10.10.18
Tearsheet feedback webinar 10.10.18Tearsheet feedback webinar 10.10.18
Tearsheet feedback webinar 10.10.18Quantopian
 
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,..."Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...Quantopian
 
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle Alpha
"Alpha from Alternative Data" by Emmett Kilduff,  Founder and CEO of Eagle Alpha"Alpha from Alternative Data" by Emmett Kilduff,  Founder and CEO of Eagle Alpha
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle AlphaQuantopian
 
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese..."Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...Quantopian
 
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob..."Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...Quantopian
 
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas..."Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...Quantopian
 
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...Quantopian
 
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...Quantopian
 
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin..."Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...Quantopian
 
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ..."How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...Quantopian
 
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlphaQuantopian
 
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D..."From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...Quantopian
 
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo..."Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...Quantopian
 
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes..."Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...Quantopian
 
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red..."From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...Quantopian
 
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael..."Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...Quantopian
 
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ..."A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...Quantopian
 
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ..."Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...Quantopian
 

Más de Quantopian (20)

Being open (source) in the traditionally secretive field of quant finance.
Being open (source) in the traditionally secretive field of quant finance.Being open (source) in the traditionally secretive field of quant finance.
Being open (source) in the traditionally secretive field of quant finance.
 
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
 
Tearsheet feedback webinar 10.10.18
Tearsheet feedback webinar 10.10.18Tearsheet feedback webinar 10.10.18
Tearsheet feedback webinar 10.10.18
 
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,..."Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
 
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle Alpha
"Alpha from Alternative Data" by Emmett Kilduff,  Founder and CEO of Eagle Alpha"Alpha from Alternative Data" by Emmett Kilduff,  Founder and CEO of Eagle Alpha
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle Alpha
 
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese..."Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
 
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob..."Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
 
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas..."Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
 
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
 
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
 
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin..."Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
 
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ..."How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
 
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
 
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D..."From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
 
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo..."Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
 
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes..."Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
 
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red..."From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
 
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael..."Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
 
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ..."A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
 
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ..."Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
 

Último

VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...dipikadinghjn ( Why You Choose Us? ) Escorts
 
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
The Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdfThe Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdfGale Pooley
 
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...dipikadinghjn ( Why You Choose Us? ) Escorts
 
Stock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfStock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfMichael Silva
 
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...ssifa0344
 
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptxFinTech Belgium
 
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...ssifa0344
 
The Economic History of the U.S. Lecture 17.pdf
The Economic History of the U.S. Lecture 17.pdfThe Economic History of the U.S. Lecture 17.pdf
The Economic History of the U.S. Lecture 17.pdfGale Pooley
 
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )Pooja Nehwal
 
VIP Call Girl in Mumbai 💧 9920725232 ( Call Me ) Get A New Crush Everyday Wit...
VIP Call Girl in Mumbai 💧 9920725232 ( Call Me ) Get A New Crush Everyday Wit...VIP Call Girl in Mumbai 💧 9920725232 ( Call Me ) Get A New Crush Everyday Wit...
VIP Call Girl in Mumbai 💧 9920725232 ( Call Me ) Get A New Crush Everyday Wit...dipikadinghjn ( Why You Choose Us? ) Escorts
 
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...Delhi Call girls
 
Indore Real Estate Market Trends Report.pdf
Indore Real Estate Market Trends Report.pdfIndore Real Estate Market Trends Report.pdf
Indore Real Estate Market Trends Report.pdfSaviRakhecha1
 
Top Rated Pune Call Girls Sinhagad Road ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated  Pune Call Girls Sinhagad Road ⟟ 6297143586 ⟟ Call Me For Genuine S...Top Rated  Pune Call Girls Sinhagad Road ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated Pune Call Girls Sinhagad Road ⟟ 6297143586 ⟟ Call Me For Genuine S...Call Girls in Nagpur High Profile
 
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
The Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdfThe Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdfGale Pooley
 
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure serviceWhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure servicePooja Nehwal
 
The Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfThe Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfGale Pooley
 
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...priyasharma62062
 

Último (20)

VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
 
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Wadgaon Sheri  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Wadgaon Sheri 6297143586 Call Hot Ind...
 
The Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdfThe Economic History of the U.S. Lecture 21.pdf
The Economic History of the U.S. Lecture 21.pdf
 
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
 
Stock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdfStock Market Brief Deck (Under Pressure).pdf
Stock Market Brief Deck (Under Pressure).pdf
 
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
Solution Manual for Principles of Corporate Finance 14th Edition by Richard B...
 
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
 
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
TEST BANK For Corporate Finance, 13th Edition By Stephen Ross, Randolph Weste...
 
The Economic History of the U.S. Lecture 17.pdf
The Economic History of the U.S. Lecture 17.pdfThe Economic History of the U.S. Lecture 17.pdf
The Economic History of the U.S. Lecture 17.pdf
 
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
Vip Call US 📞 7738631006 ✅Call Girls In Sakinaka ( Mumbai )
 
VIP Call Girl in Mumbai 💧 9920725232 ( Call Me ) Get A New Crush Everyday Wit...
VIP Call Girl in Mumbai 💧 9920725232 ( Call Me ) Get A New Crush Everyday Wit...VIP Call Girl in Mumbai 💧 9920725232 ( Call Me ) Get A New Crush Everyday Wit...
VIP Call Girl in Mumbai 💧 9920725232 ( Call Me ) Get A New Crush Everyday Wit...
 
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...
Call Girls in New Friends Colony Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escort...
 
Indore Real Estate Market Trends Report.pdf
Indore Real Estate Market Trends Report.pdfIndore Real Estate Market Trends Report.pdf
Indore Real Estate Market Trends Report.pdf
 
Top Rated Pune Call Girls Sinhagad Road ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated  Pune Call Girls Sinhagad Road ⟟ 6297143586 ⟟ Call Me For Genuine S...Top Rated  Pune Call Girls Sinhagad Road ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated Pune Call Girls Sinhagad Road ⟟ 6297143586 ⟟ Call Me For Genuine S...
 
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Koregaon Park Call Me 7737669865 Budget Friendly No Advance Booking
 
The Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdfThe Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdf
 
Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7
Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7
Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7
 
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure serviceWhatsApp 📞 Call : 9892124323  ✅Call Girls In Chembur ( Mumbai ) secure service
WhatsApp 📞 Call : 9892124323 ✅Call Girls In Chembur ( Mumbai ) secure service
 
The Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfThe Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdf
 
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
Mira Road Memorable Call Grls Number-9833754194-Bhayandar Speciallty Call Gir...
 

"Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos López de Prado, Senior Managing Director at Guggenheim Partners 

  • 1. Marcos López de Prado Lawrence Berkeley National Laboratory Computational Research Division Building Diversified Portfolios that Outperform Out-Of-Sample
  • 2. Key Points 2 • The problem: Mean-Variance (MV) portfolios are optimal in-sample, however they tend to perform poorly out-of-sample (even worse than the 1/N naïve portfolio!) • Two major causes: 1. Returns can rarely be forecasted with sufficient accuracy 2. Quadratic optimizers require the inversion of a positive-definite covariance matrix • A partial solution: To deal with the first cause, some modern approaches drop returns forecasts, e.g. Risk Parity (RP) • Still, matrix inversion is a major reason why MV and RP underperform out-of-sample (OOS) • We introduce a new portfolio construction method that substantially improves the OOS performance of diversified portfolios
  • 3. SECTION I The Pitfalls of Quadratic Optimizers
  • 4. Quadratic Optimization 4 • In 1956, Harry Markowitz developed the Critical Line Algorithm (CLA): – CLA is a quadratic optimization procedure specifically designed for inequality constraints portfolio optimization – It finds the exact solution after a known number of steps – It ingeniously circumvents the Karush-Kuhn-Tucker conditions through the notion of “turning point” • A turning point occurs when a previously free weight hits a boundary • The constrained efficient frontier between two neighbor turning points can be reformulated as an unconstrained problem • CLA solves the optimization problem by finding the sequence of turning points Open source CLA Python library: Bailey and López de Prado [2013]
  • 5. Risk Parity 5 • Numerous studies show that quadratic optimizers in general produce unreliable solutions, e.g. Michaud [1998] • One major reason for this is, returns can rarely be forecasted with sufficient confidence • Small forecasting errors can lead to dramatically different Efficient Frontiers As a consequence, many authors have dropped returns forecasting altogether, giving rise to risk-based asset allocation approaches. E.g.: Risk parity
  • 6. Markowitz’s curse 6 • De Miguel et al. [2009] show that many of the best known quadratic optimizers underperform the Naïve 1/N allocation OOS, even after dropping forecasted returns! • The reason is, quadratic optimizers require the inversion of a positive-definite covariance matrix • The condition number of a covariance matrix is the ratio between its highest and smallest (in moduli) eigenvalues • The more correlated the assets, the higher the condition number, and the more unstable is the inverse matrix • Markowitz’s curse: Quadratic optimization is likely to fail precisely when there is a greater need for finding a diversified portfolio
  • 8. Topology 8 • Around 1735, Leonhard Euler asked this question • Euler was one of the first to recognize that Geometry could not solve this problem • Hint: The relevant information is not the geometric location of the bridges, but their logical relations Is it possible to walk through the city of Königsberg crossing each bridge once and only once, ending at the starting point?
  • 9. Graph Theory 9 • A graph can be understood as a relational map between pairs of items • Once considered a branch of Topology, Graph Theory has grown to become a Mathematical subject in its own right • Graph theory can answer questions regarding the logical structure, architecture and dynamics of a complex system Graph Theory is applied by Google to rank hyperlinks, by GPS systems to find your shortest path home, by LinkedIn to suggest connections, by the NSA to track terrorists... In the example above, Graph Theory is used to derive the political inclination of a community, based on the speeches they re-tweet
  • 10. Topology & Graph Theory at work 10 • Subway plans are not geographic maps, but topological representations of how lines and stations are interconnected • Adding to that map geographic details would make it more difficult to solve problems such as how to find alternative routes, minimize waiting time, avoid congestion paths, etc.
  • 11. What does it mean “inverting the matrix”? 11 • One reason for the instability of quadratic optimizers is that the vector space is modelled as a complete (fully connected) graph, where every node is a potential candidate to substitute another • In algorithmic terms, inverting the matrix means evaluating the rates of substitution across the complete graph • For a numerically-ill conditioned covariance matrix, small estimation errors over several edges lead to grossly incorrect inversions • Correlation matrices lack the notion of hierarchy, because all investments are potential substitutes to each other • Intuitively it would be desirable to drop unnecessary edges
  • 13. Adding a Hierarchical Structure 13 • A tree structure introduces two desirable features: – It has only N-1 edges to connect N nodes, so the weights only rebalance among peers at various hierarchical levels – The weights are distributed top-down, consistent with how many asset managers build their portfolios, e.g. from asset class to sectors to individual securities • The HRP algorithm works in three stages: 1. Tree Clustering: Group similar investments into clusters, based on a proper distance metric 2. Quasi-diagonalization: Reorganize the rows and columns of the covariance matrix, so that the largest values lie along the diagonal 3. Recursive bisection: Split allocations through recursive bisection of the reordered covariance matrix
  • 14. Stage 1: Tree Clustering (1/3) 14 • The only input needed is the correlation matrix, of size 𝑁𝑥𝑁 1. Define the distance measure 𝑑: 𝑋𝑖, 𝑋𝑗 ⊂ 𝐵 → ℝ ∈ 0,1 , 𝑑𝑖,𝑗 = 𝑑 𝑋𝑖, 𝑋𝑗 = 1 2 1 − 𝜌𝑖,𝑗 , where B is the Cartesian product of items in 1, … , 𝑖, … , 𝑁 . This forms a proper metric space D 2. Compute the Euclidean distance on D, 𝑑: 𝐷𝑖, 𝐷𝑗 ⊂ 𝐵 → ℝ ∈ 0, 𝑁 = 𝑑 𝑛,𝑖 − 𝑑 𝑛,𝑗 2𝑁 𝑛=1 • Note the difference between distance metrics 𝑑𝑖,𝑗 and 𝑑𝑖,𝑗. Whereas 𝑑𝑖,𝑗 is defined on column-vectors of X, 𝑑𝑖,𝑗 is defined on column-vectors of D (a distance of distances)
  • 15. Stage 1: Tree Clustering (2/3) 15 3. Cluster together the pair of columns 𝑖∗, 𝑗∗ such that 𝑖∗ , 𝑗∗ = argmin 𝑖,𝑗 𝑖≠𝑗 𝑑𝑖,𝑗 4. Update 𝑑𝑖,𝑗 with the new cluster 5. Apply steps 3-4 recursively until all 𝑁 − 1 clusters are formed • Similar items are clustered together, in a tree structure where two leaves are bundled together at each iteration • The dendogram’s y-axis reports the distance between the two joining leaves
  • 16. Stage 1: Tree Clustering (3/3) 16 #------------------------------------------------------------------------------ import scipy.cluster.hierarchy as sch import numpy as np import pandas as pd cov,corr=x.cov(),x.corr() dist=((1-corr)/2.)**.5 # distance matrix link=sch.linkage(dist,'single') # linkage matrix
  • 17. Stage 2: Quasi-Diagonalization (1/2) 17 • This stage places correlated items together, and uncorrelated items far apart. This is accomplished by – replacing clusters with their components recursively, until no clusters remain – replacements preserve the order of the clustering • Because the resulting covariance is quasi-diagonal, we define the variance of a continuous subset 𝐿𝑖 ∈ 𝐿 as the quadratic form 𝑉𝑖 ≡ 𝑤𝑖 ′ 𝑉𝑖 𝑤𝑖, where 𝐿 is the sorted list of all items and o 𝑉𝑖 is the covariance matrix between the constituents of subset 𝐿𝑖 o 𝑤𝑖 = diag 𝑉𝑖 −1 1 tr diag 𝑉 𝑖 −1 , where diag . and tr . are the diagonal and trace operators • This definition of 𝑉𝑖 is motivated by the fact that the inverse-variance allocation is optimal for a diagonal covariance matrix
  • 18. Stage 2: Quasi-Diagonalization (2/2) 18 sortIx=getQuasiDiag(link) #------------------------------------------------------------------------------ def getQuasiDiag(link): # Sort clustered items by distance link=link.astype(int) sortIx=pd.Series([link[-1,0],link[-1,1]]) numItems=link[-1,3] # number of original items while sortIx.max()>=numItems: sortIx.index=range(0,sortIx.shape[0]*2,2) # make space df0=sortIx[sortIx>=numItems] # find clusters i=df0.index;j=df0.values-numItems sortIx[i]=link[j,0] # item 1 df0=pd.Series(link[j,1],index=i+1) sortIx=sortIx.append(df0) # item 2 sortIx=sortIx.sort_index() # re-sort sortIx.index=range(sortIx.shape[0]) # re-index return sortIx.tolist()
  • 19. Stage 3: Recursive Bisection (1/2) 19 • This stage carries out a top-down allocation 1. Assign a unit weight to all items: 𝑤 𝑛 = 1, ∀𝑛 = 1, … , 𝑁 2. Recursively bisect a list 𝐿𝑖 of items into two lists 𝐿𝑖 1 ⋃𝐿𝑖 2 3. Compute the variance 𝑉𝑖 𝑗 of 𝐿𝑖 𝑗 , 𝑗 = 1,2 4. Compute the split factor: 𝛼𝑖 = 1 − 𝑉𝑖 1 𝑉𝑖 1 +𝑉𝑖 2 , so that 0 ≤ 𝛼𝑖 ≤ 1 5. Re-scale allocations 𝑤 𝑛 by a factor of 𝛼𝑖, ∀𝑛 ∈ 𝐿𝑖 1 6. Re-scale allocations 𝑤 𝑛 by a factor of 1 − 𝛼𝑖 , ∀𝑛 ∈ 𝐿𝑖 2 7. Stop once 𝐿𝑖 = 1, ∀𝐿𝑖 ∈ 𝐿 • This algorithm takes advantage of the quasi-diagonalization bottom-up (step 3) and top-down (step 4)
  • 20. Stage 3: Recursive Bisection (2/2) 20 hrp=getRecBipart(cov,sortIx) #------------------------------------------------------------------------------ def getRecBipart(cov,sortIx): # Compute HRP alloc w=pd.Series(1,index=sortIx) cItems=[sortIx] # initialize all items in one section while len(cItems)>0: cItems=[i[j:k] for i in cItems for j,k in ((0,len(i)/2), (len(i)/2,len(i))) if len(i)>1] # bi-section for i in xrange(0,len(cItems),2): # parse in pairs cItems0=cItems[i] # section 1 cItems1=cItems[i+1] # section 2 cVar0=getClusterVar(cov,cItems0) cVar1=getClusterVar(cov,cItems1) alpha=1-cVar0/(cVar0+cVar1) w[cItems0]*=alpha # weight 1 w[cItems1]*=1-alpha # weight 2 return w
  • 21. A Numerical Example 21 • Simulate a matrix of observations X, of order 10000𝑥10 • Add random jumps and a random correlation structure • Apply three alternative allocation methods: – Quadratic optimization, represented by CLA – Risk parity, represented by the Inverse Variance Portfolio (IVP) – Hierarchical allocation, represented by HRP • CLA concentrates weights on a few investments, hence becoming exposed to idiosyncratic shocks • IVP evenly spreads weights through all investments, ignoring the correlation structure. This makes it vulnerable to systemic shocks • HRP diversifies across clusters & items Weight # CLA HRP IVP 1 14.44% 7.00% 10.36% 2 19.93% 7.59% 10.28% 3 19.73% 10.84% 10.36% 4 19.87% 19.03% 10.25% 5 18.68% 9.72% 10.31% 6 0.00% 10.19% 9.74% 7 5.86% 6.62% 9.80% 8 1.49% 9.10% 9.65% 9 0.00% 7.12% 9.64% 10 0.00% 12.79% 9.61%
  • 22. SECTION IV Out-Of-Sample Monte Carlo Experiments
  • 23. Experiment Design 23 • By definition, CLA has the lowest variance in-sample • But what method delivers the lowest variance out-of-sample? 1. Generate 10 series of random Gaussian returns (520 observations, equivalent to 2 years of daily history), with 0 mean and an arbitrary standard deviation of 10% – Add random shocks, idiosyncratic and common to correlated assets – Add a random correlation structure 2. Compute HRP, CLA and IVP portfolios by looking back at 260 observations (a year of daily history) – These portfolios are re-estimated and rebalanced every 22 observations (equivalent to a monthly frequency). 3. Compute the out-of-sample returns associated with the three portfolios: CLA, IVP, HRP 4. This procedure is repeated 10,000 times
  • 24. CLA Allocations 24 • Variance of the out-of-sample portfolio returns: 𝝈 𝑪𝑳𝑨 𝟐 =. 𝟏𝟏𝟓𝟕 • Although CLA’s goal is to deliver the lowest variance (that is the objective of its optimization program), its performance happens to exhibit the highest variance out-of-sample, and 72.47% greater variance than HRP’s • Let’s pick one of the 10,000 experiments, and see how CLA allocations changed between rebalances. • CLA allocations respond erratically to idiosyncratic and common shocks
  • 25. IVP Allocations 25 • Variance of the out-of-sample portfolio returns: 𝝈 𝑰𝑽𝑷 𝟐 =. 𝟎𝟗𝟐𝟖 • Assuming that the covariance matrix is diagonal brings some stability to the IVP, however its variance is still 38.24% greater than HRP’s • IVP’s response to idiosyncratic and common shocks is to reduce the allocation to the affected investment, and spread that former exposure across all other investments • Consequently, IVP allocations among the unaffected investments grow over time, regardless of their correlation
  • 26. HRP Allocations 26 • Variance of the out-of-sample portfolio returns: 𝝈 𝑯𝑷𝑪 𝟐 =. 𝟎𝟔𝟕𝟏 • HRP’s response to the idiosyncratic shock is to reduce the allocation to the affected investment, and use that reduced amount to increase the allocation to a correlated investment that was unaffected • As a response to the common shock, HRP reduces allocation to the affected investments, and increases allocation to uncorrelated ones (with lower variance) • Because Risk Parity funds are leveraged, this variance reduction is critical
  • 28. Big Data is Hierarchical 28 • Small-data techniques developed decades and centuries ago (factor models, regression analysis, econometrics) fail to recognize the hierarchical nature of financial Big Data • A PCA analysis on a large fixed income universe suffers the same drawbacks we described for CLA
  • 29. Next Steps 29 • At its core, HRP is essentially a robust procedure to avoid matrix inversions • It is relatively straightforward to incorporate forecasted returns and Black-Litterman-style views to this hierarchical approach • The same ideas underlying HRP can be used to replace many econometric regression methods, notorious for their unstable outputs (like VAR or VECM) • Traditional optimization or econometric methods fail to recognize the hierarchical structure of financial Big Data, where the numerical instabilities defeat the benefits of the analysis, resulting in unreliable outcomes
  • 30. THANKS FOR YOUR ATTENTION! 30
  • 31. Notice: The full paper is available at: http://ssrn.com/abstract=2708678 For information on other disruptive financial technologies: http://www.ssrn.com/link/Big-Data-Innovative-Financial-Tech-RES.html
  • 32. Bio Marcos López de Prado is Senior Managing Director at Guggenheim Partners. He is also a Research Fellow at Lawrence Berkeley National Laboratory's Computational Research Division (U.S. Department of Energy’s Office of Science), where he conducts unclassified research in the mathematics of large-scale financial problems and supercomputing. Before that, Marcos was Head of Quantitative Trading & Research at Hess Energy Trading Company (the trading arm of Hess Corporation, a Fortune 100 company) and Head of Global Quantitative Research at Tudor Investment Corporation. In addition to his 17 years of trading and investment management experience at some of the largest corporations, he has received several academic appointments, including Postdoctoral Research Fellow of RCC at Harvard University and Visiting Scholar at Cornell University. Marcos earned a Ph.D. in Financial Economics (2003), a second Ph.D. in Mathematical Finance (2011) from Complutense University, is a recipient of the National Award for Excellence in Academic Performance by the Government of Spain (National Valedictorian, 1998) among other awards, and was admitted into American Mensa with a perfect test score. Marcos serves on the Editorial Board of the Journal of Portfolio Management (IIJ) and the Journal of Investment Strategies (Risk). He has collaborated with ~30 leading academics, resulting in some of the most read papers in Finance (SSRN), multiple international patent applications on Algorithmic Trading, three textbooks, numerous publications in the top Mathematical Finance journals, etc. Marcos has an Erdös #2 and an Einstein #4 according to the American Mathematical Society. www.QuantResearch.org 32
  • 33. Disclaimer • The views expressed in this document are the authors’ and do not necessarily reflect those of the organizations he is affiliated with • No investment decision or particular course of action is recommended by this presentation • All Rights Reserved 33