Measures of location & spread
About this app
Raw data as draggable points, a histogram above and a boxplot below; mean and median lines. The mean follows the outlier, the median stays robust — with standard deviation, variance, quartiles and IQR live.
The statistics
Measures of location describe where the data lie; measures of spread describe how far apart they are. The mean x̄ is the sum of all values divided by n, the median the middle value of the sorted data. A single outlier can shift the mean a long way but barely moves the median, which is robust. The standard deviation s and the variance s² measure spread around the mean. The quartiles Q₁ and Q₃ cut off the lower and upper quarters, and their distance is the interquartile range IQR. Skewness and kurtosis describe the shape of the distribution.
What you see
The raw data sit as points on a value axis, with a histogram above and a box plot below; lines mark the mean and the median. A statistics panel lists n, mean, median, standard deviation, variance, skewness, excess kurtosis, Q₁ and Q₃, IQR, and minimum, maximum and range. Three data sets are ready: normal, skewed and bimodal. Target parameters generate a sample with the n, x̄, s, skewness and kurtosis you want, and the number of histogram bins is adjustable.
Things to try
Add an outlier or drag a point far to the right: the mean line moves with it, the median line hardly shifts, and s grows markedly while the IQR barely changes. Switch to the skewed data set and compare where mean and median sit. Use the add tool to place your own points and the eraser to remove them. Change the number of bins and see how much the histogram’s shape depends on it.
Frequently asked questions
- What is the difference between mean and median?
- The mean is the sum of all values divided by how many there are; the median is the middle value of the sorted data. For symmetric data the two are close. With skewed data or outliers the mean moves away while the median stays robust.
- What does the standard deviation tell you?
- The standard deviation measures how much values typically spread around the mean, in the same unit as the data. It is the square root of the variance, the average squared deviation (in a sample usually with n − 1 in the denominator). Because deviations are squared, it is sensitive to outliers.
- What is the interquartile range (IQR)?
- The interquartile range is the difference between the upper and lower quartiles, IQR = Q₃ − Q₁. It covers the middle 50 % of the data and is a robust measure of spread. In a box plot it is the length of the box.
- What can I do in this statistics app?
- You drag data points, add points or outliers and erase them, choose a normal, skewed or bimodal data set and generate samples with given summary statistics. Histogram, box plot and all statistics update instantly.
Subject: Statistics
More from Statistics
- Anscombe's quartet
- Bias-variance / overfitting
- Box plot workshop
- Geometric mean
- Law of large numbers
- Histogram workshop
- Hypothesis test & p-value
- Confidence interval
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps