Introductie tot portefeuille-analyse in Python
Charlotte Werger
Data Scientist
$ $
Portefeuille 1
$ $
Portefeuille 2
$$
$ Sharpe \; ratio = \frac{R_p - R_f} {\sigma_p} $
Waarbij: $ R_p$ het portefeuillerendement is, $R_f$ de risicovrije rente en ${\sigma_p} $ de standaarddeviatie van de portefeuille
Weet je de formule voor ${\sigma_p} $ nog?
$$
# Calculate the annualized standard deviation
annualized_vol = apple_returns.std()*np.sqrt(250)
print (annualized_vol)
0.2286248397870068
# Define the risk free rate
risk_free = 0.01
# Calcuate the sharpe ratio
sharpe_ratio = (annualized_return - risk_free) / annualized_vol
print (sharpe_ratio)
0.6419569149994251
$ $
Portefeuille 1
$ $
Portefeuille 2
Introductie tot portefeuille-analyse in Python