Maximale Sharpe vs. minimale volatiliteit

Introductie tot portefeuille-analyse in Python

Charlotte Werger

Data Scientist

Weet je de efficiënte grens nog?

$$

  • Efficiënte grens: alle portefeuilles met een optimale balans tussen risico en rendement
  • Maximale Sharpe-portefeuille: de hoogste Sharpe-ratio op de EF
  • Minimale-volatiliteitportefeuille: het laagste risiconiveau op de EF

$$ Grafiek van de efficiënte grens

Introductie tot portefeuille-analyse in Python

Optimalisatie in PyPortfolioOpt aanpassen

Schema van opties in PyPortfolioOpt

Introductie tot portefeuille-analyse in Python

Maximale Sharpe-portefeuille

Maximale Sharpe-portefeuille: de hoogste Sharpe-ratio op de EF

from pypfopt.efficient_frontier import EfficientFrontier
# Calculate the Efficient Frontier with mu and S
ef = EfficientFrontier(mu, Sigma)
raw_weights = ef.max_sharpe()
# Get interpretable weights 
cleaned_weights = ef.clean_weights()
{'GOOG': 0.01269,'AAPL': 0.09202,'FB': 0.19856,
 'BABA': 0.09642,'AMZN': 0.07158,'GE': 0.02456,...}
Introductie tot portefeuille-analyse in Python

Maximale Sharpe-portefeuille

# Get performance numbers
ef.portfolio_performance(verbose=True)
Verwacht jaarlijks rendement: 33,0%
Jaarlijkse volatiliteit: 21,7%
Sharpe-ratio: 1,43
Introductie tot portefeuille-analyse in Python

Minimale-volatiliteitportefeuille

Minimale-volatiliteitportefeuille: het laagste risiconiveau op de EF

# Calculate the Efficient Frontier with mu and S
ef = EfficientFrontier(mu, Sigma)
raw_weights = ef.min_volatility()
# Get interpretable weights and performance numbers
cleaned_weights = ef.clean_weights()
{'GOOG': 0.05664, 'AAPL': 0.087, 'FB': 0.1591,
'BABA': 0.09784, 'AMZN': 0.06986, 'GE': 0.0123,...}
Introductie tot portefeuille-analyse in Python

Minimale-volatiliteitportefeuille

ef.portfolio_performance(verbose=True)
Verwacht jaarlijks rendement: 17,4%
Jaarlijkse volatiliteit: 13,2%
Sharpe-ratio: 1,28
Introductie tot portefeuille-analyse in Python

Kijk nog eens naar de efficiënte grens

Grafiek van de efficiënte grens met minimale volatiliteit en maximale Sharpe-portefeuille aangegeven

Introductie tot portefeuille-analyse in Python

Maximale Sharpe versus minimale volatiliteit

Grafiek van de efficiënte grens met minimale volatiliteit en maximale Sharpe-portefeuille aangegeven

Introductie tot portefeuille-analyse in Python

Laten we oefenen!

Introductie tot portefeuille-analyse in Python

Preparing Video For Download...