# Statistics - Average

An average is a measure of where most of the values in the data are located.

## The Center of the Data

The center of the data is where most of the values in the data are located. Averages are measures of the **location** of the center.

There are different types of averages. The most commonly used are:

**Note:** In statistics, averages are often referred to as 'measures of **central tendency**'.

For example, using the values:

```
```40, 21, 55, 21, 48, 13, 72

## Mean

The mean is usually referred to as 'the average'.

The mean is the sum of all the values in the data divided by the total number of values in the data:

```
```(40 + 21 + 55 + 31 + 48 + 13 + 72)/7 = __38.57__

**Note:** There are are multiple types of mean values. The most common type of mean is the **arithmetic** mean.

In this tutorial, 'mean' refers to the arithmetic mean.

## Median

The **median** is the 'middle value' of the data.

The median is found by **ordering all the values** in the data and picking the middle value:

```
```13, 21, 21, __40__, 48, 55, 72

The median is less influenced by **extreme** values in the data than the mean.

Changing the last value to 356 does not change the median:

```
```13, 21, 21, __40__, 48, 55, **356**

The median is still 40.

Changing the last value to 356 changes the **mean** a lot:

```
```(13 + 21 + 21 + 40 + 48 + 55 + 72)/7 = __38.57__

(13 + 21 + 21 + 40 + 48 + 55 + **356**)/7 = __79.14__

**Note:** Extreme values are values in the data that are much smaller or larger than the average values in the data.

## Mode

The **mode** is the value(s) that appears most often in the data:

```
```40, __21__, 55, __21__, 48, 13, 72

Here, 21 appears two times, and the other values only once. The mode of this data is 21.

The mode is also used for **categorical** data, unlike the median and mean. Categorical data can't be described directly with numbers, like names:

```
```Alice, __John__, Bob, Maria, __John__, Julia, Carol

Here, John appears two times, and the other values only once. The mode of this data is John.

**Note:** There can be more than one mode if multiple values appear the same number of times in the data.