Descriptive statistics formulas
Mean, median, mode, standard deviation, covariance and correlation. 23 formulas for GATE DA Probability and Statistics, each with when to use it. Each is explained in the topic notes.
IAE Academy: Mean, median, mode, standard deviation, covariance and correlation formulas (GATE DA)
All 23 Descriptive statistics formulas
ARITHMETIC MEAN
Raw data. For grouped data with frequencies and class midpoints , use . This treats every value as sitting at its class midpoint, so it is an approximation unless the values really are the midpoints.
MEDIAN OF RAW DATA
Here is the -th smallest value; sort first.
MEDIAN OF GROUPED DATA
The median class is the first class whose cumulative frequency is at least . = its lower class boundary, , = cumulative frequency of the classes before it, = its frequency, = its width. Classes must be continuous: if the class limits leave gaps (10-19, 20-29), use the boundaries (9.5-19.5, 19.5-29.5).
MODE OF GROUPED DATA
= lower boundary of the modal class (highest frequency ), and = frequencies of the classes just before and after it, = class width. The modal class and its two neighbours must have the same width. If the modal class is the first or last class, take the missing neighbour's frequency as .
MEAN, MEDIAN AND MODE OF A RANDOM VARIABLE
is the pmf, the pdf and the CDF. The median condition is for a continuous (in general a median satisfies and ). The mean exists only when the sum or integral of converges. Example: for the exponential distribution with rate , gives median , while the mean is and the mode is .
DEVIATIONS FROM THE MEAN
For any constant , the sum of squared deviations is therefore smallest when . The sum of absolute deviations is smallest when is the median (for even , any between the two middle values).
POPULATION VARIANCE AND SD (DIVIDE BY N)
is the population mean. The second form is the shortcut .
SAMPLE VARIANCE AND SD (DIVIDE BY N - 1)
is an unbiased estimator of the population variance. For the same data it relates to the divide-by- value by .
VARIANCE OF A RANDOM VARIABLE
. If picks one of the data values uniformly at random, this equals the population (divide-by-) variance of the data.
COEFFICIENT OF VARIATION
Defined for data with a positive mean. It has no units, so it compares the spread of data sets measured on different scales: the one with the larger CV is relatively more variable.
EFFECT OF $Y=AX+B$ ON CENTRE AND SPREAD
This holds for the population and the sample versions alike. The median and the mode also transform as .
COMBINED MEAN
Weighted by group size. It equals the plain average only when .
COMBINED VARIANCE (POPULATION FORM, DIVIDE BY N)
Both group variances must be the divide-by- kind. If sample variances are given, first convert them with .
COVARIANCE (RANDOM VARIABLES)
, and for a constant .
SAMPLE COVARIANCE OF PAIRED DATA
For the population version, divide by instead. State the convention you use.
PEARSON CORRELATION COEFFICIENT
Both variances must be positive and finite. The or factors cancel in , so the sample value does not depend on the convention.
LINEAR TRANSFORMATION RULES
For and . A positive-slope linear change of either variable leaves the correlation unchanged; a negative multiplier on exactly one variable flips its sign.
COVARIANCE IS BILINEAR
Covariance is linear in each argument separately. Note the in : variances never subtract.
VARIANCE OF A SUM
The cross term vanishes when the covariance is zero (for example, when and are independent).
VARIANCE OF A SUM OF N VARIABLES
If the are pairwise uncorrelated, the variance of the sum is the sum of the variances.
VARIANCE OF THE MEAN OF N INDEPENDENT VALUES
For independent (pairwise uncorrelated is enough) with common variance ; here .
CORRELATION AND THE REGRESSION SLOPES
is the least-squares slope of the line of on , and that of on . Both lines pass through . The two slopes and share one sign, so is the square root of taken with that sign. Use the same divisor in the covariance and the variances.
SPEARMAN RANK CORRELATION
is the difference between the ranks of and . This shortcut is exact only when there are no tied ranks. With ties, compute Pearson's on the ranks instead.
Where this was asked: 2024 (2), 2026 (2). See the 4 previous-year questions on Descriptive statistics. This shows what was asked, not what will be asked.