Marigold / universal-portfolios

Collection of algorithms for online portfolio selection
Other
778 stars 214 forks source link

Question about data format #102

Closed catgrandpas closed 1 year ago

catgrandpas commented 1 year ago

Hello! I've been reviewing your code and noticed that the algo.run() function expects the input data type to be raw, and then it automatically converts it into the appropriate data format internally. However, I'm wondering why, in the provided OLMAR example, NYSE(O) data is used as relative price data. Is there a specific reason for this, or is it potentially an issue?

Marigold commented 1 year ago

Hmm, I'm not sure if I understand the question. NYSE(O) data is in raw format (just normalized so that the starting price is 1). OLMAR then converts the data and works with it.

catgrandpas commented 1 year ago

Okay, I understand your point now. I had this question because when I used the Universal Portfolios algorithm to run classic datasets, I noticed that the backtest results for the same strategy on the same dataset were different. I'm not sure if it's due to different initial parameter settings or because of differences between MATLAB and Python. Either way, thank you again for your response and contribution

Marigold commented 1 year ago

I'm not sure if it's due to different initial parameter settings or because of differences between MATLAB and Python.

It could be many things... It's typically tough to replicate the results exactly. You are usually lucky if your results are at least directionally correct as results from the paper.