Search results

  1. mouna

    lsqnonlinear

    I have make an optimization program using the lsqnonlin function but I have some problem with it. function F = myfun(lamda) %-------------------------------------------------------------------------- % @description: Attempt to estimate the parameter of the market price %model...
  2. mouna

    simulate a nonlinear drift

    i have a diffusion process with nonlinear drift on the form: (\mu(dt) = (\alpha1+\alpha2*x+\alpha3*(x2)+\alpha4/x) dt) i have simulate the drift on matlab but the graph i get is empty . this is the program clf load TRB.txt % Load Data X = TRB(1:T,1)/100; T = rows(TRB); N = 2087; Delta = 1/T...
  3. mouna

    convert discount rate to continously compounded yield to maturity

    HI I'm a Ph D in finance. My research is about interest rate term structure modeling. My database is the united states yield curve. For the estimation of the short term interest rate process, I use the 3 month treasury bill rate from the FRED SITE WEB. This rate is a discount rate. I want to...
  4. mouna

    problem with lsqcurvefit

    ah! yes i have put it in the original code.
  5. mouna

    problem with lsqcurvefit

    what do you mean?
  6. mouna

    problem with lsqcurvefit

    Ralpha =@(lamda) this is to specify that Ralpha is function of lamda. and (beta -(lamda*sigma)/alpha)-(sigma.^2)/(2*(alpha.^2)); is the function form.
  7. mouna

    problem with lsqcurvefit

    write; F = @(lambda,xdata,Ralpha,r,beta,sigma) Ralpha +((1-exp(-beta*xdata))/(beta*xdata))*(r-Ralpha)+... ((sigma.^2)/(4*(beta.^3)*xdata)*((1-exp(-xdata)).^2)); This way you are saying, F is a function of lambda, xdata, Ralpha, etc. i have do it and i have run the program but i get the...
  8. mouna

    problem with lsqcurvefit

    %-------------------------------------------------------------------------- % @description: Attempt to estimate the parameter of the market price % of risk, lamda of the Vasicek model 1977 of the term structure %model of yields. We do this by using curve fitting to the observed...
  9. mouna

    problem with curvefit on matlab

    inspired from the program you have make on mathematica. i have try to make the same for an other model. please verify if it is true or false. the model has the form: R(T) = (B(T) / T) * r0-[(( theta + gamma) / 2* beta * apha)* (In (A(T)) / T] with gamma = beta - lamda * simga theta =...
  10. mouna

    problem with curvefit on matlab

    thank you very very much for your reply. i don't have mathematica but i have matlab. i will try to covert this program to matlab language
  11. mouna

    problem with curvefit on matlab

    thank you very much for your relply. you have raison, i have missed a part of the formula of R(T):-ssand also the value of r0 R(T) = (beta - ((lamda * sigma)/ alpha)- ((sigma^2)/ (2*(alpha^2))) + (r0 - (beta - ((lamda * sigma)/ alpha)- ((sigma^2)/ (2*(alpha^2))) *( 1- exp (- beta*T))/ (beta...
  12. mouna

    problem with curvefit on matlab

    i have the following function: R(T) = beta - ((lamda * sigma)/ alpha) + (r0 - (beta - ((lamda * sigma)/ alpha)) *( 1- exp (- beta*T))/ (beta *T) + ( (sigma^2)*(1- exp (- beta*T))^2)/ (4*(beta^3)*T) where lamda is the only unknown because alpha, beta et sigma are already estimated using GMM...
  13. mouna

    Matlab code - Vasicek yield curve fitting, Various bond price models available

    thank you very much for your reply. i have seen the program " YieldCurveFitVasicek". this program as i have understood estiamte the paremeters of the short term interest rate process (theta; kappa;and eta) by fitting the vasicek model to the market data. But im my research i have estimated these...
  14. mouna

    Matlab code - Vasicek yield curve fitting, Various bond price models available

    i want to estimate the market price of risk of the interest rate term structure l, for the vasicek(1979), Cox Ingersoll and Ross (1985) and CKLS (1992) models by minimizing the deviation of the implied yield curve from the average zero-coupon yield over the sample. please can you provide me with...
  15. mouna

    Matlab code - Vasicek yield curve fitting, Various bond price models available

    please can you post the matlab code here. i need it. i will be very grateful. Thank you very much .
  16. mouna

    Market price of risk

    first af all thanks for your reply. but in my approach i will estimate the market price of risk l by minimizing the deviation of the implied yield curve from the average zero-coupon yield over the sample.
  17. mouna

    Market price of risk

    i want to estimate the market price of risk of the interest rate term structure for the vasicek(1979), Cox Ingersoll and Ross (1985) and CKLS (1992) models. Please can you help me.:prayer:
  18. mouna

    New Quantnet members say hi

    hy quantnet community, i'm glad to be a member from your community. i hope to learn something from here
Back
Top