I've just started with Julia and I am trying to do some simple statistics.
I'm using the StatsBase package and am trying to calculate quantiles.
using StatsBase
lst = 1:10
print(nquantile(lst, 4))
and get
[1.0, 3.25, 5.5, 7.75, 10.0]
Where I assume Q_1 = 3.25 and Q_2 = 7.75
Running a similar code on python:
from statistics import quantiles
lst = [_ for _ in range(1, 11)]
print(quantiles(lst))
yields:
[2.75, 5.5, 8.25]
Where Q_1 = 2.75 and Q_3 = 8.25.
According to my understanding of statistics, pythons results correspond to what the actual math is.
So, What I am guessing is that the Julia variant is using some kind of gaussian distribution to find the quantiles. If so, is there a way to make this follow uniform distribution?