freeCodeCamp/guide/english/mathematics/statistics/mean/index.md

42 lines
1.3 KiB
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Mean
---
## Mean
The most common measure of central tendency, or a value used to describe a set of numbers, is the arithmetic average, or mean.
To find the mean (*A*) of a set of numbers , you add their values and divide by the number of values (*n*).
![Mean Formula](https://wikimedia.org/api/rest_v1/media/math/render/svg/90330653b40adf032ea8e144f84d7eec1a88054d)
<br>
### Examples
* **1, 4, 5, 2, 3**
(1 + 4 + 5 + 2 +3) / 5 = 3
* **20, 14, 23**
(20 + 14 + 23) / 3 = 19
* **-12, -20, -16, -21**
(-12, -20, -16, -21) / 4 = -17.25\
<br>
The mean can be a great way to describe a set of numbers. However, it is important to realize that one value that is much higher or lower than the other values, refered to as an outlier, in the set can cause the mean to inaccurately represent the set of numbers. For instace, if you have a set of numbers primarily composed of small numbers that contains one large number, the average will end up being larger than a majority of the numbers, inaccurately portraying the set of numbers as being higher than they actually are.
### Examples
* **2, 7, -3, 1, 0, 2, 857**
(2 + 7 + (-3) + 1 + 0 + 2 + 857) / 7 = 123.71
* **1276, 1141, 1271, 1053, 1**
(1276 + 1141 + 1271 + 1053 + 1) / 5 = 948.4
#### More Information:
* ![Mean](http://www.purplemath.com/modules/meanmode.htm "Mean")