# Getting Average

How excatly do I calculate the average? Can somebody explain step by step process of how to get an average?

If I have an array of numbers (5, 3, 4, 3, 1) and so on. And I need to get the average of these numbers on a scale of 5 what is the equation of doing this?

-
There are many averages. Regular average is known as arithmetic mean, obtain by summing elements of your array and dividing over its length. –  Sasha Aug 23 '11 at 19:51

For your example, we'd get $$\frac{5+3+4+3+1}{5} = \frac{16}{5} = 3.2.$$
It's because the average can never be smaller than the smallest number in the list or bigger than the biggest number in the list. For example, average the numbers 2, 3, and 4. It's definitely larger than the average of 2, 2, and 2, which is $\frac{2 + 2 + 2}{3} = \frac{3 \cdot 2}{3} = 2$. On the other hand, it's definitely smaller than the average of 4, 4, and 4, which is $\frac{4 + 4 + 4}{3} = \frac{3 \cdot 4}{3} = 4$. –  Austin Mohr Aug 23 '11 at 20:56