[Math] Calculating Quartiles Dilemma

descriptive statisticsstatistics

When I am calculating the lower quartile and upper quartile, why am I taking (n+1)/4 and 3(n+1)/4, instead of n/4 and 3n/4?

According to me, if total number of observations are n, then that should be counted figuring out the quartiles, isn't it?

Best Answer

You need to look at the definition of quartile you are using. For large $n$ it will not matter much, but it appears the definition you are using is the datum that exceeds $25\%$ or $75\%$ of the data. The $+1$ is there for the "exceed". Wikipedia gives three different definitions of quartile, with a data set that shows the differences.