Compute log-returns in a time series.
15 ビュー (過去 30 日間)
古いコメントを表示
Dear users, I have a doubt with this operation. i need to compute a log-returns of a time-series, accourding to the formula (continuously compounded return):
r(t)=log[S(t)]-log[S(t-1)]
In other terms, i have a vector of prices, and i want to have a vector of log-return.
How to compute in Matlab?
Thanks in advance
0 件のコメント
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Financial Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!