Geometric mean for a specific time intervals
Ältere Kommentare anzeigen
Hi all,
say that I have a matrix (NX2) where the first column's elements are the number of seconds (since midnight) and the second column is stock returns associated to associated to the seconds. How can I use the function geomean and compute the geometric returns for a specific time interval? Say the geomean returns at every minute interval? The problem is that I might have say 4 stock returns in some specific minute interval and sometime 10 returns in another interval. If I extract all the trades by minutes, the numbers of returns registered in each minute interval will not be the same. Thank you!
2 Kommentare
Oleg Komarov
am 1 Jun. 2012
Please do NOT delete answered questions.
Charles Martineau
am 1 Jun. 2012
Akzeptierte Antwort
Weitere Antworten (1)
Charles Martineau
am 1 Jun. 2012
0 Stimmen
Kategorien
Mehr zu Time Series finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!