Monday, June 2, 2014

Pricing Mortgage-Backed Securities

In this lesson, we learned about prepayment modeling in mortgage backed securities pricing models.  Typically Monte Carlo simulation models are used to price mortgage-backed securities since they are such complex securities.  In this lesson we simply learned a particular prepayment model.

Prepayment models are one of the most important features for pricing MBSs.  However there is relatively little publicly available information concerning prepayment rates, so it is difficult to construct and calibrate the prepayment models.  One model we will focus on is Richard and Rolls's model in which they modeled the conditional prepayment rate (CPR).  Remember that the CPR is the rate at which a given mortgage pool prepays, expressed as a percentage of the current outstanding principal level in the mortgage pool, as an annual rate.  Most prepayment models are private, and used by banks and investment companies and are usually not in the public sphere.

The Richard and Roll model:

 

where:
RI(k) is the refinancing incentive, and is based on the weighted average coupon of the mortgage pool (WAC) and the spot risk-free interest rate.  It represents the amount of money people could save by prepaying and refinancing their mortgage at a lower interest rate.
AGE(k) is the seasoning multiplier, and captures the fact that mortgage owners are very unlikely to prepay in the time periods directly after taking out a mortgage, and are more likely to prepay later in their mortgage rather than sooner.
MM(k) is the monthly multiplier, and reflects that people tend to prepay in different months of the year and each month is fairly close to 1, but do differ slightly depend on the month in question.
BM(k) is the burnout multiplier and it decreases linearly as the mortgage goes on longer.  It simply represents the fact that people who can prepay tend to prepay early rather than later.


We also need to specify a term-structure model in order to fully specify the mortgage pricing model.  The term structure model will be used to:

  • discount all of the MBS cash flows into the usual risk-neutral pricing framework and
  • to compute the refinancing incentive (the spot free interest rate in RI(k)). 
Whichever term structure model is used it must be able to compute the relevant interest rates analytically.  Such a model would need to be calibrated first.  Then actually pricing the MBS requires Monte-Carlo simulation. 


The sub-prime mortgage market played an important role in the financial crisis in 2008 and 2009.  Sub-prime mortgages were issued to home-owners with very low credit.  Adjustable-rate mortgages were used to lure home-owners in with low interest rates for the first two or three years, then the rates were raised very quickly and the home owners were unable to pay.  Moral hazard problems of mortgage brokers, rating agencies, inadequate regulation, inadequate risk management, and poor corporate governance were other causes that helped lead to the financial crisis as well. 

Collateralized Mortgage Obligations

In this lesson, we were introduced to collateralized mortgage obligations (CMOs).

These are mortgage backed securities that have been created by redirecting cash flows from other mortgage securities.  These are created to mitigate risk. There are many types of CMOs, such as: sequential CMOs, CMOs with accrual  bonds, CMOs with floating-rate and inverse-floating-rate tranches, and planned amortization class (PAC) CMOs.  We will focus on sequential CMOs.

Sequential CMOs have several tranches in a special order such that they are retired sequentially.  For example, a sequential CMO has tranches A, B, C, and D.

  1. Periodic coupon interest is disbursed to each tranche on the basis of the amount of principal outstanding in the tranche at the beginning of the period.    
  2. All principal payment are disbursed to tranche A until it is paid off entirely.  After tranche A has been paid off, all principal payments are disbursed to tranche B until it is paid off entirely.  And so on and so forth with tranches C and D as well. 

We then went through a excel spreadsheet that detailed how sequential CMOs are created and paid off.
The spreadsheet is in the same MBS download that was included in a previous blog post.

Sunday, June 1, 2014

Risks of Principal-Only and Interest-Only MBS

In this lesson, we looked at the risks and exposures of interest-only mortgage backed securities and principal-only mortgage backed securities.

We are going to measure risk by duration.  The duration of a cash flow is a weighted average of the times at which each component of the cash flow is received.  The principal stream has a longer duration than the interest stream of a mortgage since as the age of the mortgage increases, the interest payments will decrease (since they depend on the amount of the mortgage that is yet unpaid) and the principal payments will become a larger part of each monthly payment.  

If we let D(p) denote the duration of the principal stream then:




Where we divide by 12 to convert duration in annual units, rather than monthly units.  We can rewrite this as:
D(p) = the sum from k=1 to n of w(k)*k where 
w(k) = 1/(12*V(0)) * P(k)/(1+r)^k.
In this case is the weight given to each component.

Similarly, we can compute the duration of the interest stream as D(i):












Now we introduce the idea of prepayments.

The interest payment in period k is the same as before:
However, we must reassess the value of M(k) with each prepayment:
where ScheduledPrincipalPayment(k) is now P(k) = B - I(k) for period k.


The risk profiles of interest-only and principal-only MBSs are very different.
Principal-only MBS holders would like prepayments to increase, since they would like their payments earlier (due to the time value of money). 
Interest-only MBS holders would like prepayments to decrease, since the slower the mortgage is paid, the more interest will accrue on the mortgage.  
In an extreme case where all the mortgage holders of a particular MBS prepay their mortgages immediately after taking them out, the interest-only MBS holder will receive zero, since no interest will have been able to accrue on those mortgages.

Principal-Only and Interest-Only MBS

In this module, we discussed principal-only and interest-only mortgage backed securities.

As we discussed last lesson, the following equations correspond to the interest payments of a pass-through security and the principal payments:




remember that c is the coupon rate.  This is a level-payment mortgage.
Remember from last lesson that M(k) is:



and we can plug this into the expression for P(k) to give us:





The present value of these principal payments, V(0) is simply the sum of P(k) from k=1 to n over (1+r)^k (this is the discounting factor).  We can simplify this to:





This is the present value of the principal payments.  We can then use our expression for B from last lesson:





and substitute it into the present value equation to get:






We can also compute the present value of the interest payment revenue stream.  The present value, W(0) is simply the sum of I(k) from k=1 to n over (1+r)^k (this is the discounting factor):





This is very simple but it is much easier to recognize that the present value of the interest payments is equal to the total value of the mortgage, F(0), from last lesson, less the principal only payments.  F(0) is the fair value of the all the payments in the mortgage and is equal to:




As I said earlier, W(0) = F(0) - V(0), so:





and we can see that when r converges to c, this equal reduces to:





In the next lesson, we will look at the risks for each of these mortgage backed securities.

Saturday, May 31, 2014

Mortgage Pass-Throughs in Excel

In this lesson, we looked at mortgage pass-throughs in an excel spreadsheet.

I will not explain the walk through, but simply add the link to download the spreadsheet.

The spreadsheet can be found here:

https://d396qusza40orc.cloudfront.net/fe1/class_resources/MBS_Structure.xlsx

Prepayment Risk and Mortgage Pass-Throughs

In this lesson, we were introduced to prepayment risk and mortgage pass-throughs.  Prepayment risk refers to the ability of homeowners to prepay their mortgages (payments made in excess of the scheduled payment, B, is a prepayment).  This creates prepayment risk.  Mortgage pass-throughs are the simplest example of a MBS so we spent time learning about them.

Many homeowners prepay for multiple reasons;

  • They must pay when they sell their home
  • They can refinance at a lower interest rate
  • They may default on their payments, so the insurer prepays the mortgage
  • The home may be destroyed by flooding or fire, so the insurer pays the mortgage
Therefore, prepayment modeling is an important part of pricing MBSs.  

We then talked about the simplest type of MBS - the mortgage pass-through.  In practice, mortgages are usually sold on to third parties that can pool these mortgages together through securitization.  Such third parties are Ginnie Mae, Freddie Mac, or Fannie Mae, along with others.  MBSs that are issued by the three government agencies above are guaranteed against default, while MBSs that are issued by other third parties (non-agency mortgages) are not.  This alters the modeling of MBSs.  The simples type of MBS is the pass-through security where a group of mortgages is pooled together, then sold to investors, and investors receive monthly payments representing the interest and principal payments of the underlying mortgages.  The pass-through rate coupon, however, is strictly less than the average coupon rate of the underlying mortgages.  This is due to fees associated with servicing mortgages, as well as profit margins.  

WAC - Weighted Average Coupon Rate is a weighted average of the coupon rates in the mortgage pool with weights equal to mortgage amounts still outstanding
WAM - Weighted Average Maturity  is a weighted average of the remaining months to maturity of each mortgage in the mortgage pool with weights equal to the mortgage amounts outstanding.

They are prepayment conventions that are used by market participants when quoting yields and prices of MBSs. 
CPR - Conditional Prepayment Rate is the annual rate at which a given mortgage pool prepays.  It is expressed as percentage of the current outstanding principal level in the underlying mortgage pool
SMM - Single-Month Mortality Rate is the CPR converted to a monthly rate assuming monthly compounding.
These are related as follows:






In reality, the CPR is stochastic and depends on many economic variables.  However, market participants often use deterministic prepayment schedules as a mechanism to quote MBS yields and option-adjusted spreads.  
The standard benchmark for CPR is the Public Securities Association (PSA) benchmark.
The PSA benchmark assumes:





for 30 year mortgages.  In this case t is the number of months since the mortgage pool originated.  Slower and faster prepayment rates are then given as some percentage or multiple of the PSA benchmark.



Given a particular prepayment schedule, the average life of an MBS is defined as:





where P(k) is the principal (scheduled and projected) paid at time t, TP is the total principal, T is the total number of months, and we divide by 12 so that the average life is measured in years instead of months.  Average life decreases as PSA increases.

In practice, the price of an MBS is observed in the market place and a yield-to-maturity interest rate can be determined.  This rate is the rate that will make the present value of the expected cash flow equal to the market price.  The expected cash flows are determined based on some underlying prepayment assumptions such as 100 PSA, 200 PSA, 300 PSA, etc.  When the yield is quoted as an annual rate based on a semi-annual compounding, it is called a bond-equivalent yield.  These are very limited when evaluating an MBS and fixed income securities in general.  

An investor in a pass-through is exposed to interest rate risk in the fact that any fixed set of cash flows decreases as interest rates increase.  However, a pass-through investor is also exposed to prepayment risk, contraction risk and extension risk. 

When interest rates decline, prepayments tend to increase and the additional prepaid principal can only be invested at lower interest rates.  
When interest rated increase, prepayments tend to decreased and sot there is less prepaid principal that can be invested at higher rates. 

























Friday, May 30, 2014

Introduction to Mortgage Mathematics and Mortgage Backed Securities

In this lesson we were introduced to basic mortgage mathematics and mortgage backed securities and the mortgage market.

The mortgage market accounted for 23.3% of the total outstanding amount of US bonds in Q3 2012.  These markets are huge and played a huge role in the financial crisis of 2008 and 2009.
MBSs are a particular class of asset-backed securities.  These are securities backed by underlying pools of securities, such as mortgages, credit card receivable,s auto loans, student loans, etc.  The process by which ABS are created is called "securitization."



















Here is an image of how securitization works.  There are 10,000 mortgages and we combine them into one pool.  There are multiple tranches in the pool based on the risk characteristics of the loans.

There are many types of mortgages:

  • level-payment mortgages
  • adjustable-rate mortgages and
  • balloon mortgages

to name a few.  We will only consider level-payment mortgages in these lessons.  A level payment mortgage is a mortgage in which the payment each month is constant over time.

We are going to consider a standard level-payment mortgage with the following assumptions:

  • The initial mortgage price M(0) = M
  • We assume equal periodic payments of $B
  • The coupon rate  is c per period
  • There are a total of n repayment periods
  • After n payments, the mortgage principal and interest have all been paid (the mortgage is fully amortizing)
This means some of the payment, B, is principal, and some of the payment is interest.

If M(k) denotes the mortgage principal remaining after the k-th period, then


 


where M(n) = 0.
We can iterate this equation from M(0) = (1+c)*M(1)  - B all the way up to M(n-1) = (1+c)*M(n) - B to get the following equation:







but since M(n) = 0, we can plug k=n in this last equation we can say that:





So if we know M, n, and c, we can find the periodic payment amount for the mortg
age.
We can then substitute this B back into the equation above to get:





This tells us the value of the mortgage outstanding as a factor of the initial mortgage amount, the coupon rate, the number of total periods, and the current period.


Now suppose that we want to compute the present value of the mortgage in a deterministic world, with not possibilities of default or prepayments.
Assuming a risk-free interest rate of r per period, we can obtain the fair value of the mortgage as:








Here we are assuming that r is the borrowing interest rate for banks.  In practice, r will not be equal to c.  However,  if r=c, then F(0) = M(0).  In general r < c as banks must charge a higher interest rate so they can account for payment uncertainty, default, prepayment, servicing fees, and profits.

We can also decompose the monthly payment B into the interest component and the principal component.  The interest is:





is the interest that would be due in M(k)
The k-th payment is:




We can use this later to create principal-only and interest-only MBSs.



























Pricing Credit Default Swaps

In this lesson, we continued the last lesson of pricing credit default swaps.

The value of the CDS to a buyer is going to be the risk-neutral value of the protection they receive when the bond defaults - the risk-neutral values of the premiums they pay.  We are going to assume that the default event is evenly distributed on the premium interval delta.

Now we will break apart these two factors that make up the value of the CDS.


The risk-neutral value of a single premium payment is: 
Remember that I(t(k)) shows that there is no default and B(t(k)) is the discounting factor (or the cash account or the value of a zcb).  Once again, as in the last lesson, we can break this down into simpler terms.

The risk-neutral value of of all the premium payments is just the sum of the above statement:

The risk-neutral value of the accrued interest if there is a default event between tau = (t(k-1), t(k)] is:
Since the default event is uniformly distributed on delta, the expected value of the uniform distribution of delta is simply (delta/2) which is how we get the above statement.


Therefore combining these values, the risk-neutral value of the premium and the accrued interest is:
We next moved on to the value of the protection.
The risk-neutral value of the protection is:
In this pricing, we assume that R is known, but in reality R is known only on default.  So we are assuming that these CDSs have been around for a while so we know what R will be.

The par spread, or S(par), is that makes the value of the spread that makes the contract equal to zero. S(par) is:
This is simply found by taking the value of the protection minus the value of the premium and accrued interest, setting this equal to zero, and solving for S. 

We then suppose that q(t(k)) = (1-h)*q(t(k) - 1).  We can then approximate the par spread to be:






























Thursday, May 29, 2014

Credit Default Swaps

In this lesson, we we introduced to credit default swaps.  We were introduced to how credit default swaps give us information about default probability and how these quantities can be used for hedging, investment, and speculation.

The seller of a credit default swap agrees to compensate the buyer in the event of a loan default or some other credit event on a reference entity in return for periodic premium payments.
The buyer pays period payments of d*S*N where:

  • N is the notional principle amount of credit protection
  • S is the coupon or the spread and
  • d is a fraction of a year (d*S is the total coupon that has accumulated over the years)
this keeps on going until some credit event happens (usually a default).  At the next coupon date after this happens, the buyer has to pay the accrued interest d*S.  Also, the seller has to pay (1-R)*N where R is the recovery rate.  


Example:
Consider a 2-year CDS on a notional amount of $1 million with a spread S of 160 basis points (1.6%) and quarterly premium payments. 
Suppose a default occurs in month 16 of the 24 month protection plan and the recovery rate, R, is 45%.

The buyer:
The buyer pays fixed premiums in months 3,6,9,12,15 = (S*N)/4 = $4000
The accrued interest in month 18 (the next coupon date) is (S*N)/12 = $1333.33

The seller:
The default contingent protection payment in month 18 = (1-R)*N = $550,000

The basic model for CDS cash flows is as follows:
Let {t(k) = delta*k = 1,...,t(n)} denote the time of the coupon payments.  For quarterly payments delta = 1/4
If the reference entity is not in default at time t(k), the buyer pays the premium delta*S*N
If the reference entity defaults at time tau contained in (t(k-1), t(k)], then the contract terminates at time t(k).  The buyer pays the accrued interest (t(k) - tau)*S*N and the buyer receives (1-R)*N.  In the last example, the contract terminated at month 18 since default occurred at time tau=16 months between month 15 and month 18.

We then learned about CDS contract details.  CDS contract details were standardized by the International Swaps and Derivatives Association in 1999.  Changes were made in 2003, and 2009, and may happen again if CDS derivates lead to a financial global recession again.  There are so many different details in a contract because there are many difficult issues: how to determine if a credit event occurred, the recovery rate, the spread set for different bonds, when the coupon is paid (advance vs. arrears), and how the spread is quoted.  

The CDS spread S is approximates (1-R)*h where h is the hazard rate, or the conditional probability of default.  For fixed R, CDS spreads are directly proportional to the hazard rate h.  Thus CDS spreads, along with the recovery rate can help determine what the probability of default is for a given defaultable bond.

We then learned about the development and application history of CDS as well as their impact on the financial crisis and the sovereign debt crisis.  I have omitted this portion from this post. 


























Pricing Defaultable Bonds

In this lesson, we extended the last lesson on pricing defaultable bonds to pricing coupon-bearing defaultable bonds as well as calibrating them.

We are assuming that the hazard rates, h(i,j) are state independent. This ensures that the default event is independent of the interest rate dynamics. We also let q(t) be the risk-neutral probability that the bond will survive until date t.  We then combine q(t) and h(i,j) into;



so as we can define the probability for survival in the next period based on survival up to that period.

Let I(t) denote the indicator variable that the bond survives up to time t;




The indicator variable that the default will occur at time t is I(t-1) - I(t).  It therefore follows that;
E[I(t)] = q(t).

Again, we assume that the random recovery rate, R, is independent of the interest rate dynamics as we did previously.  R denotes the fraction of the face value, F, paid on default.

We are going to assume the following information for the pricing process;

  1. The current date is 0: t=0.
  2. {t(1)...t(n)} are the futures dates at which the coupons are paid out
  3. The coupon is paid on date t(k) only if I(t(k)) = 1.  Therefore the random cash flows associated with the coupon payment on dates t(k) is c*I(t(k))
  4. The face value F is paid on date t(n) only if I(t(n)) = 1. Therefore the random cash flow associated with the face value payment on date t(n) is F*I(t(n)). 
  5. The recovery R(t(k))*F is paid on date t(k) if the bond defaults on date t(k).  Therefore the random cash flow associated with the recovery on date t(k) is R(t(k))*F*[I(t(k-1)) - I(t(k))], where R is the recovery fraction, F is the face value, and the quantity [I(t(k-1)) - I(t(k))] denotes that the bond has defaulted.
Now that we have all these cash flows, we can price the bond by simply discounting all of the cash flows with respect to the correct risk-neutral probabilities. 

The price of the defaultable fixed coupon bond at time t=0 is given by:





The first term in the expectation, 




denotes the cash flow paid at time t(k) so they must be discounted at time t(k), which is what the B(t(k)) in the denominator represents (remember that B(t) is simply the value of the cash account at time t.

The second term in the expectation,




denotes the cash flow from the face value payment of the bond at time t(n), which is the B(t(n)) in the denominator.  B(t) is simply 1 since at time t=0, the value of the cash account is 1.

The third term in the expectation, 




is the random cash flow associated with the recovery if the bond defaults, discounted at time B(t(k)).  This quantity will equal 0 unless the bond defaults at time t(k).  

Since we assumed that the default is independent of interest rate dynamics, we can split the expectation up according to whether it is the expectation of default or the expectation of the interest rate dynamic.  In the following equation, each term in the equation above has been split into two expectations multiplied by each other.  The first expectation is the expectation of default and the second is the expectation of interest rate dynamics;







We can then substitute q for the expectation of default and we can substitute Z(0,t(k)) (zcb price) for the expectation of the short rate:





We can further simplify this equation by simply substituting out the zcb prices (Z(0,t(k)) for the discount rate up to time t(k):







Next we are going to calibrate the hazard rates.  First, we assume that the interest rate is deterministic and known (and even if it was not, we are able to calibrate it, as we did in previous lessons).  
We then denote the model price of the defaultable bonds as P(h) as a function of h = {h(0)...h(n-1)}.
We then denote the market price for the defaultable bonds as P(market).

For model calibration, take the model prices and the market prices, get the pricing error between them:





and minimize it:




We then did this numerically in an excel spreadsheet.  



































Wednesday, May 28, 2014

Modeling Defaultable Bonds

In this lesson, we looked at defaultable bonds and how to model them.  In a later lesson, we will look at pricing them.

A defaultable bond is characterized by a coupon rate, c, a face value, F, and a recovery value, R, which is a random fraction of the value value recovered when the bond defaults.  We will model the term-structure of default using a 1-step default probability:



and we will calibrate h(t) to market prices. h(t) is the conditional probability that the bond will default over the period t to t+1, given the information available at time t: (F(t)).


When we previously modeled the binomial lattice, we had two parameters for each node: i and j.  The i parameter indicated the date: i=0...n and the j parameter indicated the state j=0...i for each time parameter.  For defaultable bonds we will "split" each node (i,j) by introducing a variable that encodes whether or not default has occurred before time i.  For example:

  • (i,j,0) <- state j at time i with default time tau > i
  • (i,j,1) <- state j at time i with default time tau ≤ i


Now we need to define the new risk-neutral transition probabilities for the binomial lattice.  
Here is one example of the possible transitions for one lattice:















and here are the transitions from no-default state (i,j,0):









and here are the transitions from default state (i,j,1):







Notice that there are much fewer transitions because a bond that has already defaulted cannot be un-defaulted.


We started modeling these bonds with the most simple example:
a default-free zero-coupon bond with expiration date T.  This bond pays $1 in every state at the expiration date T, and no default is possible.
The price of such a bond is Z(i,j,eta,T) where i is the date, j is the state, eta is the default state, and T is the expiration date.  Since default events do not effect default-free bonds: Z(i,j,1,T) = Z(i,j,0,T) = Z(i,j,T) with no default state.
By risk-neutral pricing:





which is exactly what we had previously.

We can calibrate the short-rate lattice using the market prices of default-free zcbs and other default-free instruments.


We then moved on to zero coupon bonds that are defaultable, but have no recovery.  These bonds pay $1 in every state at expiration T, provided that default has not occurred at any date t ≤T.  If default occurs at t≤T, then the bond pays $0.
By risk-neutral pricing:









which means that:





and approximately:



In this case E[i,Qbar] is the expectation of risk-neutral default-free probability.
The price of a zcb is set by discounting the expected value by (r(i,j) + h(i,j)), where h(i,j) is the 1-period credit spread.  The conditional probability of default h(i,j) is also called the hazard rate.  This is the probability of default given that no default has occurred up to time i.


We then moved on to zero coupon bonds that are defaultable and have recovery.  We assumed that the recovery R is random and independent of the default and the interest dynamics.
By risk-neutral pricing:








This makes sense, because here we will recover R instead of zero (like we did one example above).

In the next lesson we will talk about general bonds and how to use these general bonds to estimate the hazard rate.