5 Descriptive Statistics
Learn how to summarize categorical and numerical data with appropriate measures of center, spread, position, and graphical displays.
What descriptive statistics reveal
Descriptive statistics organize and summarize observed data. They help answer questions about what value is typical, how much observations vary, and whether values are concentrated, skewed, or divided into groups. A useful summary considers both numerical measures and a graph, because a single statistic can hide important features of a .
Identify the variable type
Choose statistics according to the type of variable. place observations into groups, such as transportation method or eye color. Categories are nominal when they have no natural order, or ordinal when they do, as with small, medium, and large. Numerical data represent counts or measurements, such as number of visits or height, and have meaningful magnitudes and differences.
A statistic is useful only when it makes sense for the variable. For example, calculating the average of eye-color labels has no meaningful interpretation.
Summarize
Summarize by listing each category with its frequency, or count, and its , or share of all observations. In a group of people, the transportation counts are bus , bicycle , and walk . Their relative frequencies are bus , bicycle , and walk ; the counts total and the relative frequencies total .
The is the most frequent category; in this example, it is bus. A frequency or relative-frequency table and a bar chart are effective summaries. For ordinal categories, preserve their natural order and, when useful, report cumulative frequencies. Do not use a histogram for nominal categories: its numerical bins imply intervals that the categories do not have.
Compare measures of center
Measures of center describe a typical value, but they do not always identify the same value or respond equally to unusual observations.
: Add all values and divide by the number of values. For observations , the is
The uses every observation, so unusually high or low values can pull it toward a tail.
: Sort the values and find the middle. With an even number of observations, take the of the two middle values. The is less affected by extreme observations than the .
: Use the most frequent value. A data set can have one , several modes, or no useful ; the is especially useful for .
For the ordered data , the is , the is , and the is . The and need not coincide, especially when values are skewed or include outliers.
Measure numerical spread
Measures of spread describe variation among numerical values.
Range: The maximum minus the minimum. It is simple to calculate but depends only on the two extremes.
: The difference between the third and first quartiles, . Here, is the 25th and is the 75th . The IQR describes the spread of the middle half of the data and is relatively resistant to extreme values.
: The average squared distance from the . For a sample, the usual sample is
Squaring gives more influence to values far from the , and is in squared units.
: The square root of the . It describes spread around the in the data’s original units; the sample is .
Population , commonly written , instead divides the sum of squared deviations by the population size . Use the sample or population formula appropriate to the data and task.
Read distributions and graphs
A describes the values a variable takes and how often they occur. Describe a numerical by considering its center and spread, its shape, and any unusual features. Shape includes whether the is approximately symmetric or skewed and whether it has one peak or multiple peaks. Unusual features may include gaps, clusters, or possible outliers.
A right-skewed has a longer tail toward larger values; a left-skewed has a longer tail toward smaller values. A histogram helps reveal overall shape, while a box plot compactly displays the , quartiles, and spread. Graphs and statistics complement one another: a histogram can reveal two clusters that a single would conceal.
Use percentiles and identify potential outliers
A indicates a position in ordered numerical data: approximately of observations are at or below the th . The 50th is the ; the 25th and 75th percentiles are the first and third quartiles. A 90th- score is not necessarily 90% correct; it means the score is at or above roughly 90% of scores in the comparison group.
Definitions for calculating percentiles and quartiles can vary slightly among software and textbooks, so use the specified convention when exact values matter. A compact numerical summary is the : minimum, , , , and maximum.
A common screening rule flags observations below or above as potential outliers. These flags prompt investigation; they do not prove that a value is an error. Check context and data quality before deciding how to handle a flagged value.
Choose a suitable summary
Choose summaries according to variable type. Describe with category counts, proportions, and often the . For numerical data, use measures of center and spread together, and inspect the ’s shape and unusual features.
The and are often useful together for roughly symmetric distributions without strong outliers. For skewed data or data with extreme values, the and IQR usually give a more representative description. Pairing with , or with IQR, makes the choice of summary clear.