## Chap.8, pb 4

This forum is to discuss the book "C++ design patterns and derivatives pricing."

### Chap.8, pb 4

This problem deals with binary tree construction given time-dependent volatility.
The issue here is to determine the vector of times so that we get the same fraction of total volatility at each time step. Given a general volatility parameter, the obvious approach seems to use a solver to find the time t such that the integral of variance from the previous time step to t matches a given volatility value.
Using for example a simple dichotomy solution, this slows down considerably the contruction of the BinaryTree object, at least for the vector of discounts. This even if it is done only once (for each set number of steps).
But the use of solvers is only detailled in the following chapter, not a this point. Is there any other valid approach to that problem?
akbar

Posts: 28
Joined: Fri Aug 10, 2007 7:12 pm

### Re: Chap.8, pb 4

That is the standard solution.
mj

Posts: 1375
Joined: Fri Jul 27, 2007 7:21 am

### Re: Chap.8, pb 4

So this is a teaser for the next chapter; we're supposed to come up with a non-optimal solution now and then see how much smoother it can be taken care of by using the techniques in the following chapter? This seems to be the general theme of the book; I quite like it!
chrissbliss

Posts: 34
Joined: Wed Apr 30, 2008 8:31 pm

### Re: Chap.8, pb 4

Hi,

so I have managed to partially solve this problem. I have essentially determined the
appropriate time steps as described in the original problem.

The issue Im facing now is how to determine the Stock price. The \sigma^2 term in the exponent is easy we can just replace this by the integral of the square. However what does one do with discretized brownian motion term? is this replaced by the integral of \int_0^t \sigma/T?

This seems to work if I work with the Jarrod-Rudd parametrization but not with a martingale measure...

thanks

Mark
emza0114

Posts: 8
Joined: Sun Nov 25, 2012 2:26 am

### Re: Chap.8, pb 4

you have to abandon the underlying original Brownian motion. Think of replacing the vol for the step with a constant vol that makes the integral come out right.
mj