Calculating Quartiles DilemmaWhen I am calculating the lower quartile and upper quartile, why am I...
rmd1228887e
Answered
2022-07-09
Calculating Quartiles Dilemma 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?
Answer & Explanation
ladaroh
Expert
2022-07-10Added 11 answers
You need to look at the definition of quartile you are using. For large it will not matter much, but it appears the definition you are using is the datum that exceeds or of the data. The is there for the "exceed". Wikipedia gives three different definitions of quartile, with a data set that shows the differences.
rzfansubs87
Expert
2022-07-11Added 5 answers
Without a formula, you can always finding the first and third quartiles using two easy steps. First, find the median of the entire set. Then divide the set into two subsets: elements that are lesser than the median, and elements that are greater than the median. (Note: if the median is repeated in the set, include the duplicates in these subsets.) Now find the medians of these two subsets. Those are the first and third quartile values. Example 1, odd number of elements:
The median is 4 (the second one), so the lower subset is and the upper subset is The medians of those 2 subsets are 3 and 7. So the first quartile value is 3 and the third quartile value is 7. Example 2, even number of elements:
The median is 7, so the lower subset is and the upper subset is . So the first and third quartiles are 4 and 10, respectively.