Statistics Glossary → Descriptive Statistics
Descriptive Statisticsanalysis
The first step of any analysis: summarising where a variable's values lie, how spread out they are and what shape they take, using a few summary numbers, tables and graphs.
Concept
Nobody can read hundreds of observations one by one; descriptive statistics reduce the data to a handful of meaningful numbers. They answer three questions: where do the values cluster (location: mean, median, mode), how spread out are they (spread: standard deviation, variance, range, interquartile range), and what shape does the distribution have (skewness, kurtosis)? For a categorical variable, the counts and percentages of each category take their place. This step comes before every analysis; it reveals data-entry errors, outliers and violations of the assumptions of later tests early on.
The mean is the sum of all values divided by the number of observations; the median is the middle value of the sorted data. In a symmetric distribution the two are close; a few very large values pull the mean towards them but barely move the median. The standard deviation is the typical distance of the values from the mean. The confidence interval of the mean shows how precisely the sample mean tells us about the population mean: x̄ ± t · s/√n.
Descriptive statistics only summarise the data at hand; on their own they do not test a hypothesis. With skewed data or outliers, the mean and standard deviation can mislead, so robust measures such as the median, the interquartile range and the trimmed mean should be reported alongside them. Skewness and kurtosis hint at normality, but a firm judgement needs normality tests and plots as well.
When to use it
- At the start of every study, to get an overall picture of the data, catch errors and outliers, and prepare the sample-description table of a paper.
- To see each group's mean and spread before comparing groups formally; if the difference between groups must be tested, move on to inferential tests such as the t-test or ANOVA.
- If normality matters for the choice of method, skewness and kurtosis alone are not enough; assess them together with normality tests and a Q-Q plot.
An everyday example
A supermarket manager wants to know how long customers wait at the checkouts and, over one week, records the queueing time of 200 customers in minutes. The mean wait is 4.2 minutes and the median 3.5 minutes; because a few customers waited more than 15 minutes, the mean is pulled above the median. The standard deviation is 2.6 minutes, and the middle half of customers wait between 2 and 5.5 minutes. These few numbers tell the manager at a glance that most customers wait briefly but there are serious build-ups at certain times.
Parameters in MerQur
Column (list of numeric or categorical columns)
Concept: The measurement type of a variable decides which summary makes sense: for a numeric variable the mean and standard deviation are computed, for a categorical variable the count and percentage of each category.
Everyday example: Waiting time in minutes is a numeric column, and its mean is meaningful. Which checkout a customer used is categorical; an 'average checkout' makes no sense, so instead you look at how many customers went to each checkout.
What it does: Selects the column to be displayed; a numeric column produces descriptives, a categorical column produces a frequency table.
Effect on the result: All other options are applied to the selected column.
On the validation data: In 28 different columns (NIST, hsb2, elemapi, Heights, airquality), n, missing count, mean, median, standard deviation, variance, minimum/maximum, range, skewness, kurtosis, standard error and confidence interval are computed; the NIST certified values are reproduced exactly.
By group (Split-File) - optional (No grouping / categorical or numerically coded column)
Concept: Splitting the data by the levels of a categorical variable and computing the same summaries separately for each subgroup; it makes differences between groups visible before any formal test.
Everyday example: Splitting waiting times into weekdays and weekends might show a weekend median of 5 minutes against a weekday median of 3. A single overall average would hide this difference.
What it does: Produces a separate descriptive row for each level of the selected factor and a grouped box plot.
Effect on the result: The group table (n, mean, SD, SE, median, minimum, maximum, Q1, Q3, skewness, kurtosis, CI) replaces the single-column view; checked extra options are computed per group.
On the validation data: hsb2 write x ses: high n = 58, mean 55.91, SD 9.44; low 47 / 50.62 / 9.49; middle 95 / 51.93 / 9.11. Numerically coded factors (hsb2 ses 1-3, airquality Month 5-9) can also be selected.
Bin count (1-100; 1 = Automatic)
Concept: A histogram divides the range of values into equal-width bins and shows how many observations fall in each. Too few bins hide the detail of the distribution; too many make the picture noisy.
Everyday example: Split the waiting times into only 3 bins and you get a crude 'short, medium, long' picture; split them into 50 and each bin holds a few customers, so the shape looks like a saw blade. Eight to ten bins usually show the long right tail of the distribution clearly.
What it does: Sets the number of equal-width bins in the histogram and the Frequency tab. The automatic value follows Sturges' rule, k = ⌈log2 n + 1⌉.
Effect on the result: Only the chart and the frequency table change; the numeric descriptives do not.
On the validation data: For hsb2 write, Automatic gives 9 bins (8, 8, 20, 23, 15, 33, 15, 51, 27). With 5, 10 and 100 bins the bins are closed on the left and open on the right.
Decimal places (Automatic, 0-8)
Concept: The number of digits reported should reflect the real precision of the measurement; printing more digits than the measurement supports gives a false impression of precision. Rounding changes only the display, not the calculation.
Everyday example: If waiting times were measured to the nearest few seconds, writing the mean as '4.2 minutes' is enough; '4.21837 minutes' misleads the reader, since the stopwatch was never that precise.
What it does: Sets the rounding in the text and tables. Automatic adds two digits to the first significant digit of the standard deviation (2 to 8; at least 3 for SE, 3 for skewness and kurtosis).
Effect on the result: Display only; internal values do not change. The APA line and the multi-summary table use the selected decimals; rounding is half-up.
On the validation data: hsb2 write mean 52.78; with 0 decimals 53, SD 9; with 8 decimals mean 52.775, SD 9.47858602. Automatic matters for small-scale variables: NIST Mavro SD 0.000429.
Confidence Level (%90, %95, %99, Other/custom 80.0-99.9)
Concept: The confidence interval of the mean is a range around the sample mean that plausibly contains the population mean. A higher confidence level widens it; a larger sample narrows it.
Everyday example: If the 200-customer sample gives a mean wait of 4.2 minutes, a 95% confidence interval of about [3.8, 4.6] says that the average wait of all the shop's customers most likely lies in this range. Asking for 99% confidence widens the range a little.
What it does: Computes the confidence interval of the mean as x̄ ± t(1-α/2; n-1)·s/√n.
Effect on the result: Only the CI limits (text, table, APA) change; the CI label in the text states the selected level.
On the validation data: For hsb2 write, 90% [51.67, 53.88], 95% [51.45, 54.10], 99% [51.03, 54.52]. For the Heights data, 95% [64.06302, 65.07031].
SES / SEK (checkbox)
Concept: Skewness and kurtosis are also estimates from the sample and have their own standard errors. The ratio of the value to its standard error (z) is a rough guide to whether the departure is small enough to be explained by chance.
Everyday example: If the skewness of the waiting times is 1.1 with a standard error of 0.17, z is about 6.5, showing that the right skew is no accident. Had the same skewness come from only 15 customers, the standard error would be much larger and z much smaller.
What it does: Gives the standard errors of skewness and kurtosis (exact formula depending on n) and z = G1/SES, G2/SEK; a rough criterion for non-normality at small and moderate n (|z| > 1.96 or 3.29).
Effect on the result: Only extra rows are added.
On the validation data: For write, SES 0.1719, SEK 0.3422, z = -2.8038 and -2.1924.
→ Skewness
Robust measures (5% trimmed mean, Huber M)
Concept: Robust (resistant) measures of location stop a few extreme values from distorting the summary. The trimmed mean drops a fixed share of observations from each end and averages the rest; the Huber M-estimator, instead of dropping extreme values, gives them less weight.
Everyday example: If a till breakdown made a few customers wait 25 minutes, the mean goes up. The 5% trimmed mean leaves out the shortest and longest 5% of waits and so better reflects the 'typical' wait; Huber's M still counts those few customers but limits their influence.
What it does: Outlier-resistant location measures: the mean with ⌊0.05n⌋ observations removed from each end, and Huber M (k = 1.5, scale 1.4826·MAD, until convergence).
Effect on the result: Only extra rows. The "scale MAD" in the text is the normalized MAD.
On the validation data: For write, trimmed mean 53.1389 and Huber 52.9005. When n·0.05 is not an integer, ⌊0.05n⌋ observations are trimmed: for acs_k3 (n = 398) the trimmed mean is 19.1250.
CV, geometric/harmonic mean, sum
Concept: The coefficient of variation (CV) is the standard deviation divided by the mean and lets you compare the relative spread of variables measured on different scales. The geometric mean suits positive data that grow multiplicatively or are right-skewed, and the harmonic mean suits rates and speeds; both are defined only for positive values.
Everyday example: If the CV of waiting time is 62% and that of basket value 40%, waiting times vary more relative to their own mean. To average a speed, such as the number of items a cashier scans per minute, the harmonic mean gives the more accurate summary.
What it does: Gives the coefficient of variation, the geometric and harmonic means and the sum.
Effect on the result: Only extra rows; with zero or negative values the geometric/harmonic mean is left blank.
On the validation data: write CV 17.9604%, geometric 51.8496, harmonic 50.8440, sum 10555.
Extreme values / outliers
Concept: An outlier is an observation lying clearly apart from the rest of the data. Tukey's rule flags values more than 1.5 times the interquartile range beyond the lower or upper quartile as possible outliers; such values are not deleted automatically but their causes are examined.
Everyday example: If the five longest waits are 18, 19, 21, 24 and 25 minutes, the manager checks those records and may find that all fell on the Tuesday afternoon when a till broke down. An outlier can be a data error, or the trace of a real and important event.
What it does: Lists the 5 highest and 5 lowest values (with row numbers); reports observations beyond 1.5 x the hinge range using Tukey hinges.
Effect on the result: Extra table only.
On the validation data: Tied values occur in several rows; for write the highest 67s are rows #185, 183, 177, 160, 118.
→ Outlier
Summary table of all numeric variables
Concept: Presenting the basic summary of several numeric variables side by side in one table; it is the raw form of the sample-description table in papers and allows quick comparison of the variables.
Everyday example: With waiting time, basket value and number of items side by side in one table, the manager sees at a glance which is more skewed and which has missing data.
What it does: Gives n, mean, SD, SE, median, minimum, maximum, G1, G2 for all numeric columns in a single table.
Effect on the result: Extra table only.
On the validation data: elemapi 21 columns (with missing values) are summarized in a single table. Skewness and kurtosis use the adjusted G1/G2 (type 2) definition.
Percentiles (comma-separated list) and Percentile definition (Type 7, Type 6 SPSS HAVERAGE, Type 2 SAS PCTLDEF=5, R type 1/3/4/5/8/9)
Concept: A percentile is the value below which a given share of the data falls (e.g. the 90th percentile is the value below which 90% of observations lie). Different interpolation rules exist for percentiles that fall between two ordered observations, so different programs can give slightly different quartiles for the same small sample.
Everyday example: The manager asks 'below how many minutes do 90% of customers wait?'; if the 90th percentile is 8 minutes, a target can be set around it. With 200 customers the definitions barely differ, but with only 12 customers the difference can reach half a minute.
What it does: Computes the requested percentiles with the Hyndman and Fan (1996) type 1-9 definitions; for types other than 7 an extra Q1/Q3/IQR row is given.
Effect on the result: Only the percentiles (and the extra Q1/Q3/IQR). Q1, Q3 and IQR in the main table are always type 7.
On the validation data: write P5: type 7 35.95, type 6 35.05, type 2 35.5, type 8 35.35, type 9 35.3875. Main-table IQR 14.25 (type 7).
Normal curve on histogram and Q-Q (chart extras)
Concept: Drawing a normal curve with the same mean and standard deviation over the histogram lets you see by eye how far the data depart from a bell curve. On a Q-Q plot, normally distributed data line up along a straight line; systematic departures from the line point to skewness or heavy tails.
Everyday example: When the histogram of waiting times is drawn with a normal curve, it shows a pile-up on the left and a long tail to the right. On the Q-Q plot the points at the upper right bend clearly above the line, showing that long waits occur more often than a normal distribution would predict.
What it does: An N(x̄, s) curve is drawn on the histogram on the frequency scale; the x axis of the Q-Q plot uses Blom positions, (i-3/8)/(n+1/4).
Effect on the result: Chart only.
On the validation data: The Q-Q positions are converted to standard normal quantiles with the Blom formula, (i-3/8)/(n+1/4).
Example on real data
Data: UCLA OARC hsb2 (High School and Beyond, n = 200)
Variables: variable write (writing score)
- Question: What are the centre, spread and shape of the writing score (write) distribution of high school students (n = 200)?
- Centre: Mean 52.78 (SE = 0.670), median 54.00, mode 59.00; a median above the mean suggests a left-skewed distribution.
- Spread: SD = 9.48, variance = 89.84; scores range from 31 to 67 (range = 36), and the middle half lies between Q1 = 45.75 and Q3 = 60.00 (IQR = 14.25).
- Shape: Skewness = -0.482 (slightly left-skewed), kurtosis = -0.750 (flatter than normal); for n = 200 these values indicate a moderate departure from normality and should be checked with normality tests.
- Confidence interval: 95% CI for the population mean [51.45, 54.10].
- Limitation: The quartiles depend on the percentile definition; the main table uses Type 7, and other definitions can give a different Q1.
- APA: M = 52.78, SD = 9.48, 95% CI [51.45, 54.10], Mdn = 54.00, n = 200.
Related concepts
Trimmed meanHistogram and bin countCoefficient of variation (CV)Q-Q and P-P plotsPercentiles (quantiles) and percentile definitionsKurtosisSkewnessOutlier
The numbers in the examples are MerQur's output on independent, publicly available validation data; see the MerQur Technical Note for details.