The loss function defines the objective function used for the optimisation. In case of term structure estimation the objective function is the sum of the weighted squared price errors.
1 | loss_function(p, phat, omega)
|
p |
vector of observed prices. |
phat |
vector of estimated prices. |
omega |
weights vector, e.g., duration based weights. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.