I have a time series of monthly log returns, and want to transform these into monthly log prices. How do I proceed?

4 ビュー (過去 30 日間)
I have performed a Monte-Carlo simulation to extract monthly log returns with X simulations.
I have the initial t = 0 log price, so theoretically I should just add the log returns to get log prices (E.g. the log price at the end of period t+2 would be log price at t = 0 + log return at t+1 + log return at t+2). I have 600 monthly log returns and would like to create a table that shows monthly log prices for X simulations (meaning that I want the table to adjust if the number of simulations are decreased or increased) How do I do this in an easy way?

回答 (1 件)

Alan Weiss
Alan Weiss 2019 年 4 月 1 日
doc cumsum
Alan Weiss
MATLAB mathematical toolbox documentation

カテゴリ

Help Center および File ExchangeInterest-Rate Instruments についてさらに検索

タグ

製品


リリース

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by