## What are mean, median and mode?

The **mean**, **median **and **mode **all represent some kind of average value. We use them in statistics, history, economics and many other fields. However, We should make a distinction between the three, as they all have different definitions and uses.

**The mean**

The **mean** is most often called the average, however this is not the case in all situations. There are multiple types of mean. The three most commonly used ones are called the Pythagorean means. These include the following three: the **arithmetic (AM)**, the **geometric (GM)**, and the **harmonic mean(HM)**.

The **arithmetic mean** is most often used. In fact, you have probably used it many times yourself.

**Mean Formula**

We calculate the arithmetic mean by taking the sum of all values in a set and dividing it by the number of values.

\bar x = \frac {x_{1}+x_{2}+x_{3}...+x_{n}}{n}**Types of mean**

I previously mentioned the three Pythagorean means, but there are actually a few more. I’ll give you a quick list and then we will go into more detail.

- Arithmetic mean (AM)
- Geometric mean (GM)
- Harmonic mean (HM)
- Weighted mean
- Arithmetic-Geometric mean (AGM)
- Root-Mean Square (RMS)
- Heronian mean
- Graphic mean

**Arithmetic mean**

The arithmetic mean is very widely used. It is what most people think when they say “average”. Other than in **mathematics **and **statistics**, we also use it in engineering, economics, geography, history and many other fields. For example, **per capita income** is the average income for a person in a certain region, and we calculate it using the arithmetic mean. However, it is not a perfect solution, as it is susceptible to great outliers, which are values that are way larger or smaller than the rest of the values in a given set. This will lead to something called **skewed distributions**. As mentioned before, the formula for calculating it is

**Geometric mean**

The **geometric mean **is used in **business **and **finance** for calculating growth rates. For example, it is used to calculate the **compound annual growth rate (CAGR)**, **portfolio returns **and **stock indexes**. Because growth rates are expressed in **percentages** and not absolute values, the geometric mean will provide the most accurate results. The formula for calculating it is:

**Harmonic mean**

The **harmonic mean** is used when dealing with fractions. You can calculate their multiplicative or divisor relationships without worrying about common denominators. It is also used in finances, but not for the same things the geometric mean is used for. For example, it can be used to average data, such as price multiples, and also to identify certain patterns, such as the Fibonacci sequence. The formula for calculating it is:

A simpler formula is:

/bar x_h = \frac {n}{x_1^{-1}+ x_2^{-1}+...+x_n^{-1} }**Weighted mean**

This type of mean is used when, in a given set, there are numbers that are more valuable than others (i.e. **carry more weight**). The formula for calculating it is similar to the arithmetic mean formula, with one significant addition. Every number has its own multiplier. Those multipliers are called **weighting factors.**

Because it is a variation of the arithmetic mean, it has the same issues as the regular arithmetic mean, which are outliers.

**Arithmetic-Geometric mean**

To find the arithmetic-geometric mean (AGM) of to positive real numbers (a,b), you need to use the following formula:

a_{n + 1} = \frac {a_n+b_n}{2} \\ b_{n+1} = \sqrt {a_n \cdot b_n}If it seems complicated, don’t worry, we’ll do a quick example to bring it closer to you.

Let’s say our two numbers are 28 and 7. Those numbers would be a_{0 }and b_{0}. To calculate a_{1} and b_{1}, we would use the formula from above:

As we can see, they eventually converge into the same number. AGM is often used for calculating mathematical constants, notably **π**, as well as for calculating fast algorithms and exponential or trigonometric functions.

**Root-Mean Square (RMS)**

The root-mean square, often called the **quadratic mean**, is the square root of the mean square. The **mean square **is the arithmetic mean of the squares of a set of numbers. So, the formula for calculating RMS would be:

It is mainly used in electrical engineering, for calculating things such as the alternating electric current.

**Heronian mean**

It got its name from Hero of Alexandria, a Greek mathematician and engineer. For two positive real numbers, A and B, the heronian mean is equal to:

H= \frac {A+\sqrt {A \cdot B}+B}{3}It is used in solid geometry for calculating the volume of a frustum of a pyramid or a cone.

**The median**

The **median** is quite literally the middle value in a set. To find the median of a set of values, you need to find the value that separates the set into two equal parts. In other words, re-write all the values in the set in numerical order (the smallest one at the beginning and the largest at the end). Then, depending on whether the set has an odd or an even number of values, use one of these two methods.

**Median formula**

For calculating the median, you may need to use one of two formulas. Which formula you use depends on how many numbers you have in the set. They’re pretty similar, with one slight adjustment.

**Different ways of finding the median**

If the set you want to find the median of has an **odd **number of values, the formula you need is:

The result you get is the place of the number in your list that is the median. Let me give you an example:

37, 8, 59, 1, 16, 11, 5, 3, 25Now if we rewrite this set, with the 9 values arranged in numerical order, we get:

1, 3, 5, 8, 11, 16, 25, 37, 59Using the formula above, we get the following result:

\frac {9+1} {2} = 5Therefore, the **5th **number by size in this set is the **median**. In this case, it is the number **11**.

If the set you want to find the median of has an **even **number of values, you actually need two results:

as well as

median (x_{2}) = \frac {n} {2} + 1Let’s see this method with actual numbers:

16, 15, 27, 23, 21, 20, 2, 11, 8, 5Once we rearrange the numbers, we get this:

2, 5, 8, 11, 15, 16, 20, 21, 23, 27Since this set has 10 values, we already know the result for the first step is **5**. To get the second one, we just do a quick calculation:

So the results we got are **5 **and **6**. Now for the final step, we take the 5th and 6th values in the sequence, and calculate their arithmetic mean:

So, for this set of numbers, the **median **is **15.5**.

**Mean vs median**

As we mentioned before, even though the **arithmetic mean **is used most often, in some cases, it gives you the wrong picture of the situation. In those cases, it is better to use the **median**. In certain cases they can be equal, but it doesn’t matter since you will almost always calculate the arithmetic mean first.

**The mode**

The **mode** of a set is simply the value that appears most often in that given set.

We can see that many values are repeated in this set, however, the one that is repeated the most is **7**, making it the mode of of this set.

**Find the mode**

In terms of finding the mode, there is no shortcut or formula. There is, however, our calculator. If you’re not sure how exactly to use it, we’ll go over that too, don’t worry.

**The range**

The range is nothing more than the difference between the largest and smallest value in a given set. Our calculator will give you more than just the range though. It will also tell you the smallest and largest value in the set, as well as the midrange, which is essentially the arithmetic mean of the largest and smallest value in the set.

**How to use the mean median mode calculator**

So, if you’re still not sure how to use the calculator, we’ll quickly go over it now.

All you have to do is input all the values from your set into the fields, and the calculator will do the rest for you. So, let’s say we have the following set of numbers:

50, 23, 14, 9, 90, 18, 12, 23, 56, 17, 75, 14, 91, 90, 23After we input those number into our calculator we would get the means:

the median:

the mode:

and the range:

**How to find the mean, median and mode by hand**

If you want to practice your own skills, it could be useful to calculate all of these by yourself. As you saw before, that is also not difficult. You have all the formulas and guides for calculating them right here. Let’s take the set from the previous example and calculate everything by ourselves.

For **the arithmetic mean**, it is pretty simple:

For **the geometric mean **it would be:

And finally, **the harmonic mean**:

Now, for the median, we need to arrange all the numbers in order from smallest to largest.

9, 12, 14, 14, 17, 18, 23, 23, 23, 50, 56, 75, 90, 90, 91Since we have an odd number of values, we use the according formula:

median = \frac {15+1}{2} = \frac {16}{2} = 8So, the 8th number in the sequence is **the median**.

In this sequence we can also see **the mode**, which is the most common number in a given set. In this case, it’s 23:

**The range **would be:

The largest number is 91, and the smallest one is 9, which would make the midrange:

\frac {91+9}{2} = \frac {100}{2} = 50## FAQ

**How to calculate mean, median and mode of grouped data?**

You can easily calculate all three with our calculator. If you want to do it by hand, we have a guide for that too.

**What does mode mean in math?**

In math, mode is the number that appears most in a given set of numbers.