Explanation

Why we describe data

Descriptive statistics turns a list of numbers into a picture or a few summary numbers. A good description answers three questions: what is a typical value (center), how spread out are the values (spread), and what is the overall shape. Look also for outliers, observations that do not fit the rest of the data.

Graphs for data

Stem-and-leaf plot (stemplot): each value is split into a stem (leading digits) and a leaf (last digit). Its advantage over a histogram is that every original value is still visible. Bar graph: bars (separated by gaps) compare categories; grouped bar graphs cluster several bars, stacked bar graphs divide each bar into parts. Use them for categorical data. Line graph: connects points in time order and shows trends.

Histogram: the graph of a frequency distribution for quantitative data.

  • The horizontal axis shows classes (intervals) of equal width; the vertical axis shows frequency or relative frequency.
  • The bars are of equal width and are drawn adjacent (touching), because the data are continuous and the classes run on without gaps.
  • Choosing classes: typical rule is about 5–15 classes; class width ≈ (largest − smallest) ÷ number of classes, rounded up so that every value fits. The shape can change with the class width, so try more than one.
  • Use relative frequency on the vertical axis to compare groups of different sizes.

Frequency polygon: place a point at the midpoint of each class at the height of its frequency, join the points with straight lines, and close the polygon at both ends on the axis (empty classes before the first and after the last). Polygons are convenient for putting several distributions on one graph.

Time series graph: the variable is plotted against time in order. Look for a trend (long-term rise or fall), seasonal or cyclic patterns, and sudden jumps. The order of data matters here: a histogram of the same values would hide it.

Measures of center

A measure of center is a single number meant to represent a "typical" value.

Mean (the arithmetic mean, or "average"): the sum of all values divided by their number. The sample mean is x̄ = Σx/n and the population mean is μ = Σx/N. It is the balance point of the data, uses every value, and therefore is pulled toward outliers (it is not resistant).

Median: the middle value once the data are ordered. With an odd number of values it is the middle one; with an even number it is the average of the two middle values. Half the values are less than or equal to it, half greater than or equal to it. It may or may not be an actual data value. It is resistant to outliers and is the better description for skewed data (incomes, house prices).

Mode: the most frequent value. A data set can have no mode, one mode (unimodal), or several (bimodal, multimodal). It is the only one of the three that works for nominal data.

Mean from a frequency table with frequencies f: x̄ = Σ(f·x)/Σf. When values are grouped into intervals, replace each interval by its midpoint m = (lower boundary + upper boundary)/2 and use x̄ ≈ Σ(f·m)/n. The result is an approximation, because individual values inside an interval are unknown.

Weighted mean: when values do not count equally (course grades with different percentages), multiply each value by its weight, add, and divide by the sum of the weights.

Reading the relationship of the three centers

In a symmetric, unimodal distribution mean ≈ median ≈ mode. Skewness (Week 3) pulls them apart. The textbook advice: the mean is the best single estimate when there are no extreme values; the median is better when the data contain several outliers or extreme values.

Common mistakes

Putting gaps between histogram bars; using unequal class widths without adjusting heights; computing the median without sorting first; averaging averages of groups with different sizes (use a weighted mean); using the grouped-mean formula and reporting it as an exact value.

Practice tasks

  1. Find the mean, median, and mode of 2, 4, 4, 6, 9.
  2. For 3, 4, 5, 6, 8, 8, 9 find mean, median, and mode.
  3. Replace 9 in the set from task 1 with 90. Recompute mean and median and explain what happened.
  4. Your data range from 12 to 58 and you want 5 classes. What class width is sensible?
  5. Grouped data: 0–10 has frequency 5, 10–20 has frequency 10, 20–30 has frequency 5. Estimate the mean.
  6. Homework (20%) 85, midterm (30%) 70, final (50%) 90. Find the weighted mean.
  7. Monthly sales are 10, 12, 15, 14, 18 (thousand). Describe what a time series graph would show, and why a single histogram of these values would hide that information.