How are percentiles calculated?

Discuss statistics related things
Post Reply
nineoh
Posts: 2
Joined: Tue Jan 07, 2025 5:31 am

How are percentiles calculated?

Post 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.
User avatar
jonathon
Posts: 2757
Joined: Fri Jan 27, 2017 10:04 am

Re: How are percentiles calculated?

Post 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 412 times

you can reproduce with the following R code:

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

cheers

jonathon
nineoh
Posts: 2
Joined: Tue Jan 07, 2025 5:31 am

Re: How are percentiles calculated?

Post 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
Post Reply