I have a list of numbers:
list = {0.202431, -0.011127, -0.313263, -0.181741, -0.0800737, -0.0513697,
0.0808629, 0.197559, 0.27316, -0.341358, -0.0513697, 0.347136, 0.147117};
I need to count pairs of numbers. I tried this, but it doesn't work:
Values[[#n-#(n-1)],& list]
I mean to count first two numbers, then third-second, fourth-second, etc. I want to make sign test for independent residuals and I need to know how many numbers has possitive mark. The numbers in the list are actually residuals. so I need to know how many pairs {e2-e1,e3-e2,e4-e5,e6-e7,...} has possitive mark
Partition[list, 2, 1]
? Or, this:Differences[list]
? $\endgroup$