Skip to content

Commit

Permalink
Update cvar.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatManRong authored Dec 9, 2020
1 parent 7bef19a commit 9ed9014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Optimization/cvar.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def cvar(mu, Q, card, price_table, date, target_return, lookback,risk_appetite):
num_paths = 100
## get current prices of the current date
current_prices = price_table[date]
## the time length of simulation in the unit of estimation of mu and Q. Here T represents rebalancing every 8 weeks
T = 1
## the time length of simulation in the unit of estimation of mu and Q.
T = 26/lookback #Forward looking by 0.5 year
## the number of time steps to take in the simulation
N = lookback
## confident level for the VaR
Expand Down

0 comments on commit 9ed9014

Please sign in to comment.