lppls icon indicating copy to clipboard operation
lppls copied to clipboard

Can this module be used to minute data as well as daily data?

Open SpenceSidne08 opened this issue 2 years ago • 4 comments

Hi As I mentioned in the title, I'd like to put some price minute data. But it seems not to work when I just put them in the module. If I can use this module to analyze minute data, could you tell me how to do it. Thank you for your effort and post. It's so cool module and always helpful.

SpenceSidne08 avatar Nov 10 '22 15:11 SpenceSidne08

Hi @SpenceSidne08, Thank you for the kind words. We should be able to apply the model to minutely data. Are you able to provide a sample of the data you are analyzing? I could create a proof of concept in a shared notebook. Best, Josh

Joshwani avatar Nov 10 '22 15:11 Joshwani

Thank you Josh! Sure! This is the data. to_csv_out.csv

SpenceSidne08 avatar Nov 11 '22 06:11 SpenceSidne08

Here is an example https://colab.research.google.com/drive/1iDvGHyclOsHImQI4qRQNL3_xvmjxnc3D?usp=sharing The trick is to convert time to evenly spaced numbers over a specified interval via numpy's linspace function. You lose timestamps but these can be reversed after the model has been fit.

Also, it looks like you may be interested in antibubbles, the current package doesn't support antibubbles yet. However, if you fork the repo you can achieve antibubble fits by changing tc - t to t - tc in the lppls method.

Joshwani avatar Nov 11 '22 14:11 Joshwani

Awesome! Thank you very much! It's a kind of technical but intelligent trick. If you don't mind it, could you show me how to adapt CMA-ES to the code above you sent me?

SpenceSidne08 avatar Nov 12 '22 10:11 SpenceSidne08