A "Begin" button will appear on the left when the applet is finished loading. This may take a minute or two depending on the speed of your internet connection and computer. Please be patient. If no begin button appears, it is probably because you do not have Java installed or Java is not enabled.

This Java applet shows how the relationship between the mean and the median and illustrates several aspects of these measures of central tendency.

The applet begins by showing a histogram of 9 numbers. As can be seen in the histogram, the numbers are: 3, 4, 4, 5, 5, 5, 6, 6, and 7. The mean and median of the numbers are both 5.0. The mean is shown on the histogram as a small blue line; the median is shown as a small purple line. The standard deviation is 1.15. Note that the standard deviation is calculated using N rather than N-1 since the numers are considered to be the entire populaiton of interest. A red line extends one sd in each direction from the mean. You can change the values of the data set by "painting" the histogram with the mouse.

Below the histogram are shown:
  1. X: the nine numbers,
  2. X-M: the deviations from the mean,
  3. (X-M)^2: the squared deviations from the mean,
  4. X-Med: the deviations from the median, and
  5. (X-Med)^2: the squared deviation from the median.

The means of these 5 quantities are displayed at the bottom of the screen.