Content deleted Content added
Moved some content around, to reduce repetition, improve the logical flow, and break the slightly long main body into sub-sections |
|||
(38 intermediate revisions by 15 users not shown) | |||
Line 1:
{{Short description|Historical performance of an investment portfolio}}
The '''modified Dietz method'''<ref name="Dietz1966">{{cite book
|author=Peter O. Dietz
Line 4 ⟶ 5:
|url=https://books.google.com/books?id=ZUQ_MwEACAAJ
|year=1966
|publisher=Free Press}}</ref><ref>{{Cite journal|last=Dietz|first=Peter|date=May 1968|title=Measurement of Performance of Security Portfolios COMPONENTS OF A MEASUREMENT MODEL: RATE OF RETURN, RISK, AND TIMING|journal=The Journal of Finance|volume=
|author1=Philip Lawton, CIPM
|author2=Todd Jankowski, CFA
Line 13 ⟶ 14:
|isbn=978-0-470-47371-9
|pages=828–
|quote=Peter O. Dietz published his seminal work, Pension Funds: Measuring Investment Performance, in 1966. The Bank Administration Institute (BAI), a U.S.-based organization serving the financial services industry, subsequently formulated rate-of-return calculation guidelines based on Dietz's work.}}</ref> is a measure of the ''ex post'' (i.e. historical) performance of an [[investment portfolio]] in the presence of external flows. (External flows are movements of value such as transfers of cash, securities or other instruments in or out of the portfolio, with no equal simultaneous movement of value in the opposite direction, and which are not income from the investments in the portfolio, such as interest, coupons or dividends.)
To calculate the modified Dietz return, divide the gain or loss in value, net of external flows, by the average capital over the period of measurement. The average capital weights individual cash flows by the length of time between those cash flows until the end of the period. Flows which occur towards the beginning of the period have a higher weight than flows occurring towards the end. The result of the calculation is expressed as a percentage [[rate of return|return]] over the holding period.
Line 28 ⟶ 29:
|publisher=Institute of Chartered Financial Analysts.
|page=72
|quote=A slightly improved version of this method is the day-weighted, or modified Dietz, method. This method adjusts the cash flow by a factor that corresponds to the amount of time between the cash flow and the beginning of the period.}}</ref> The original idea behind the work of Peter Dietz was to find a quicker, less computer-intensive way of calculating an IRR as the iterative approach using the then
▲COMPONENTS OF A MEASUREMENT MODEL: RATE OF RETURN, RISK, AND TIMING|journal=The Journal of Finance|volume=Volume 23, Issue 2|issue=2|pages=267–275|doi=10.1111/j.1540-6261.1968.tb00802.x}}</ref>
==Formula==
Line 64 ⟶ 62:
==Comparison with time-weighted return and internal rate of return==
The modified Dietz method has the practical advantage over the [[true time-weighted rate of return]] method, in that the calculation of a modified Dietz return does not require portfolio valuations at each point in time whenever an external flow occurs. The [[internal rate of return]] method shares this practical advantage with the modified Dietz method.
Conversely, if there exists a portfolio valuation at any point in time, the implied modified Dietz valuation of cashflows at that point in time is quite unlikely to agree with the actual valuation.
With the advance of technology, most systems can calculate a
The modified Dietz method also has the practical advantage over [[internal rate of return]] (IRR) method that it does not require repeated trial and error to get a result.<ref name="Feibel2003">{{cite book
Line 82 ⟶ 81:
The modified Dietz return is the solution <math>R</math> to the equation:
:<math>B = A \times (1+R)+ \sum_{i=1}^n F_i \times \left( 1+R \times \frac{T - t_i}{T} \right)</math>
where
Line 100 ⟶ 99:
:<math>B = A \times (1+R)+ \sum_{i=1}^n F_i \times (1+R)^ \frac{T - t_i}{T}</math>
===Example===
To calculate the gain or loss over the two-year period,
Line 116:
The (unannualized) internal rate of return in this example is 125%:
:<math>
so in this case, the modified Dietz return is noticeably less than the unannualized IRR. This divergence between the modified Dietz return and the unannualized internal rate of return is due to a significant flow within the period,
The IRR is 50% since:
:<math>100 \times (1 + 50\%)^2 + 50 \times (1+50\%)^ 1 = 225 + 50 \times 150\% = 225 + 75 = 300</math>
but the unannualized holding period return, using the IRR method, is 125%. Compounding an annual rate of 50% over two periods gives a holding period return of 125%:
:<math>(1 + 50\%)^2 - 1 = 2.25 - 1 = 1.25 = 125\%</math>
▲so in this case, the modified Dietz return is noticeably less than the unannualized IRR. This divergence between the modified Dietz return and the unannualized internal rate of return is due to a significant flow within the period, and the fact that the returns are large.
==The simple Dietz method==
The modified Dietz method is different from the [[simple Dietz method]], in which the cash flows are weighted equally regardless of when they occurred during the measurement period. The [[simple Dietz method]] is a special case of the Modified Dietz method, in which external flows are assumed to occur at the midpoint of the period, or equivalently, spread evenly throughout the period, whereas no such assumption is made when using the Modified Dietz method, and the timing of any external flows is taken into account.
Note that in the example above, the flow occurs midway through the overall period, which matches the assumption underlying the simple Dietz method. This means the simple Dietz return and modified Dietz return are the same in this particular example.
==Adjustments==
Line 175 ⟶ 184:
There are no flows, so the gain or loss is:
:{{nowrap begin}}{{link if exists|end value}}
and the average capital equals the start value, so the modified Dietz return is:
:{{nowrap begin}}{{sfrac|{{link if exists|gain or loss}}|{{link if exists|average capital}}}} = {{sfrac|
===Contributions - when not to adjust the holding period===
Line 185 ⟶ 194:
====Example====
Suppose that at the beginning of the year, a portfolio contains cash, of value $10,000, in an account which bears interest without any charges. At the beginning of the fourth quarter, $8,000 of that cash is invested in some US dollar shares (in company X). The investor applies a buy-and-hold strategy, and there are no further transactions for the remainder of the year. At the end of the year, the shares have increased in value by 10% to $8,800, and $100 interest is capitalized into the cash account.
What is the return on the portfolio
=====Answer=====
Line 211 ⟶ 220:
:{{nowrap begin}}{{link if exists|average capital}}{{nowrap end}}
::{{nowrap begin}}= {{link if exists|start value}}
::{{nowrap begin}}= 10,000
::{{nowrap begin}}= 10,000
::{{nowrap begin}}= $8,000{{nowrap end}}
The average capital of the shares over the last quarter requires no calculation, because there are no flows after the beginning of the last quarter. It is the $8,000 invested in the shares. However, the average capital in the shares over the whole year is something else. The start value of the shares at the beginning of the year was zero, and there was an inflow of $8,000 at the beginning of the last quarter, so:
:{{nowrap begin}}{{link if exists|average capital}}{{nowrap end}}
::{{nowrap begin}}= {{link if exists|start value}}
::{{nowrap begin}}= 0 + {{sfrac|1|4}} × $8,000{{nowrap end}}
::{{nowrap begin}}= $2,000{{nowrap end}}
Line 269 ⟶ 278:
==Money-weighted return==
The modified Dietz method is an example of a money (or dollar) weighted methodology (as opposed to [[time-weighted return|time-weighted]]). In particular, if the modified Dietz return on two portfolios are <math>R_1</math> and <math>R_2</math>, measured over a common matching time interval, then the modified Dietz return on the two portfolios put together over the same time interval is the weighted average of the two returns:
:<math>W_1 \times R_1+W_2 \times R_2</math>
Line 284 ⟶ 293:
There are sometimes difficulties when calculating or decomposing portfolio returns, if all transactions are treated as occurring at a single time of day, such as the end of the day or beginning of the day. Whatever method is applied to calculate returns, an assumption that all transactions take place simultaneously at a single point in time each day can lead to errors.
For example, consider a scenario where a portfolio is empty at the start of a day, so that the start value A is zero. There is then an external inflow during
If all transactions are treated as occurring at the end of the day, then there is zero start value A, and zero value for average capital, because the day-weight on the inflow is zero, so no modified Dietz return can be calculated.
Line 292 ⟶ 301:
There are sometimes other difficulties when decomposing portfolio returns, if all transactions are treated as occurring at a single point during the day.
For example, consider a fund opening with just $100 of a single stock that is sold for $110 during the day. During the same day, another stock is purchased for $110, closing with a value of $120. The returns on each stock are 10% and 120/110
:w*10/100 + (1
Such weights are absurd, because the second stock is not held short.
Line 301 ⟶ 310:
===Negative or zero average capital===
In normal circumstances, average capital is positive. When an intra-period outflow is large and early enough, average capital can be negative or zero. Negative average capital causes the Modified Dietz return to be negative when there is a profit, and positive when there is a loss. This resembles the behaviour of a liability or short position, even if the investment is not actually a liability or a short position. In cases where the average capital is zero, no Modified Dietz return can be calculated. If the average capital is close to zero, the Modified Dietz return will be large (large and positive, or large and negative).
One partial workaround solution involves as a first step, to capture the exception, detecting for example when the start value (or first inflow) is positive, and the average capital is negative. Then in this case, use the simple return method, adjusting the end value for outflows. This is equivalent to the sum of constituent contributions, where the contributions are based on simple returns and weights depending on start values.
Line 314 ⟶ 323:
:At the end of Day 40, the remaining 20 shares are worth 12.50 dollars per share
The gain or loss is end value
:<math>20 \times 12.50 - 100 \times 10 + 80 \times 15</math>
::<math>= 250 - 1,000 + 1,200</math>
::<math>=
There is a gain, and the position is long, so we would intuitively expect a positive return.
Line 332 ⟶ 341:
The modified Dietz return in this case goes awry, because the average capital is negative, even though this is a long position. The Modified Dietz return in this case is:
:<math>\frac {\text {gain or loss}}{\text {average capital}} = \frac {
Instead, we notice that the start value is positive, but the average capital is negative. Furthermore, there is no short sale. In other words, at all times, the number of shares held is positive.
We then measure the simple return from the shares sold:
Line 346 ⟶ 355:
and combine these returns with the weights of these two portions of the shares within the starting position, which are:
:<math>\frac {80}{100} = 80 \%</math> and <math>\frac {20}{100} = 20 \%</math> respectively.
This gives the contributions to the overall return, which are:
Line 369 ⟶ 378:
====Limitations====
This workaround has limitations. It is possible only if the holdings can be split up like this.
It is not ideal, for two further reasons, which are that it does not cover all cases, and it is inconsistent with the Modified Dietz method. Combined with Modified Dietz contributions for other assets, the sum of constituent contributions will fail to add up to the overall return.
Line 379 ⟶ 388:
==Visual Basic==
<
Function georet_MD(myDates, myReturns, FlowMap, scaler)
' This function calculates the modified Dietz return of a time series
Line 440 ⟶ 449:
End Function
</syntaxhighlight>
==Java method for modified Dietz return==
<
private static double modifiedDietz
/* emv: Ending Market Value
Line 456 ⟶ 465:
try {
double[] weight = new double[cashFlow.length];
if (numCD <= 0) {
throw new ArithmeticException
}
for (int i = 0; i < cashFlow.length; i++) {
if (numD[i] < 0) {
}
weight[i] = (double) (numCD - numD[i]) / numCD;
Line 471 ⟶ 479:
double ttwcf = 0; // total time weighted cash flows
for (int i = 0; i < cashFlow.length; i++) {
ttwcf += weight[i] * cashFlow[i];
}
double tncf = 0; // total net cash flows
for (int i = 0; i < cashFlow.length; i++) {
tncf += cashFlow[i];
}
Line 494 ⟶ 502:
return md;
}
</syntaxhighlight>
== Excel VBA function for modified Dietz return ==
<syntaxhighlight lang="
Public Function MDIETZ(dStartValue As Double, dEndValue As Double, iPeriod As Integer, rCash As Range, rDays As Range) As Double
|