1.4 Measuring Position of Quantitative Data
Section Overview
- Interactive 1.4.1 - Cum. Rel. Freq. Graph
- Figure 1.4.1
- Example 1.4.1
- Interactive 1.4.2 - Example 1.4.1
- Pop Quiz 1.4.1
Percentiles
One way to measure the position of an observation is to find the pth percentile of the distribution, or the observation with p percent of the observations lesser than it. We’ve actually been learning about percentiles since the last section without even knowing it, as the values of the first quartile, the median, and the third quartile are also the 25th, 50th, and 75th percentiles respectively. We can calculate the percentile of an observation as:
If we want to display percentiles, we can create a cumulative relative frequency graphGrouped cumulative tables follow their stated interval endpoints. The current Topic 1.7 lesson uses the empirical percentage at or below a data value, including equal observations. The preserved reading’s percentile formula instead counts strictly lesser observations. State the convention and keep the comparison consistent, especially with ties.. An example of one can be seen in Interactive 1.4.1 Before we can create the graph, it helps to first create a cumulative frequency tableGrouped cumulative tables follow their stated interval endpoints. The current Topic 1.7 lesson uses the empirical percentage at or below a data value, including equal observations. The preserved reading’s percentile formula instead counts strictly lesser observations. State the convention and keep the comparison consistent, especially with ties. and/or a cumulative relative frequency table. The cumulative frequency tables are similar to the frequency tables and relative frequency tables we’ve talked about in previous sections, but instead of just listing the counts or percents for each class, we add the counts or percents from each previous class to the current class as we go down the class list. To better help explain these concepts, let’s look at the following master table, which uses the data from Example 1.2.3, the toy collection problem, as well as includes the cumulative frequency and cumulative relative frequency.
| Toys Collected | Freq. | Rel. Freq. | Cumul. Freq. | Cumul. Rel. Freq. |
|---|---|---|---|---|
| 0 to <5 | 17 | 43.6% | 17 | 43.6% |
| 5 to <10 | 12 | 30.8% | 29 | 74.4% |
| 10 to <15 | 7 | 17.9% | 36 | 92.3% |
| 15 to <20 | 2 | 5.1% | 38 | 97.4% |
| 20 to <25 | 0 | 0.0% | 38 | 97.4% |
| 25 to <30 | 1 | 2.6% | 39 | 100.0% |
Interactive 1.4.1 Cumulative Relative Frequency Graph
Transforming Data
In addition to percentiles, we can also describe the position of an observation within a distribution in terms of the z-score, which is a standardized value obtained by transforming our observation, namely by subtracting the mean from the value of the observation and dividing by the standard deviation:
The resulting score is measured in the number of standard deviations away from the mean the observation is. Z-scores are especially useful to us because the standardized score we get allows us to compare the position of observations within different distributions, as long as we know the mean and standard deviation for each distribution.
Another way we can transform our data is by adding/subtracting or multiplying/dividing by a constant. This can prove especially useful when we want to convert our units to another form, such as adding by 273 to convert from degrees Celsius to degrees Kelvin or multiplying by 1.65 to convert from a British Pound to a US Dollar (of course the exact rate of exchange depends on the international economy!) By converting the data, however, we risk changing the center, location, and/or the spread of our distribution. Figure 1.4.1 provides a reference as to which measures are changed depending on if we add by a constant a, multiply by a constant b, or both, where x represents all observations within a distribution:
Figure 1.4.1
| Distribution | Shape | Center | Location | Spread |
|---|---|---|---|---|
| x (represents all observations in distribution) | Shape of overall distribution | (mean) M (median) | p (value at pth percentile) (1st & 3rd quartile) | IQR (Interquartile Range) (Std. Deviation) Range |
| same as x | same as x | |||
| same as x | ||||
| same as x |
Example 1.4.1 — recorded solution
a) If the observations are ordered from least to greatest, we can see that the −7°C observation is larger than 7 other observations. Using the percentile formula:
The −7°C observation is approximately the 29th percentile of temperatures in the Rusticville distribution
b) When we ordered both of our distributions from least to greatest in Example 1.3.1, we see that the maximum values are 24°C for the Rusticville distribution and 39°C for the Urbanopolis distribution.
Now, we’ll need the mean and standard deviation for each distribution to calculate the individual z-scores.
For the Rusticville distribution, and , so our z-score is:
For the Urbanopolis distribution, and :
The 24°C and 39°C were the largest observations in their respective distributions, but the z-scores are not the same; the z-score for 24°C, 2.563°C is greater than the z-score for 39°C, 1.912°C. This actually makes a lot of sense, as 24°C was proven in Example 1.3.1 to be an outlier in the Rusticville distribution while 39°C was not an outlier in the Urbanopolis distribution.
c) Converting from degrees Celsius to degrees Fahrenheit has us both adding a constant () and multiplying by a constant (). Looking at Figure 1.4.1, we can see how this effects the shape, center, location, and spread of the Rusticville distribution:
Shape: The shape of the distribution remains the same even after multiplying and adding by a constant.
Center: Our mean becomes
and our median becomes
Location: In part (a), we found the −7°C observation to be in the 29th percentile. If this observation were converted to Fahrenheit, its new value would be
Likewise, our first quartile becomes
Our third quartile becomes
Spread: Using the values we just found for the first and third quartile, our IQR becomes
Our standard deviation becomes
Interactive 1.4.2 Example 1.4.1
Pop Quiz 1.4.1
Glossary and deeper reading · 7 refreshers
These editorial refreshers supplement the reading. Definitions and examples are added guidance; original source wording and recorded answers remain in their original context.
-
Observation
An observation is a recorded value or set of values for an individual or occasion. The individual may be a person, object, or event rather than a human subject. For example, one plant’s measured height is an observation in a plant-growth study.
-
Percentile
A percentile identifies a location in an ordered distribution by the proportion below or at that location. Ties and finite samples require a stated convention, so methods can produce slightly different percentile values. For example, the 80th percentile marks a value with roughly 80% of observations at or below it.
Read more: Percentile in the current summary-statistics lesson →
-
Cumulative relative frequency
Grouped cumulative tables follow their stated interval endpoints. The current Topic 1.7 lesson uses the empirical percentage at or below a data value, including equal observations. The preserved reading’s percentile formula instead counts strictly lesser observations. State the convention and keep the comparison consistent, especially with ties.
Cumulative relative frequency adds proportions through a specified value or interval. A cumulative relative frequency graph shows how the accumulated proportion rises from 0 toward 1. For example, a value of 0.7 at 20 minutes means that 70% of the recorded waits are at or below 20 minutes.
-
Cumulative frequency
Grouped cumulative tables follow their stated interval endpoints. The current Topic 1.7 lesson uses the empirical percentage at or below a data value, including equal observations. The preserved reading’s percentile formula instead counts strictly lesser observations. State the convention and keep the comparison consistent, especially with ties.
Cumulative frequency adds counts through a specified value or interval. It shows how many observations lie at or below that point in the ordered data. For example, adding counts for all intervals up to 20 minutes gives the number of recorded waits no longer than 20 minutes.
-
Z-score
A z-score expresses a value’s distance from its distribution’s mean in standard-deviation units. It is found by subtracting the mean from the value and dividing by the standard deviation. For example, a z-score of −1.5 places the value 1.5 standard deviations below the mean.
-
Mean
The mean is a measure of center often called an average. For a finite data set, the arithmetic mean is the sum of the values divided by their number; for a random variable, the mean is its probability-weighted expected value when that value exists. Means can be pulled toward extreme values and are not generally resistant. For example, the arithmetic mean of 2, 4, and 9 is 5.
-
Standard deviation
Standard deviation measures spread around the mean using squared deviations and a square root. A sample standard deviation uses the sum of squared deviations divided by one less than the sample size before taking the square root. For example, a larger standard deviation of travel times indicates greater variability, in the original time units.
Read more: Standard deviation in the captured Statistics reading →