Page 1 of 1

How are percentiles calculated?

Posted: Fri Jan 10, 2025 4:37 pm
by nineoh
How are percentiles calculated in Jamovi? I have searched high and low and I cannot find a clear answer.
When I request percentiles (25, 50, 75) for the follow set of data:

5
8
10
15
18
25
30
35
40
45

the output reports:
25th 11.3
50th 21.5
75th 33.8

The 50th percentile is pretty straightforward, but I am not sure what is happening for the 25th and 75th percentiles.

Re: How are percentiles calculated?

Posted: Sun Jan 12, 2025 11:10 pm
by jonathon
hi,

jamovi uses the quantile function from R, which looks to default to "type 7" quantiles.

Screenshot 2025-01-13 at 10.09.32.png
Screenshot 2025-01-13 at 10.09.32.png (16.36 KiB) Viewed 64542 times

you can reproduce with the following R code:

quantile(c(5, 8, 10, 15, 18, 25, 30, 35, 40, 45))

cheers

jonathon

Re: How are percentiles calculated?

Posted: Wed Jan 15, 2025 8:16 pm
by nineoh
Thank you! I appreciate your response. This equation was a bit puzzling to me without knowing more about how the variables were defined.

The R documentation is great though and helped to fill in the gaps.

https://www.rdocumentation.org/packages ... s/quantile