Day 33 — Return against what: excess, financing and the wrong benchmark
Tuesday, 8 September 2026 · Week 5 of 52 · Returns and noise · Study day · 60 min
Every ratio in the next two weeks divides by something, and choosing what you subtract first is a modelling decision that most published numbers make silently.
What you should be able to do tonight
- Say what a long-short market-neutral book earns on its cash, and what the correct risk-free adjustment for it is.
- Show, with your own numbers, how much of a reported Sharpe ratio can come from the choice of risk-free rate alone.
Tasks 60 min
25 min Finish the comparison you started last night: SPY Sharpe with and without the bill rate, in two eras. Report four numbers and the difference in each era. The 2004-2007 gap is the one that should change how you read any Sharpe published before 2009.
25 min Work out the cash mechanics for three books on paper: fully invested long-only, 100 long and 100 short, and a futures position with 5 percent margin posted. For each, say what balance earns interest, what balance pays it, and what the correct excess-return definition is.
10 min Add excess_returns(returns, rf) to qlib/returns.py, taking an annualised rate series and converting it to the daily convention correctly. Getting the day-count conversion right here saves an argument with yourself in week 43.
Resources
Deliverable
qlib/returns.py with excess-return handling, and four measured Sharpe ratios showing the risk-free rate’s contribution in two eras.
Checkpoint
Your market-neutral book is 100 long, 100 short, on 100 of capital. What is the correct benchmark return, and what do you earn on the short proceeds?
Prepare for tomorrow
Ten minutes tonight so Day 34, Wednesday, 9 September 2026 starts clean. This is what the evening email sends you.
Count the number of NYSE trading sessions in each of the last ten calendar years using exchange_calendars, and write the ten numbers down.
Write down the number you have always seen used instead.
Note the largest and smallest of the ten. Tomorrow is about what the gap costs you.