SLIDE 4 Quiz: What is the Sharpe Ratio?
- 60 Days of Data
- BPS – Basis points are tenths of percentages.
- Average Daily Return = 10 bps = 0.001
- Daily Risk Free Rate = 2 bps = 0.0002
- Standard Deviation Daily Return = 10 bps = 0.001
SR = SQRT ( Period ) * mean (Rportfolio- RRiskFree)
SR = SQRT ( Period ) * (10-2)
Quiz: What is the Sharpe Ratio?
- 60 Days of Data
- BPS – Basis points are tenths of percentages.
- Average Daily Return = 10 bps = 0.001
- Daily Risk Free Rate = 2 bps = 0.0002
- Standard Deviation Daily Return = 10 bps = 0.001
SR = SQRT ( Period ) * mean (Rportfolio- RRiskFree)
SR = SQRT ( Period ) * (10-2)
Project Demo
- Compute port_val and statistics…
Get the Daily Total Value of the Portfolio
- Step 1: Prices Data Frame index by dates
– prices is a frame.
- Step 2: Normalize by First Row
– normed = prices/prices[0]
- Step 3: Multiply by allocation (a vector)
– allocated = normed * allocs
- Step 4: Position values = worth each day
– pos_vals = allocated * start_val
- Step 5: Daily Total Value of Portfolio
– port_vals = pos_vals.sum(axis = 1)
prices normed allocated pos_vals port_vals
Given: Given: start_val start_val = $1,000,000 = $1,000,000 start_date start_date = 2011-01-01 = 2011-01-01 end_date end_date = 2011-12-31 = 2011-12-31 symbols =[‘SPY’,’XOM’, symbols =[‘SPY’,’XOM’, ’GOOG’, ‘GLD’] ’GOOG’, ‘GLD’] allocs = [0.4,0.4,0.1,0.1] allocs = [0.4,0.4,0.1,0.1]
prices/prices[0] normed/allocs allocated * start_val pos_vals.sum( axis = 1 )
port_vals = get_portfolio_value( prices, allocs, start_val)