Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can this algorithm compare differences in two matrices #5

Open
andrewczgithub opened this issue Apr 8, 2020 · 5 comments
Open

can this algorithm compare differences in two matrices #5

andrewczgithub opened this issue Apr 8, 2020 · 5 comments

Comments

@andrewczgithub
Copy link

hi @wittawatj !!

i hope your well.

I was wondering if you have a matrix of returns, then new data comes in and you have a second rolling matrix of returns, can the test tell if the distribution has changed from one matrix to the next?

Kind regards,
Andrew

@wittawatj
Copy link
Owner

Could you please elaborate more? I do not quite understand your setting. Is it a change point detection problem? Do you have a time series of matrices?

@andrewczgithub
Copy link
Author

Hi @wittawatj !

Basically i was thinking of testing weather warket conditions have changed.
Using the test as test for portfolio rebalancing.

If you have an array of returns and you update the array with new returns, then you work out if the distribution has changed and hence the portfolio needs to be rebalanced.

Kind regards and thanks,
Andrew

@wittawatj
Copy link
Owner

Hi Andrew,

Indeed, this sounds like a change point detection problem https://en.wikipedia.org/wiki/Change_detection . Tools in this repository are for goodness-of-fit testing for i.i.d. data. That is, given a model (probability density), and a dataset, decide whether the model fits.

I think the tools we have here are not appropriate for your problem. Firstly, it does not sound like you have a density model to begin with i.e., you only have observations. Secondly, what you have is probably not i.i.d. I would encourage you to look at change point detection.

Best,
Wittawat

@andrewczgithub
Copy link
Author

andrewczgithub commented Apr 9, 2020

oops! thanks so much for your advice

@andrewczgithub
Copy link
Author

could you possibly give me an example of how change point could help with the above problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants