[go: nahoru, domu]

Quartile: Difference between revisions

Content deleted Content added
→‎Example 1: Supplemented such that which numbers are used to calculate t
→‎Method 3: Clarified the odd data point number case for the Method 3.
Line 49:
==== Method 1 ====
 
# Use the [[median]] to divide the ordered data set into two-halves. The median becomes the second quartiles.
#* If there are an odd number of data points in the original ordered data set, '''do not include''' the median (the central value in the ordered list) in either half.
#* If there are an even number of data points in the original ordered data set, split this data set exactly in half.
Line 57:
==== Method 2 ====
 
# Use the [[median]] to divide the ordered data set into two-halves. The median becomes the second quartiles.
#* If there are an odd number of data points in the original ordered data set, '''include''' the median (the central value in the ordered list) in both halves.
#* If there are an even number of data points in the original ordered data set, split this data set exactly in half.
Line 65:
==== Method 3 ====
 
# Use the median to divide the ordered data set into two-halves. The median becomes the second quartiles.
# If there are even numbers of data points, then Method 3 starts off the same as Method 1 or Method 2 above and you can choose to include or not include the median as a new datapoint. If you choose to include the median as the new datapoint, then proceed to the step 2 or 3 below because you now have an odd number of datapoints. If you do not choose the median as the new data point, then continue the Method 1 or 2 where you have started.
## If there are odd numbers of data points, then go to the next step.
## If there are even numbers of data points, then the Method 3 starts off the same as the Method 1 or the Method 2 above and you can choose to include or not include the median as a new datapoint. If you choose to include the median as the new datapoint, then proceed to the step 2 or 3 below because you now have an odd number of datapoints. If you do not choose the median as the new data point, then continue the Method 1 or 2 where you have started.
# If there are (4''n''+1) data points, then the lower quartile is 25% of the ''n''th data value plus 75% of the (''n''+1)th data value; the upper quartile is 75% of the (3''n''+1)th data point plus 25% of the (3''n''+2)th data point.
# If there are (4''n''+3) data points, then the lower quartile is 75% of the (''n''+1)th data value plus 25% of the (''n''+2)th data value; the upper quartile is 25% of the (3''n''+2)th data point plus 75% of the (3''n''+3)th data point.