Description Usage Arguments Value Note Author(s) References
Loglikelihood for the Vasicek model
dr = alpha(beta-r)dt + sigma dW
with market price of risk q(r) = q1 +q2 r. The time scale is in years and the units are percentages.
| 1 | LogLikVasicek( theta, R, tau, days, n)
 | 
| theta | Vector of parameters: (alpha,beta,sigma,q1,q2). | 
| R | Observed returns. | 
| tau | Maturities. | 
| days | Number of days in a year. | 
| n | Length of the time series. | 
| LL | -1 x Log-likelihood (to be minimized). | 
Translated from Matlab by David-Shaun Guay (HEC Montreal grant).
Bruno Remillard
Chapter 5 of 'Statistical Methods for Financial Engineering, B. Remillard, CRC Press, (2013).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.