Descriptive Statistics

Enter a list of numbers — integers, decimals or fractions — and get the mean, median, mode, range, quartiles and variances, all computed exactly as fractions with the full working shown step by step.
Computed
All statistics were computed exactly as fractions.
Mean μexact

48/7

Medianexact

8

Modeexact

8

Std. deviation σnumeric

1.726149

Sample std. dev. snumeric

1.864454

Variance σ²exact

146/49

Rangeexact

5

Quartiles Q1 · Q3exact

Q1 = 5, Q3 = 8

Distribution
12311131μx̃45689

The bars show how often each value occurs. The solid line marks the mean, the dashed line the median.

Mean μ Median

Step-by-step solution

  1. 1

    The data

    7 values, sorted in ascending order.

    4,5,6,8,8,8,94, 5, 6, 8, 8, 8, 9
  2. 2

    Sum and mean

    Add all values, then divide the sum by n = 7. Decimal approximation: 48/7 ≈ 6.857143.

    ∑i=17xi=4+5+6+8+8+8+9=48μ=487=487\begin{aligned} \sum_{i=1}^{7} x_i &= 4 + 5 + 6 + 8 + 8 + 8 + 9 = 48 \\ \mu &= \frac{48}{7} = \frac{48}{7} \end{aligned}
  3. 3

    Median

    With an odd number of values, the median is the middle value — position 4 of 7.

    x~=8\tilde{x} = 8
  4. 4

    Mode

    The value 8 appears 3 times — more often than any other value, so it is the mode.

    mode=8\text{mode} = 8
    • 8 appears 3 times
  5. 5

    Range

    The range is the difference between the largest and the smallest value.

    R=xmax⁡−xmin⁡=9−4=5R = x_{\max} - x_{\min} = 9 - 4 = 5
  6. 6

    Population variance σ²

    Square each deviation from the mean, add the squared deviations, and divide by n = 7.

    σ2=∑i=1n(xi−μ)2n=14677=14649\sigma^2 = \frac{\sum_{i=1}^{n}(x_i - \mu)^2}{n} = \frac{\frac{146}{7}}{7} = \frac{146}{49}
    • (4 − 48/7)² = 400/49
    • (5 − 48/7)² = 169/49
    • (6 − 48/7)² = 36/49
    • (8 − 48/7)² = 64/49
    • (8 − 48/7)² = 64/49
    • (8 − 48/7)² = 64/49
    • (9 − 48/7)² = 225/49
  7. 7

    Sample variance s²

    For a sample of a larger population, dividing by n − 1 = 6 instead of n (Bessel's correction) gives an unbiased estimate of the population variance.

    s2=∑i=1n(xi−μ)2n−1=14676=7321s^2 = \frac{\sum_{i=1}^{n}(x_i - \mu)^2}{n - 1} = \frac{\frac{146}{7}}{6} = \frac{73}{21}
    • (4 − 48/7)² = 400/49
    • (5 − 48/7)² = 169/49
    • (6 − 48/7)² = 36/49
    • (8 − 48/7)² = 64/49
    • (8 − 48/7)² = 64/49
    • (8 − 48/7)² = 64/49
    • (9 − 48/7)² = 225/49
  8. 8

    Standard deviations

    The standard deviation is the square root of the variance. It is irrational in general, so only a decimal approximation is shown.

    σ=σ2=14649≈1.726149s=s2=7321≈1.864454\begin{aligned} \sigma = \sqrt{\sigma^2} = \sqrt{\frac{146}{49}} \approx 1.726149 \\ s = \sqrt{s^2} = \sqrt{\frac{73}{21}} \approx 1.864454 \end{aligned}
  9. 9

    Quartiles

    Q1 is the median of the lower half (first 3 sorted values) and Q3 the median of the upper half (last 3 sorted values) — the middle value belongs to neither half.

    Q1=5,Q3=8Q_1 = 5, \qquad Q_3 = 8
  10. 10

    Result

    Mean 48/7 ≈ 6.857143, median 8, mode 8, population standard deviation σ ≈ 1.726149.

    μ=487,x~=8,σ2=14649,mode=8\mu = \frac{48}{7}, \quad \tilde{x} = 8, \quad \sigma^2 = \frac{146}{49}, \quad \text{mode} = 8

About descriptive statistics

Mean, median and mode measure the center of a data set in different ways: the mean uses every value and reacts to outliers, the median splits the sorted data in half, and the mode finds the most frequent value.

Spread comes from the variance — the average squared deviation from the mean — and the standard deviation, which returns to the original units. Both the population (÷ n) and sample (÷ n−1) versions are computed here.

Quartiles cut the sorted data into four equal parts and, with the median, form the five-number summary behind every box plot; the histogram shows the shape of the distribution.