My question is about how to calculate the percentile of a list of numbers. I found on the Internet the formula:
$$p_i=100·\frac{i-0.5}{N}$$
Nevertheless, I don't understand the reason of -0.5. I mean, for example if I have the following ranked list of numbers:
$$1, 2, 4, 5, 100$$
In my opinion, 100 should be the 100%p and not:
$$p_5=100·\frac{5-0.5}{5} = 90\%$$
I am assuming that all the numbers have the same probability. In this way I'm having the same problem with another formula that is commonly used in this type of calculations:
$$p=100·\frac{i}{n+1}$$
I found this formulas in the following websites:
http://www.itl.nist.gov/div898/handbook/prc/section2/prc262.htm
Thanks for you help!
For your numbers 1,2,4,5,100 each number represents 20% of the distribution. The first number 1 is 0%-20%, therefore we want a formula which gives 10% as a point value of the percentile. The final number is 80%-100% and so we want 90% as the result.