Linear Regression with two variables
조회 수: 5 (최근 30일)
이전 댓글 표시
I am working with a data set of Volatility Swap prices, i.e. a matrix, where the rows represent dates, the columns maturities and the entries prices. My goal is now, to find coefficients and two functions, such that
a+b*v_t+c*v'_t = V_t(t+T)
where I know the right hand side from the data and try to find v_t and v'_t. I can fix the parameters a,b and c and minimize over the error at the end, but I do not know, how I can program Matlab to find the best data points v_t and v'_t for t running through time.
댓글 수: 1
Ingrid
2015년 5월 11일
I do not know how to do this but I know the CAPTAIN toolbox provided functionalities for fitting when dealing with time series so you might want to google this to see if it suits your needs
답변 (2개)
Torsten
2015년 5월 11일
So a, b, c, V_t(t+T) are given und you search for (time-varying) v_t and v'_t to make
a+b*v_t+c*v'_t = V_t(t+T)
?
Choose v_t = 0 and v'_t = (V_t(t+T)-a)/c.
I guess this is not what you want, but you will have to explain more clearly what you are trying to do.
Best wishes
Torsten.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!