Comparison of two quotation charts with non-linear distortions on the X-axis - page 6

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How is this problem solved via DTW (example):
In total we have done 50,000,000 comparisons using DTW algorithm which has complexity of O(N^2). That is very roughly 5 * 10^11 (500 billion) elementary computational operations were performed.
Now a new bar has arrived - we have done 500 billion calculations again.
Decided to run on history, starting with 200,000 of the outermost element. Roughly, it takes 200,000 times 500 billion calculations each to make a run. That's 10^17 calculations in total.
Even if there is a tricky optimization, it will not yield a gain of more than two orders of magnitude. I.e. it will have to perform 10^15 calculations at most.
How this task is solved via DTW (example):
If you don't mind, please show the solution of this problem in the code, it's not so much of practical interest, but rather of sporting interest.
No one in their right mind would undertake to implement an algorithm, the result of which would simply not wait.
The same Pearson QC would also be unsuitable, as would DTW, since its computational complexity is also O(N^2). But there is a significant algorithmic optimization of Pearson QC computation with complexity O(N * log(N)) that could allow to solve this problem in a reasonable time. The implementation of this algorithm has been posted in Codebase. To solve the problem raised, it remains to apply the same algorithm to the set of ZigZag-transformed ZVRs.
No one in their right mind would undertake to implement an algorithm, the result of which would simply not wait.
The same Pearson QC would also be unsuitable, as would DTW, since its computational complexity is also O(N^2). But there is a significant algorithmic optimization of Pearson QC computation with complexity O(N * log(N)) that could allow to solve this problem in a reasonable time. The implementation of this algorithm has been posted in Codebase. To solve the problem raised, it remains to apply the same algorithm to the set of ZigZag-transformed ZVRs.
You should first read the problem that the author is facing and his answers.
I tried it. I don't understand how to use it either. The output should either be a transformation path or transformed data.
The output of the algorithm is an "accumulated cost matrix" (rather than just the local distance matrix shown in the figure), with the method returning the value of the bottom right cell (by construction, it is the maximum in the whole matrix). To find the path now, we just need to move from cell (n,m) towards cell (1,1), choosing each time the option with the lowest value:
OK, thank you, that was quite clear, one more question: is there a need to normalise or reordering the data, does it affect the result?