I was trying to replicate the convexity adjustment between FRAs and futures under the Ho-Lee model : convexity adjustment Ho-Lee

As part of doing this the first step was to replicate the SDE for the bond, however, I end up with a different formula to the one Hull calculates in the above pdf.

The Bond SDE formula which Hull uses is,

Code: Select all

```
dP(t,T) = r(t)P(t,T)dt - (T-t)σP(t,T)dz
where P(t,T) = A(t,T)e^[-r(T-t)]
and the Ho-Lee diffusion eq for the short term rate is dr = θ(t)dt + σ dz
```

Code: Select all

`dP = [r * P(t,T) + (dA/dt)e^[-r(T-t)]]dt - (T-t)P(t,T)dr + [0.5(T-t)^2 P(t,T)σ^2 ]dz`

Code: Select all

`[rP + (dA/dt)e^(-r(T-t)) - (T-t)Pθ + 0.5P (T-t)^2σ^2]dt`