matrix_eta | R Documentation |
The matrix_eta function calculate amount of money needed to hedge an option claim.
matrix_eta(option_matrix, Xi_matrix, ds, dt, I, rate)
option_matrix |
numeric matrix, value of the option. |
Xi_matrix |
numeric matrix, number of asset needed to hedge an option. |
ds |
numeric value, step size of the asset price. |
dt |
numeric value, step size of the time. |
I |
numeric value, number of steps in the stock price. |
rate |
numeric value, risk free rate in the model rate >= 0. |
A numeric matrix, amount of money needed to hedge an option claim using finite difference algorithms.
ds <- finding_parameters(100, 0.3, 600, 5)[1] dt <- finding_parameters(100, 0.3, 600, 5)[2] option <- finite_difference_explicit(ds, dt, 600, 0, 0.3, 1, call_payoff, 100) Xi <- delta_finite_difference(option, ds) matrix_eta(option, Xi, ds, dt, 600, 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.