It is not the critic who counts;…The credit belongs to the man who is actually in the arena,…who spends himself in a worthy cause; who at the best knows in the end the triumph of high achievement, and who at the worst, if he fails, at least fails while daring greatly, so that his place shall never be with those cold and timid souls who neither know victory nor defeat.
Theodore Roosevelt
Welcome to the arena of structured finance. The purpose of this book is to hone the skills needed to successfully compete in the arena. Bond Lab and the Companion to Investing in MBS are the training tools, both of which are programmed in the R computing language. This analysis presented in this book is based on Bond Lab version 0.0.0.9000. Bond Lab is, to my knowledge, the first open source object-oriented software designed for the analysis of structured securities. Bond Lab allows the reader to replicate the analysis presented herein, as well as extend the analysis in any direction she chooses thereby creating a richer learning experience and greater understanding of the material.
Investing in Mortgage-Backed and Asset-Backed Securities, was written in the spirit of reproducible research and its underlying philosophy is simple: Mortgage-backed securities are not too complex to understand. In fact, the basic valuation techniques applicable to all fixed-income securities also form the foundation for the valuation of mortgage-backed securities (MBS) and asset-backed securities (ABS). The perceived complexity of investing in structured products, like MBS, can be attributed to four sources:
- The contingency of residential MBS cash flows, which manifest because the borrower holds the option to prepay and terminate her mortgage obligation early.
- Cash flow structuring techniques based on the allocation of principal and interest across real estate mortgage investment conduit (REMIC) structures.
- Credit structuring techniques that allocate losses through the capital structure of a transaction.
- Valuation techniques that “simulate” the economy—interest rate models.
Organization of the Book
The main goal of this book is to develop a basic framework for the analysis of mortgage- and asset-backed securities using open source software. The financial models presented throughout the book are developed using R [R Core Team 2013], a freely downloaded open source software development environment.
Many people think of R as a statistics package, however it is much more. The R environment is an “integrated suite of software facilities for data manipulation, calculation, and graphical display” [Smith and R Core Team 2013]. As such, R lends itself easily to the development of an integrated financial analysis tool.
Investing in structured products also requires managing large sets of data. Aside from market data, like swap rates and Treasury prices and yields, the structured product investor must also follow borrower transaction data. Examples include voluntary prepayment rates, payment of scheduled principal and interest, and borrower delinquency and default. More often than not the investor must monitor this information at the loan level. Loan level data are becoming more available, and there are a host of vendors that offer the aggregation and delivery of this kind of data. The loan level data that is needed by the investor to monitor collateral performance is also freely available via trustee and/or issuer websites. In this book, we will use MySQL®, also open source, as the data management solution.
Investing in MBS is divided into five parts. Part One, Valuation of Fixed-Income Securities, introduces the reader to the techniques used to value all fixed-income securities.
- Chapter 1 begins with the time value of money. It introduces the concept of the present and future value of $1. The concept of the time value of money underlies every investment decision. It is the most basic expression of interest rates that forms the foundation of fixed-income investing.
- Chapter 2 covers the theories of the term structure of interest rates, explaining the coupon, spot rate, and forward rate curves. The chapter numerically illustrates the derivation of both spot and forward rates. Numerical examples are provided throughout the chapter to assist the reader in gaining a solid understanding of the term structure of interest rates.
- Chapter 3 introduces fixed-income mathematics covering yield to maturity, weighted average life, duration, convexity, and key rate duration. The chapter provides numerical examples as well as the application of each metric.
- Chapter 4 integrates Chapters 1 through 3 into a comprehensive framework for the valuation of fixed-income securities; particular attention is paid to assets whose principal amortizes over the life of the investment. Finally, Chapter 5 illustrates fixed income return analysis. The chapter deconstructs horizon return into its components and illustrates how each contributes to the investor's realized rate of return.
Part Two, Residential Mortgage-Backed Securities, introduces the reader to mortgage-backed securities.
- Chapter 6 differentiates the characteristics of residential and commercial real estate. The chapter ends by deconstructing the mortgage loan amortization table and outlining key mortgage servicing activities.
- Chapter 7 extends the concepts presented in Chapter 6, illustrating mortgage cash flow analysis. Specifically, the chapter takes the reader through the amortization and cash flow analysis of a pool of mortgage loans given borrower prepayment.
- Finally, Chapters 8 and 9 provide an overview of the techniques used to analyze the factors influencing mortgage prepayment rates. Chapter 8 illustrates the application of the Cox proportional hazard model to loan level data as a method to explore the drivers of prepayment rates, while Chapter 9 translates the analysis of Chapter 8 into a functioning parametric prepayment model.
Part Three, Valuation of Mortgage-Backed Securities, introduces the reader to the basic valuation techniques used to determine relative value in the mortgage-backed securities market.
- Chapter 10 reviews the mortgage dollar roll. The dollar roll is the short-term financing mechanism of the residential mortgage market and represents the starting point of relative value analysis in the residential MBS market.
- Chapter 11 presents the tools investors may use to analyze mortgage-backed securities. The chapter addresses liquidity analysis, static cash flow analysis, and finally the application of return analysis to differentiate the relative value of mortgage-backed securities.
- Chapter 12 introduces option-adjusted spread (OAS) analysis. OAS analysis is perhaps the least understood and most wrongly applied tool in the mortgage valuation arsenal. The chapter guides the reader through the Cox, Ingersoll, Ross single factor term structure model. The chapter illustrates the motivation of the prepayment model presented in Chapter 9 via the interest rate model and ends with a complete treatment of OAS as an investment decision making tool.
Part Four, Structuring Mortgage-Backed Securities, introduces the reader to the structuring techniques used in the mortgage-backed securities market. MBS structuring relies on the division of principal and interest to create notes derived from MBS cash flows that are tailored to meet investors' unique risk/reward profiles. Further, the structuring techniques used by dealers alter both the timing and valuation of MBS cash flows. Option-adjusted spread analysis is used throughout the section to explore how the division of principal and interest alter mortgage cash flow valuations.
- Chapter 13 introduces REMICs and explains the rational for their creation, evolution, and legal structure. The chapter closes by outlining the Bond Lab structuring model.
- Chapter 14 kicks off REMIC structuring with stripped mortgage-backed securities (SMBS). A stripped MBS is not a REMIC in terms of its legal formation; however, SMBS are included in the section because they represent the clearest illustration of the division of principal and interest—the key to REMIC structuring and arbitrage.
- Chapter 15 presents the sequential REMIC structure, an example of the division of principal via time tranching, which allows a dealer to create bonds of different maturities thereby exploiting investors' term structure preferences to create a profitable arbitrage.
- Chapter 16 outlines the planned amortization class (PAC)-companion REMIC. The PAC-companion structure is an example of the division of principal.Rather than time tranching, principal is allocated to each bond within the structure based on the prepayment rate of the underlying MBS.
- Chapter 17 completes the sequential REMIC arbitrage illustrating the use of a two-tiered REMIC structure to create an IO class. The structuring difference between the sequential IO and the SMBS IO is explored.
- Chapter 18 outlines the PAC-floater-inverse floater structure and completes the PAC-companion arbitrage illustrating the use of derivative execution to create par priced bonds.
- Chapter 19 illustrates the use of an accrual bond to “clean-up” the companion bond's tail cash flows and create a long duration security.
Part Five, Mortgage Credit Analysis, covers default modeling, self-insuring mortgage structures, and the basics of sizing mortgage credit enhancement. A self-insuring structure is one whose credit enhancement is internally created which may subject the investor to principal loss resulting from borrower defaults. Thus, it is imperative that the investor understands default modeling, loss simulation, and the allocation of losses across the transaction's capital structure.
- Chapter 20 illustrates the use of logistic regression analysis to model mortgage default.
- Chapter 21 builds on the analysis presented in Chapter 20 and illustrates the development of a predictive default model.
- Chapter 22 introduces the basics of private-label MBS. The chapter covers alternative subordination structures, cross collateralization, as well as the implication of the third-party credit exposure.
- Chapter 23 illustrates simulation techniques used to determine mortgage credit enhancement levels. The chapter not only focuses on principal subordination but also illustrates how the investor may use simulation to investigate the adequacy of agency guarantee fees and how those fees relate to principal subordination.