This case study investigates the optimal pipeline hedging strategy with five different deviation measures: Standard Deviation, Mean Absolute Deviation, CVaR Deviation, two-tailed VaR75, and two-tailed VaR90. We test in-sample and out-of-sample performance of these five deviation measures.

 

Background

Problem 1. CVaR Deviation minimization

Simplified Problem Statement

Mathematical Problem Statement

Problem dimension and solving time

Solution in Run-File Environment

Solution in MATLAB Environment

Problem 2. Mean Absolute Deviation minimization

Simplified Problem Statement

Mathematical Problem Statement

Problem dimension and solving time

Solution in Run-File Environment

Solution in MATLAB Environment

Problem 3. Standard Deviation minimization

Simplified Problem Statement

Mathematical Problem Statement

Problem dimension and solving time

Solution in Run-File Environment

Solution in MATLAB Environment

Problem 4. Two-Tailed VaR75 minimization

Simplified Problem Statement

Mathematical Problem Statement

Problem dimension and solving time

Solution in Run-File Environment

Solution in MATLAB Environment

Problem 5. Two-Tailed VaR90 minimization

Simplified Problem Statement

Mathematical Problem Statement

Problem dimension and solving time

Solution in Run-File Environment

Solution in MATLAB Environment

References

 

Background

 

Mortgage lenders usually originate mortgages by selling them in the secondary market. Alternatively, the funding can be obtained by mortgage lenders through securitizing the mortgages in exchange for mortgage backed securities (MBS) and then selling MBS to investors in the secondary market. This case study considers hedging the risk- in the mortgage underwriting process known as "pipeline". Mortgage lenders commit to a mortgage interest rate while the loan is in process, typically for a period of 30-60 days. If the rate rises before the loan goes to closing, the value of the loan declines and the lender sells the loan at a lower price. The risk that mortgages in process will fall in value prior to their sale is known as mortgage pipeline risk. Lenders often hedge this exposure by selling forward their expected closing volume or by shorting U.S. Treasury notes, or futures contracts. Fallout refers to the percentage of loan commitments that do not go to closing. The mortgage pipeline risk is affected by fallout. As interest rates fall, the fallout rises because borrowers locked in a mortgage rate are more likely to find better rates with another lender. Conversely, as rates rise the percentage of loans that close increases. The fallout affects the required size of the hedging instrument because it affects the size of the pipeline position to be hedged. At lower rates, fewer rate loans will close and a smaller position in the hedging instrument is needed. Lenders often use options on U.S. Treasury note futures to hedge against the fallout risk (Cusatis and Thomas, 2005).

 

This case study uses three hedging instruments for hedging the pipeline risk: 5% MBS forward, 5.5% MBS forward, and call options on 10-year Treasury note futures. We ignore transaction costs and allow short sales. To investigate the impact of different risk measurement practices on the optimal hedging strategies, we consider five deviation measures: standard deviation, mean absolute deviation, CVaR deviation, two-tailed VaR75, and two-tailed VaR90 as the objective function in the minimum risk hedging model.

 

For the out-of-sample testing, we partition the 1,000 scenarios into 10 groups with 100 scenarios in each group. Each time we select one group for the out-of-sample test and we calculate optimal hedging positions based on the remaining 9 groups containing 900 scenarios. For each group of 100 scenarios we calculate the ex-ante losses (i.e., underperformances of hedging portfolio versus target) with the optimal hedging positions obtained from 900 scenarios. To estimate the out-of-sample performance, we aggregate the out-of-sample losses from the 10 runs to obtain a combined set including 1,000 out-of-sample losses. Then, we calculated five deviation measures on the out-of-sample 1,000 losses: Standard Deviation, Mean Absolute Deviation, CVaR Deviation, Two-Tail 75%-VaR Deviation, and Two-Tail 90%-VaR Deviation. In addition, we calculated three downside risk measures: 90%-CVaR, 90%-VaR, and Max Loss on the out-of-sample losses. By minimizing the Two-Tail 90%-VaR Deviation, we obtained the best values for all three considered downside risk measures. Minimization of CVaR deviation leads to good results, whereas minimization of standard deviation gives the worst level for three downside risk measures.

 

CVaR deviation;
Mean Absolute Deviation;
Standard Deviation;
Two-Tailed VaR75;
Two-Tailed VaR90

 

Problem 1

10-fold Cross-validation (10 in-sample data and 10 out-of-sample data) for CVaR Deviation minimization.

 

Simplified Problem Statement

 

10-fold crossvalidation

Minimize Cvar_dev (minimizing 90%-CvaR deviation)

 

Value:

 L_num(matrix_fact_out)

 L_num(matrix_fact_in)

 

 Cvar_dev(0.9, matrix_fact_in)

 Meanabs_dev(matrix_fact_in)

 St_dev(matrix_fact_in)

 Var_risk(0.75, matrix_fact_in)

 Var_risk_g(0.75, matrix_fact_in)

 Var_risk(0.9, matrix_fact_in)

 Var_risk_g(0.9, matrix_fact_in)

 

where

 

crossvalidation(N,Matrix) = matrix operation splits input Matrix into N pairs of complementary sub-matrices

Cvar_dev = CVaR Deviation for Loss

Meanabs_dev = Mean Absolute Deviation

St_dev = Standard Deviation

Var_risk = VaR Risk for Loss

Var_risk_g = VaR Risk for Gain

 

Mathematical Problem Statement

 

Formal Problem Statement

 

Problem dimension and solving time for first problem

 

Number of Variables

3

Number of Scenarios

900

Objective Value

0.4125

Solving Time (sec)

<0.01

 

Solution in Run-File Environment

 

Description (Run-File)

 

Input Files to run CS:

Problem Statement (.txt file)
DATA (.zip file)

 

Output Files:

Output DATA (.zip file)

 

Solution in MATLAB Environment

 

Solved with PSG MATLAB function tbpsg_run (PSG Subroutine Interface):

 

Description (tbpsg_run)

 

Input Files to run CS:

MATLAB code (.txt file)
Data (.zip file)

 

 

Problem 2

10-fold Cross-validation (10 in-sample data and 10 out-of-sample data) for Mean Absolute Deviation minimization.

 

Simplified Problem Statement

 

10-fold crossvalidation

Minimize Meanabs_dev (minimizing Mean Absolute Deviation)

 

Value:

 L_num(matrix_fact_out)

 L_num(matrix_fact_in)

 

 Cvar_dev(0.9, matrix_fact_in)

 Meanabs_dev(matrix_fact_in)

 St_dev(matrix_fact_in)

 Var_risk(0.75, matrix_fact_in)

 Var_risk_g(0.75, matrix_fact_in)

 Var_risk(0.9, matrix_fact_in)

 Var_risk_g(0.9, matrix_fact_in)

 

where

 

crossvalidation(N,Matrix) = matrix operation splits input Matrix into N pairs of complementary sub-matrices

Cvar_dev = CVaR Deviation for Loss

Meanabs_dev = Mean Absolute Deviation

St_dev = Standard Deviation

Var_risk = VaR Risk for Loss

Var_risk_g = VaR Risk for Gain

 

Mathematical Problem Statement

 

Formal Problem Statement

 

Problem dimension and solving time for first problem

 

Number of Variables

3

Number of Scenarios

900

Objective Value

0.362483

Solving Time (sec)

<0.01

 

Solution in Run-File Environment

 

Description (Run-File)

 

Input Files to run CS:

Problem Statement (.txt file)
DATA (.zip file)

 

Output Files:

Output DATA (.zip file)

 

Solution in MATLAB Environment

 

Solved with PSG MATLAB function tbpsg_run (PSG Subroutine Interface):
 

Description (tbpsg_run)

 

Input Files to run CS:

MATLAB code (.txt file)
Data (.zip file)

 

Problem 3

10-fold Cross-validation (10 in-sample data and 10 out-of-sample data) for Standard Deviation minimization.

 

Simplified Problem Statement

 

10-fold crossvalidation

Minimize St_dev (minimizing Standard Deviation)

 

Value:

 L_num(matrix_fact_out)

 L_num(matrix_fact_in)

 

 Cvar_dev(0.9, matrix_fact_in)

 Meanabs_dev(matrix_fact_in)

 St_dev(matrix_fact_in)

 Var_risk(0.75, matrix_fact_in)

 Var_risk_g(0.75, matrix_fact_in)

 Var_risk(0.9, matrix_fact_in)

 Var_risk_g(0.9, matrix_fact_in)

 

where

 

crossvalidation(N,Matrix) = matrix operation splits input Matrix into N pairs of complementary sub-matrices

Cvar_dev = CVaR Deviation for Loss

Meanabs_dev = Mean Absolute Deviation

St_dev = Standard Deviation

Var_risk = VaR Risk for Loss

Var_risk_g = VaR Risk for Gain

 

 

Mathematical Problem Statement

 

Formal Problem Statement

 

Problem dimension and solving time for first problem

 

Number of Variables

3

Number of Scenarios

900

Objective Value

0.896692

Solving Time (sec)

<0.01

 

Solution in Run-File Environment

 

Description (Run-File)

 

Input Files to run CS:

Problem Statement (.txt file)
DATA (.zip file)

 

Output Files:

Output DATA (.zip file)

 

Solution in MATLAB Environment

 

Solved with PSG MATLAB function tbpsg_run (PSG Subroutine Interface):
 

Description (tbpsg_run)
 

Input Files to run CS:

MATLAB code (.txt file)
Data (.zip file)

 

Problem 4

10-fold Cross-validation (10 in-sample data and 10 out-of-sample data) for Two-Tailed VaR75 minimization.

 

Simplified Problem Statement

 

10-fold crossvalidation

Minimize Var_risk + Var_risk_g (minimizing Two-Tail 75% - VaR Deviation)

 

Value:

 L_num(matrix_fact_out)

 L_num(matrix_fact_in)

 

 Cvar_dev(0.9, matrix_fact_in)

 Meanabs_dev(matrix_fact_in)

 St_dev(matrix_fact_in)

 Var_risk(0.75, matrix_fact_in)

 Var_risk_g(0.75, matrix_fact_in)

 Var_risk(0.9, matrix_fact_in)

 Var_risk_g(0.9, matrix_fact_in)

 

where

 

crossvalidation(N,Matrix) = matrix operation splits input Matrix into N pairs of complementary sub-matrices

Cvar_dev = CVaR Deviation for Loss

Meanabs_dev = Mean Absolute Deviation

St_dev = Standard Deviation

Var_risk = VaR Risk for Loss

Var_risk_g = VaR Risk for Gain

 

 

Mathematical Problem Statement

 

Formal Problem Statement

 

Problem dimension and solving time for first problem

 

Number of Variables

3

Number of Scenarios

900

Objective Value

0.02314

Solving Time (sec)

0.19

 

Solution in Run-File Environment

 

Description (Run-File)

 

Input Files to run CS:

Problem Statement (.txt file)
DATA (.zip file)

 

Output Files:

Output DATA (.zip file)

 

Solution in MATLAB Environment

 

Solved with PSG MATLAB function tbpsg_run (PSG Subroutine Interface):

 

Description (tbpsg_run)

 

Input Files to run CS:

MATLAB code (.txt file)
Data (.zip file)

 

Problem 5

10-fold Cross-validation (10 in-sample data and 10 out-of-sample data) for Two-Tailed VaR90 minimization.

 

Simplified Problem Statement

 

10-fold crossvalidation

Minimize Var_risk + Var_risk_g (minimizing Two-Tail 90% - VaR Deviation)

 

Value:

 L_num(matrix_fact_out)

 L_num(matrix_fact_in)

 

 Cvar_dev(0.9, matrix_fact_in)

 Meanabs_dev(matrix_fact_in)

 St_dev(matrix_fact_in)

 Var_risk(0.75, matrix_fact_in)

 Var_risk_g(0.75, matrix_fact_in)

 Var_risk(0.9, matrix_fact_in)

 Var_risk_g(0.9, matrix_fact_in)

 

where

 

crossvalidation(N,Matrix) = matrix operation splits input Matrix into N pairs of complementary sub-matrices

Cvar_dev = CVaR Deviation for Loss

Meanabs_dev = Mean Absolute Deviation

St_dev = Standard Deviation

Var_risk = VaR Risk for Loss

Var_risk_g = VaR Risk for Gain

 

 

Mathematical Problem Statement

 

Formal Problem Statement

 

Problem dimension and solving time for first problem

 

Number of Variables

3

Number of Scenarios

900

Objective Value

0.24771

Solving Time (sec)

0.11

 

Solution in Run-File Environment

 

Description (Run-File)

 

Input Files to run CS:

Problem Statement (.txt file)
DATA (.zip file)

 

Output Files:

Output DATA (.zip file)

 

Solution in MATLAB Environment

 

Solved with PSG MATLAB function tbpsg_run (PSG Subroutine Interface):

 

Description (tbpsg_run)

 

Input Files to run CS:

MATLAB code (.txt file)
Data (.zip file)

 

 

References

 

[1]  Cusatis, P.J. and M.R. Thomas (2005): Hedging Instruments and Risk Management, McGraw-Hill

[2]  Taglia, P. (2003): Risk Management Case Study: How Mortgage Lenders Use Futures to Hedge Pipeline Risk. Futures Industry Magazine, September/October.

[3]  Lederman, J. (1997): Handbook of Secondary Marketing, Mortgage Bankers Association of America.

[4]  Hakim, S., Rashidian, M., and E. Rosenblatt (1999): Measuring the Fallout Risk in the Mortgage Pipeline. The Journal of Fixed Income, 9, 62–75.