At this point we can describe the results of an experiment - at least for numeric variables - using the mean (or median) and the standard deviation. That will tell us the "center" of the distribution of values and the "spread" around that center. For example, if we measure the height of US army soldiers we could say that the average height of US soldiers is 1.73 meters, with a standard deviation of 0.15 meters (the numbers are made-up). To describe the distribution in more detail we need additional descriptive measures.
Following this notation, the median should actually be called the "middle quartile" Q2, since it is that number such that 50% are less than it and 50% are larger.
NOTE: To find the quartiles, you must first sort your data (similar to finding the mean).
Example: Compute the upper and lower quartiles of the numbers 1, 2, 3, 4, 5, 6, 7.
The numbers are already sorted, so that it is easy to see that the median is 4 (three numbers are less than 4 and three are bigger). In other words, 4 splits our numbers up into the smaller set {1, 2, 3} and the larger set {5, 6, 7}. The quartiles, in turn, split up these sets in the middle, so that Q1 = 2 and Q3 = 6.
Note that the numbers 1, 2 are less than or equal to the lower quartile, while 2, 3, 4, 5, 6, 7 are larger than or equal to Q1. Therefore, 2 out of 7 or 28% of values are less than or equal to Q1 and 6 out of 7 = 85% are larger than Q1.
Example: Compute the upper and lower quartiles of the numbers 1, 2, 3, 4, 5.
Now the median is 3, leaving two sets {1, 2} and {4, 5}. To split these numbers in the middle does not work, so it is not immediately clear what the quartiles are.
Similarly, the upper quartile can be shown to be 4.
For larger data sets, the quartiles can be selected as follows:
For Lower Quartile;
For Upper Quartile;
Examples: Find the quartiles for the values 1, 2, 3, 4, 5, 6, 7 and also for the values 1, 2, 3, 4, 5 using this new method.
For the set 1, 2, 3, 4, 5, 6, 7 we have N = 7. Thus:
For the set 1, 2, 3, 4, 5 we have N = 5. Thus:
Quartiles are useful and they help to describe the distribution of values as we will see later. However, we often want to know how one particular data value compares to the rest of the data. For example, when taking standardized test scores such as SAT scores, I want to know not only my own score, but also how my score ranks in relation to all scores. Percentiles are perfect for this situation.
The K-th Percentile is that number such that K % of all data values are less and (100 - K) % are larger than it, or to be more precise, at least K% of the sorted values are less than or equal to it and at least (100 - K) % of the values are greater than or equal to it.
Note: The lower quartile is the same as the 25th percentile, the median is the same as the 50th percentile, and the upper quartile is the same as the 75th percentile.
To find the K-th Percentile:
Example: Consider the following cotinine levels of 40 smokers:
Find the quartiles and the 40th percentile.
First note that before we start our computations we must sort the data - computing percentiles for non-sorted data is the most common mistake (so please avoid it). Here is the same data again, this time sorted:
Now we can do our calculations, where N = 40 (number of values in our data set).
But for percentiles another question is usually asked: given a particular value, find that percentile that corresponds to this value. In other words, determine how many values are less and how many values are larger than the particular value.
To find the percentile that corresponds to a particular data value x is:
Example: Suppose you took part in the above study of cotinine levels, and your personal continine level was 245. What is the percentile value of 245, and how many people in the study had a higher cotinine level that you?
First note that in our sorted data the value 245 is in 29th position (I must use the sorted data, of course). Therefore, according to our formula:
Thus, by definition of percentiles, 72.5% of values are less than245, while (100 - 72.5) = 27.5% are larger than 245.
Of course Excel can be used to find percentiles, and therefore upper and lower quartiles (which are just the 25th and 75th percentile, respectively).
The Excel function to compute percentiles is "= percentile(RANGE, K)", where RANGE is a range of cells and K is the percentile to compute as a decimal number between 0 and 1. The data does not have to be sorted, Excel can handle it automatically.
The Excel function to compute the rank of a value x in a data set as a percentage of the data set (in other words, the percentile value of x) is "=percentrank(RANGE, X)". The data does not have to be sorted, Excel can handle it automatically.
For example, the function "=percentile(A1:A10, 0.40)" computes the 40th percentile of the values in the cells A1 to A10.
1365 videos|1312 docs|1010 tests
|
1. What are quartiles and how are they calculated? |
2. How do quartiles help in analyzing data? |
3. What is the significance of percentiles in statistics? |
4. How are percentiles calculated? |
5. Can quartiles and percentiles be used interchangeably? |
1365 videos|1312 docs|1010 tests
|
|
Explore Courses for SSC CGL exam
|