# Hull-White 2-factor Model: 3) Simulation This post discretizes Hull-White 2-factor model and provide derivations of the simulation equations.

Earlier posts on Hull-White 2-factor model

We try to price an interest derivatives which have cashflows at times T1,T2,…,TN. When we let f(Tj) denote a cash flow at time Tj, the price of this product is

This pricing is the risk-neutral pricing and needs cash flows and discount factors from future interest rate simulations.

Since dW1(t) and dW2(t) follow independently, dx(t) and dy(t) can be discretized as follows.

Here, ϵ1 and ϵ2 are random numbers from the standard normal distribution.

Like HW 1-factor model, the same discretized time axis is used as follows For this time axis, stochastic process of discretized x(t) and y(t) has the following form.

Since xt0, xt1xt2xt3, …, and yt0, yt1yt2yt3, … are easily obtained from this scenario generating equation, discount factors at time Tj is

Cash flow at time Tj is

Therefore, for discount factors and cash flows from this scenario, the price of interest derivatives P0 which has cash flows f(T1),f(T2),…,f(TN) at time T1,T2,…,TN respectively under the risk-neutral measure is as follows.

The present value is the average from iterating this process with a number of scenario. This is the same case with the Hull-White 1-factor model except for correlated related cross terms. Expressions for this kind of terms are presented as product (or multiplication) terms not as square terms.

This manipulation for cross terms also holds for numerical integration and calculation which are also similar to 1-factor case. So we do not repeat these similar works.