Measuring Portfolio Returns with Cash Flows and Daily Sharpe Data
Summary
The discussion distinguishes return calculations that account for external deposits and withdrawals from calculations based only on cumulative profit. For a calendar year or another measurement period, internal rate of return uses portfolio values at the start and end plus the dates and amounts of cash flows. Modified Dietz is a simpler approximation using similar information. Time-weighted return requires valuations at each cash flow so that returns over cash-flow-free intervals can be calculated and linked together. A unitized portfolio, tracking units and net asset value per unit, is presented as a practical accounting approach.
For an annualized Sharpe ratio, the answer says daily portfolio values or daily returns are needed across the period, along with the relevant daily cash-flow data to calculate those returns. It cites 252 trading days as a typical year, not as a substitute for the underlying observations. The question’s method of annualizing cumulative gross profit over the elapsed calendar span is therefore not enough to handle contributions, withdrawals, or daily risk. The response does not give the full Sharpe formula or specify a risk-free rate convention.
Key ideas
- IRR uses beginning and ending portfolio values along with dated cash flows.
- Modified Dietz approximates a cash-flow-adjusted return with less detailed calculation.
- Time-weighted return links subperiod returns and needs portfolio values at cash-flow dates.
- Unitizing a portfolio makes deposits and withdrawals trackable through units and net asset value.
- Sharpe calculation requires daily portfolio returns or values over the measurement period.
Tags
Full text
# Calculate Annualized Return / Annualized Sharpe From Portfolio # Calculate Annualized Return / Annualized Sharpe From Portfolio If I have a portfolio of stocks that I invest in and out of at different holding periods and different times of the year. How would one calculate the annualized returns and annualized sharpe ratio of the portfolio? ## Edit I am trying so far: Right now my idea was... take the cumulative gross profit of the portfolio, so summing the daily PnL for all stocks say from year 2009 to present day. Then I did the following, I use R - ``` # Annualized return Aret <- (1+total.PnL.sum)^(1/8.51685393258427)-1 ``` is this somewhat correct for the annualized return? I am using 8.51 years... as all the stock purchases were over 8.5 years at different times etc.. Or do you assume a 252 number here? ## Answer by Alex C (score 1, accepted) https://quant.stackexchange.com/a/36571 - For finding the returns during a calendar year (or other period) there are two methods: a) The IRR (internal rate of return) method requires the values of the portfolio at the end of year n-1 and end of year n, and the dates and amounts of any cash additions/withdrawals from the portfolio during the year. If you put these dates and amounts into an Excel sheet, the =XIRR() function can be used to compute the rate of return. There is also a simple formula called the Modified Dietz method that can be used to find the approximate rate of return given the same information (the two won't give exactly the same result, however). b) A more sophisticated method called the TWR (Time Weighted Return) is used by most mutual funds and institutional investors, but it requires more information. You need the starting and ending values of the portfolio, the dates and amounts of cash flows, but also the value of the portfolio at the time of these external cash inflows/outflows. This will allow you to compute an exact rate of return between two inflow/outflow events; you then link together the returns during these "closed" periods to find the TWR for the entire year. One convenient way to handle these calculations is to pretend that your portfolio is actually a mutual fund from which you withdraw or add money. You keep track of the number of Units the MF has issued and the Net Asset Value per unit. When you add/withdraw money the number of units increases/decreases (issuance/redemption process); at the close of that day you also compute the value of the portfolio and divide by number of units to find the NAV per unit. This is sometimes called the BAI method of accounting. - Finally, computing the Sharpe ratio requires the most information of all. For this you need the NAV for every trading day of the year (typically 252 days), or equivalently the daily return for each trading day of the year. Some brokerage firms will let you download the daily values of your portfolio and the daily inflows/outflows, from which you can compute the daily returns.
Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.