Dear all,
I would like to calculate a probability of default (Pdef) following the formula of Vassalou, M., & Xing, Y. (2004). Default risk in equity returns. The journal of finance, 59(2), 831-868.

where
- VA is the firm’s assets value;
- X the book value of the debt at time t, that has the maturity equal to T;
- µ is the mean of the change in ln(VA);
- r is the risk-free rate;
- σA the standard deviation of those VA’
- N is the cumulative density function of the standard normal distribution
To get Pdef, I need to calculate VA and σA which are estimated by an iterative procedure as follows:
The market value of equity, VE, will then be given by the Black and Scholes (1973) formula for call options:
Vassalou & Xing (2004):
Following the Visual Basic for Applications (VBA) routine is based on Chapter 13 of ”Professional Financial Computing Using Excel and VBA” by Tung, Lai & Wong (2010), I can conduct the iterative procedure for ONE firm in ONE period. However, I need to perform this iterative procedure at the end of every month for each firms to get the estimation of monthly values of σA.
My question: Is there anyone here having the Stata code for this iterative procedure?
I would really appreciate all the help I can get.
Best regards
I would like to calculate a probability of default (Pdef) following the formula of Vassalou, M., & Xing, Y. (2004). Default risk in equity returns. The journal of finance, 59(2), 831-868.
where
- VA is the firm’s assets value;
- X the book value of the debt at time t, that has the maturity equal to T;
- µ is the mean of the change in ln(VA);
- r is the risk-free rate;
- σA the standard deviation of those VA’
- N is the cumulative density function of the standard normal distribution
To get Pdef, I need to calculate VA and σA which are estimated by an iterative procedure as follows:
The market value of equity, VE, will then be given by the Black and Scholes (1973) formula for call options:
Vassalou & Xing (2004):
To calculate σA we adopt an iterative procedure. We use daily data from the past 12 months to obtain an estimate of the volatility of equity σE, which is then used as an initial value for the estimation of σA. Using the Black–Scholes formula, and for each trading day of the past 12 months, we compute VA using VE as the market value of equity of that day. In this manner, we obtain daily values for VA. We then compute the standard deviation of those VA’s, which is used as the value of σA, for the next iteration. This procedure is repeated until the values of σA from two consecutive iterations converge. Our tolerance level for convergence is 10E-4.
Following the Visual Basic for Applications (VBA) routine is based on Chapter 13 of ”Professional Financial Computing Using Excel and VBA” by Tung, Lai & Wong (2010), I can conduct the iterative procedure for ONE firm in ONE period. However, I need to perform this iterative procedure at the end of every month for each firms to get the estimation of monthly values of σA.
My question: Is there anyone here having the Stata code for this iterative procedure?
I would really appreciate all the help I can get.
Best regards
Comment