Estimate Merton Distance-to-Default
Merton (1974) Distance to Default (DD) model is useful in forecasting defaults. This post documents a few ways to empirically estimate Merton DD (and default probability) as in Bharath and Shumway (2008 RFS).
The Merton Model
The total value of a firm follows geometric Brownian motion,
- is the total value of the firm
- is the expected return on V (continuously compounded)
- is the volatility of firm value
- is a standard Wiener process
Assuming the firm has one discount bond maturing in periods, the equity of the firm can be viewed as a call option on the underlying value of the firm with a strike price equal to the face value of the firm's debt and a time-to-maturity of .
The equity value of the firm is hence a function of the firm's value (Black-Scholes-Merton model):
- is the market value of the firm's equity
- is the face value of the firm's debt
- is the risk-free rate
- is the cumulative standard normal distribution function
Moreover, the volatility of the firm's equity is related to the volatility of the firm's value, which follows from Ito's lemma,
In the Black-Scholes-Merton model, , so that
We observe from the market:
- , the equity value of the firm, the call option value
- , the volatility of equity
We then infer and solve for:
- , the total value of the firm
- , the volatility of firm value
Once we have and , the distance to default (DD) can be calculated as
- is an estimate of the expected annual return of the firm's assets
The implied probability of default, or expected default frequency (EDF, registered trademark of Moody's KMV), is
An iterative approach
To estimate , an iterative procedure can be applied instead of solving equations (2) and (5) simultaneously (see Crosbie and Bohn (2003), Vassalou and Xing (2004), Bharath and Shumway (2008), etc.).
- Set the initial value of .
- Use this value of and equation (2) to infer the market value of firm's assets every day for the previous year.
- Calculate the implied log return on assets each day, based on which generate new estimates of and .
- Repeat steps 2 to 3 until converges, i.e., the absolute difference in adjacent estimates is less than .
- Use and in equations (6) and (7) to calculate .
A naïve approach
A naïve approach by Bharath and Shumway (2008) that does not solve equations (2) and (5) is constructed as below.
- Approximate the market value of debt with the face value of debt, so that .
- Approximate the volatility of debt as , where 0.05 represents term structure volatility and 25% of equity volatility is included to allow for volatility associated with default risk.
- Approximate the total volatility as
- Approximate the return on firm's assets with the firm's stock return over the previous year .
The naïve distance to default is then
and the naïve default probability is
The naïve method is too simple and skipped for now.
Here I discuss the iterative approach.
Original SAS code in Bharath and Shumway (2008 RFS)
The original code is enclosed in the SSRN version of Bharath and Shumway (2008), and was available on Shumway's website.
However, there are two issues in this version of code:
- The initial value of is not set to as described in the paper.
- It does not use the past year's data but the past month.
- At line 36,
cdt=100*year(date)+month(date)accidentally restricts the "past year" daily stock returns to the "past month" later. Note that at line 42-43 it merges by
cdtrefers to a certain year-month. We can pause the program after this data step to confirm that indeed there is only a month of data for each
- A correction is to change line 36 to
- At line 36,
Other issues are minor and harmless.
A copy of this version can be found here on GitHub.
Based on the original SAS code in Bharath and Shumway (2008), I made some edits and below is a fully self-contained SAS code that executes smoothly. Note that I've corrected the above issues.