Edit, I have reformulated for more clarity (I hope): So to give some background, our app manages transactions belonging to accounts. For each account, we have detected a number of patterns composed of 3 amounts. For example:
- Account 123456 :
- pattern 1: (10, 200, 295 )
- pattern 2: (200, 300, 1055
- pattern 3: (310, 65, 200)
- pattern n: ( x, y, z)
But what we actually want is something like (order of pattern doesn't matter BUT order inside a patter does):
- Account 123456 :
- pattern 1: (200, 200, 200 ) => best variance/standard deviation (= 0)
- pattern 2: ( 310, 300, 295 ) => second best (= 7.64)
- pattern 3: ( 10, 65, 1055) => third best (= 588.1)
Currently, we don't want to touch the detection algorithm and we are looking for a post-detection-process approach.