Descriptive Statistics 1. Mean, median and mode.


Averages : Mean, median and mode.

The mean is the 'normal' average. The median is the middle value. The mode is the most common value. Averages are normally taken to be representative of a larger set of data, but data with the same average can differ in lots of other ways. For example, these data have the same mean.

Fig. 1

Legend. Two graphs showing very different data sets that share the same mean. In the right hand graph, values tend to be close to the mean, while in the left hand graph, values tend to be further from the mean. The left hand graph shows values that are move variable (see next lecture).

The following data have the same median.

Fig. 2

Legend. Two graphs showing very different data sets that have the same median. The left hand graph shows data that is symmetrically arranged around the median (and mean). The right hand graph shows 'negative skew', where values below the median are further from the median than values above the median. In the right graph, the median and the mean will have different values.

The following data have the same mode.

Fig. 3

Legend. Two graphs showing very different data sets that have the same mode (or modal average). In neither case is the mode a very good summary of the data.


Introduction to equations and statistical notation

I can't put the correct mathematical symbols in the text on the web, so I will call the symbols we discussed in the lecture 'sigma' (the summation symbol), 'mu' (population mean), 'X bar' (sample mean), 'Xi' (the 'ith' value), 'N' (number of values). See Pagano chapters 2 and 3, or G&W, for a basic introduction to statistical notation.


Definition of the mean.

The arithmetic mean is the sum of the values divided by the number of values. This is shown below using statistical notation. It is best to get to grips with the symbols while the statistical concepts they represent (e.g. mean average) are simple and familiar.

Sample mean vs. population mean

'Mu', the population mean, is the mean derived from the entire population under study. Population is a word with a somewhat elastic meaning, but generally it is up to you, the experimenter, to define your population. It might be all the people in the US, all the people who shop at KwikSave, or all the Lecturers in the UNM Psychology Department. With large populations, it is is often impractical to find 'mu'.

'X bar', the sample mean, is calculated from a representative sample of the population. This is usually done by selecting individuals from the population at random to avoid sampling bias. You get sampling bias when all the members of the population under study do not stand and equal chance of being measured.

If you wanted to estimate the mean height of people in the US, it would be stupid to do all you measuring in primary schools. This is an extreme example, but more realistically, suppose you wanted to get a representative 1000 people to complete a questionnaire on social attitudes. If you did the survey by telephone, your sample would be biased towards telephone owners. If you called between 9 and 5, your sample would be biased towards people without day jobs. If you did the survey in malls, your sample would be biased towards town dwellers, who were out shopping during the day, who were friendly, and who had enough time to talk to someone with a clip-board etc. etc.Sampling bias is a real problem in much research in Psychology and the Social Sciences.

Even if you manage to avoid sampling bias, 'X bar' is unlikely to be exactly the same as 'mu'. On average, however, the larger the sample then the more likely it is that 'X bar' will be close to 'mu'. This is why polling organizations have to ask hundreds (or thousands) of people if they want to be reasonably confident of getting 'X bar' that is within a few percent of 'mu'.

To illustrate this point, I made a large population of numbers with a mean of 100.0 ('mu' = 100.0) and a standard deviation of 15 (standard deviation is a measure of spread from the mean and we will discuss it in greater detail later in the course). I then took 40 samples of 5 numbers and 40 samples of 20 numbers from the population The means of the samples ('X bar') were....

Fig 4.

Stem and leaf plot showing the distribution of the sample means (X bar) of samples taken from a population with a mean of 100 and a standard deviation of 15. The individual sample means can be calculated by adding the value in the left hand column (e.g. 90) to values in one of the boxes. For example, with the sample size of 5, samples had means with 81, 86, 92, 93, 93, 94, 94, 94, etc. It is clear that the small sample size results in a greater spread of values for 'X bar'.


Estimating the mean from histograms

Fig. 5

It is possible to estimate the mean from a histogram (e.g. above). 'N', the number of scores, can be calculated by adding up the heights of all the columns. The sum of all the scores can be calculated by multiplying each of the column heights by the column x axis mid-points. The means is then simply the estimated sum of scores divided by N.


How representative is the mean ?

Sometimes, it might be useful to be able to measure how well the mean fits the data that generated it (e.g. Fig. 1). At first sight, one might think that it would be possible to find the total of the difference between each score and the mean. Unfortunately, this approach will not work. By definition, the sum of negative differences (from scores less than the mean) will exactly cancel out the sum of positive differences ( from scores that are greater than the mean). The sum of deviations from the mean is always zero.


The Median.

The median is the value that divides the distribution of values exactly in half. To find the median, sort or rank the values and find the middle value (if there are is an odd number of values) or else the mean of the central two values (if there is an even number of values). It is possible to estimate the median from histograms. Use the information on number of scores to estimate the position of the middle score.

 

The median average can be more representative than the mean in skewed distributions (e.g. annual income, or National Lottery winnings). Remember to look at the data when you calculate the median average

Fig. 8


Modal average

The mode is the score or category that has the greatest frequency. The modal average can be used with nominal data. As with all other averages, look at the data when you calculate the mode.

Fig. 9