Function to plot a interest rate tree
The user inputs are as follows:
Rate: to be entered in percent. For e.g. enter 5.0 for 5 percent
u: up move factor- to be entered in decimals. For e.g. 1.25
d: down move factor- to be entered in decimals. For e.g. 0.80
q: probability of up move- to be entered in decimals. For e.g. 0.60
Rate tree steps: Clicking on the '+' and '-' respectively increases and decreases the value.
A plot of interest rate tree with user specified parameters.
S Subramanian <firstname.lastname@example.org>
David G. Luenberger, "Investment Science", 2/E, Oxford University Press, 2013.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.