For some research I am conducting, I have run into the following problem, which I must solve repeatedly:
My data consists of sequences of observations $\{O_1,O_2,\ldots,O_n\}$, each with a different normally distributed error. The sequences are variable in length, ranging from 5 to 44 observations.
I need a ranking system that expresses how much a given sequence of observations is decreasing.
Here's what I've come up with so far:
Since everything is normally distributed, it's easy to compute $P(O_1 > \cdots > O_n )$ or $\prod_{i=1}^{n-1}P(O_i > O_{i+1})$ via Monte Carlo. So my first naïve way of tackling this problem is to try these two scores.
There are problems with this approach. In my data, the observations may correspond to an exponentially decreasing quantity, or follow a power law. In these asymptotically convergent cases, for large $n$ these scores could be very low. What's more, a short sequence with wide error bars could easily get a higher score.
So a good ranking system should punish short, ambiguous sequences and forgive long, asymptotically convergent sequences.
Thinking of the ambiguous case, one can show that if all of the observation are i.i.d, then regardless of the distribution:
- $\displaystyle P(O_1 > O_2 > \cdots > O_n) = \frac{1}{n!}$ and
- $\displaystyle\prod_{i=1}^{n-1}P(O_i > O_{i+1}) = \frac{1}{2^{n-1}}$
From these observations, I was inspired to come up with the following rankings:
- $P(O_1 > \cdots > O_n ) \times {n!}$
- $\displaystyle\prod_{i=1}^{n-1}P(O_i > O_{i+1}) \times 2^{n-1}$
I can't say anything about the statistical properties of these rankings, as they are my own invention and I can't find any papers on this problem. Also, I have yet to implement anything, since I only encountered this problem very recently. I will update this question with my developments.
Input and criticisms are welcome! Thanks everyone in advance!