d***@yahoo.com
2006-10-16 11:04:09 UTC
according to the bbc website:
http://www.bbc.co.uk/scotland/education/bitesize/standard/mathsII/statistics/semi-interquartile_range_rev2.shtml
the formula for calculating the lower quartile is (n+1)/4 and
the formula for calculating the upper quartile is 3(n+1)/4
now this is ok if there are an odd number of terms (n) and (n-1)/2 is
and an odd number
ie using the following list of terms: 3, 6, 9, 11, 15, 17, 21
the lower quartile is 2nd term (6) and the upper quartile is 6th term
(17)
but in this example where the number of terms is an even number then
the (n+1)/2 and the 3(n+1)/4 formula produces a number with a fraction
ie using the following list of terms: 3, 6, 9, 11, 15, 17, 21, 27
where there are an even number of terms (8) and n/2 is an even number
the lower quartile is the (8+1)/4 = 2.25th term and
the upper quartile is the 3(8+1)/4 = 6.75th term
is there a better explanantion to calculate the lower and upper
quartile for these different combinations of number of terms or is it
safe to say that if the nth term of the upper and lower quartile values
is a fraction then its just :
int(nth term) + (int(nth term)+1) / 2
ie the lower quartile of 3, 6, 9, 11, 15, 17, 21, 27 would be:
(2nd+3rd) / 2 th term = (6 + 9) / 2 = 7.5
Apologies if the above sounds a bit waffly!
http://www.bbc.co.uk/scotland/education/bitesize/standard/mathsII/statistics/semi-interquartile_range_rev2.shtml
the formula for calculating the lower quartile is (n+1)/4 and
the formula for calculating the upper quartile is 3(n+1)/4
now this is ok if there are an odd number of terms (n) and (n-1)/2 is
and an odd number
ie using the following list of terms: 3, 6, 9, 11, 15, 17, 21
the lower quartile is 2nd term (6) and the upper quartile is 6th term
(17)
but in this example where the number of terms is an even number then
the (n+1)/2 and the 3(n+1)/4 formula produces a number with a fraction
ie using the following list of terms: 3, 6, 9, 11, 15, 17, 21, 27
where there are an even number of terms (8) and n/2 is an even number
the lower quartile is the (8+1)/4 = 2.25th term and
the upper quartile is the 3(8+1)/4 = 6.75th term
is there a better explanantion to calculate the lower and upper
quartile for these different combinations of number of terms or is it
safe to say that if the nth term of the upper and lower quartile values
is a fraction then its just :
int(nth term) + (int(nth term)+1) / 2
ie the lower quartile of 3, 6, 9, 11, 15, 17, 21, 27 would be:
(2nd+3rd) / 2 th term = (6 + 9) / 2 = 7.5
Apologies if the above sounds a bit waffly!