I have the data set [3,7,9,10]
.
Excel and Desmos both return the value 8
for the median, which agrees with my understanding of how medians are calculated. Since there are four values, the median is calculated as the mean of the middle two: $\frac{7+9}{2}=8$.
My understanding of the first quartile is that it is the median of the lower half of the data. Which would be the mean of $3$ and $7$, so it should be $5$.
Desmos returns 5
as the first quartile, however Excel returns 6
as the first quartile. I'm using the formula quartile({3,7,9,10},1)
. Similarly Excel gives 9.25
as the third quartile.
What is Excel doing? I have seen in this answer that a formula for the first quartile is $\frac{1}{4}\cdot(n+1)$, which means I would be looking for the $\frac{5}{4}=1.25^{th}$ data value. However, wouldn't that make the first quartile be $4$ rather than $6$?
3
is the $0$th entry,7
is the $1$st entry, etc. There are answers to this question here $\endgroup$