
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Understanding Types of Mean
Introduction
The average value of a set of data points, observations, or values is known as the Mean of the data. It is the measure of the central tendency.
Mathematically, the mean is obtained by dividing the sum of values by the number of values or observations. It is also called the expected value. The mean itself is not restricted to this simple form but has different types such as the arithmetic mean, geometric mean, harmonic mean, and weighted average.
It is given mathematically as,
Mean=∑xN
where,
x = set of observations
N = number of observations
Different types of Mean
Arithmetic Mean
It is given the arithmetic average of the data/observations. It is represented as the sum of the observations divided by the total number of such observations.
For example, let us consider x_1,x_2,x_3,x_4,....,x_n to be n observations, then Arithmetic mean μ,
μ=x1+x2+x3+...+xnn=∑xn
If 3, 4, 5,8,10 is a set of 5 observations, then the arithmetic mean will be,
μ=3+4+5+8+105=6
Geometric Mean
Geometric mean is represented as the nth root of the product of all the observations/values in the dataset. It is generally lesser than the arithmetic mean and commonly used where there is fluctuation in the data such as in investment use cases.
For example, let us consider x_1,x_2,x_3,x_4,....,x_n to be n observations, then Geometric mean G is given as
G=n√x1,x2,x3,…,xn
The GM of three observations 2, 4, and 8 will be
G=n√2×4×8=n√64=4
However, taking the log of the observations to compute Geometric Mean makes it much easier when the roots are larger. This is evident from the below representation
logG=logx1+logx2+logx3+...+logxnn=log∑xn
In the above example of observation 2,4,8 applying log,
logG=log2+log4+log8n=0.3010+0.6020+0.90303=0.602
G = antilog 0.602 = 4
Harmonic Mean
Harmonic Mean is defined as the reciprocal of the arithmetic mean of the reciprocal of the values. In other words, the number of observations is divided by the sum of the reciprocal of the values to obtain the Harmonic Mean. Mathematically, for observations x_1,x_2,x_3,x_4,....,x_n
H=n1x1+1x2+1x3+1x4+…+1xn
For example, the harmonic mean of 2,4 and 8 will be
H=312+14+18=30.5+0.25+0.125=3.428
Weighted Mean/Average
Weighted average is used when each of the observations has different importance in the mean calculation. Each observation is weighted by a factor of w. The Weighted mean is calculated by summing the weighted value of each observation divided by the sum of the weights of observations. Mathematical, Mathematically, for observations x_1,x_2,x_3,...,x_n with weights w_1,w_2,w_3,...w_n,
μw=w1x1+w2x2+w3x3…+wnxnw1+w2+w3+…+wn=∑wx∑w
For example, let us consider the marks of a student in three subjects to be 90, 80, and 70 and weights assigned to the subjects accordingly be 5, 7, and 9 then the weighted mean will be
μw=5×90+7×80+9×705+7+9=78.09
Conclusion
The mean is one of the most popular and important central tendencies widely used in statistics and Machine Learning. It gives a summary of the entire data. Knowing the mean helps derives important insights about the datasets. There are different types of means including Arithmetic mean, Geometric Mean, Harmonic Mean, and Weighted Mean.