Let me repeat what I understood, please correct me if I make a mistake somewhere. I observe that on both of your stories, the 1D series in blue remains the same, and the green color is stretched. How do you do that you explained this in a message from September 19 to September 13 at 9:36. Your premise is that since (1) DTW “cares” about the time shift and (2) everything you do stretches one time series in length without affecting the y values (conclusion: :) you expect the distance to remain the same.
There is a small missing link between [(1), (2)] and [(Inference)]. Which, the individual distance values corresponding to the displays, will change as the set of signals changes. And this will lead to a difference in calculating the total distance. Build a trajectory of deformation, find the cost price to see it yourself.
Take the simplified case ...
Let a=range(0,101,5)
= [0,5,10,15 ... 95, 100]
and b=range(0,101,5)
= [0,5,10,15 ... 95, 100].
Now, intuitively, you / I would expect one or one correspondence between two signals (for DTW display), and the distance for all displays should be 0, the signals are identical.
Now, if we do, b=range(0,101,4)
= [0,4,8,12 ... 96,100], the DTW mapping between a and b should start at 0, obtained by matching with b 0, and end at 100 mapped to b 100 (boundary restrictions). In addition, since the DTW “takes care” of the time shift, I also expected that 20, 40, 60 and 80 of the two signals would be matched to each other. (I have not tried DTWing these two myself, saying this from intuition, so please check. There are few possibilities for unintuitive deformation, which also takes place, depending on the permissible step patterns / global constraints, but let go with intuitive touches for the moment for ease of understanding / for the sake of simplicity).
For the remaining data points, obviously, the distances corresponding to the display are now non-zero, so the total distance is also non-zero. Our distance / total cost has changed from zero to something other than zero.
Now this was the case when our signals were too simplistic, linearly increasing. Imagine the variables that come into the picture when you have non-monotonous signals of real life, and you need to find a temporary deformation between them. :)
(PS: Please remember to answer in response: D). Thanks.