The Wayback Machine - https://web.archive.org/web/20240914132959/https://www.geeksforgeeks.org/average/
Open In App

Average in Maths

Last Updated : 21 Aug, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Average in Maths: An average is the middle value of a group of numbers. It’s calculated by adding up all the numbers and then dividing by how many there are. This is also known as the mean. For example, if you have the numbers 2, 3, and 4, you add them together to get 9. Then you divide by 3 (since there are 3 numbers), which equals 3. So, the average, or mean, of 2, 3, and 4 is 3. Finding the average helps us find the typical value in a group of numbers.

Average = Sum of Values/Number of Values

In this article, we’ll explore what is average in maths, including its symbol, average formula in maths, and how to calculate the average. We’ll also cover step-by-step instructions for calculating the average and several detailed examples.

What is Average in Maths?

An Average is a single number expressing a set of data. It is calculated by dividing the sum of the values in the set by their number, also called arithmetic mean. The basic formula for the average of n numbers x1, x2,……xn is 

(Average)A = (x1 + x2 + …….. + xn)/n

Average is the another name of mean and average in mathematics is used for finding and defining various values. In this article, we will learn about the average definition, average formula, average solved examples, and others in detail.

Average Definition

Average in mathematics is defined as the central value of the given data set. It is the ratio of the sum of all the values by the number of the values. For n terms, its average is given by first taking the sum of n numbers and then dividing them by n.

The image below shows three rows of apples with 6, 11, and 7 apples and if we take the average of all three rows, we get 8 apples in each row.

Average

Average Symbol

Average is just the mean of numbers and it is denoted x̄ (read as “x bar”). We also use the Greek letter “μ” to denote the average.

Average Formula

The average in mathematics is calculated using the formula sum of values divided by the number of values. Hence, the average formula is given as

Average = Sum of Values/Number of Values

For given n numbers x1, x2, x3 ,….., xn the average is given by the formula,

Average = (x1 + x2 + … + xn)/n

Check: Difference Between Average And Mean

How to Calculate Average?

Study the following steps to find the average of various numbers

  • Step 1: Note all the observations and find the total number of observations (say n)
  • Step 2: Find the sum of all observations.
  • Step 3: Divide the sum obtained in Step 2 by the number of observations (n)
  • Step 4: Simplify to obtain the required value of Average.

Example: Find the average of 3, 4, 7, 8, 10, and 12.

Solution:

Given values,

  • 3, 4, 7, 8, 10, 12

Number of Observations = 6

Sum of Observations = 3 + 4 + 7 + 8 + 10 + 12 = 34

Average = 34/6 = 5.67

What is Average Used For?

Average is used to represent a large amount of data with a single number. It helps us find the central value of a data set.

Some practical applications of average are:

  1. Calculating the average time of commute to work or school can help you plan your schedule.
  2. Calculating the batting average in cricket helps in assessing batsman performance.
  3. Calculating average customer reviews before buying new things.
  4. Calculating average household income, average unemployment rate, or average inflation rate to understand economic trends.
  5. Calculating average daily sales of a product, to stock the right amount.

What is Mean?

Mean in mathematics is the measure of central tendency. It is also called average or arithmetic mean. It is calculated by dividing the sum of values by the total number of values.

There are three types of mean in mathematics that are,

  • Arithmetic Mean
  • Geometric Mean
  • Harmonic Mean

Now let’s learn about them in detail.

Also Read: Mean, Median and Mode

Arithmetic Mean

The arithmetic mean is another name for the average. It is the sum of values divided by the number of values. The formula to calculate the arithmetic mean for n values x1, x2, …, xn is,

A.M. = (n1 + n2 + n3 + n4 + … + nn)/n

Geometric Mean

Geometric Mean is one of the measures of the central tendency. It is calculated by taking the nth root of the product of all the given numbers. The formula to calculate the geometric mean for n values x1, x2, …, xn is,

G.M. = n√(x1.x2…xn)

Harmonic Mean

The harmonic mean is one of the Pythagorean means other than the Arithmetic Mean and Geometric Mean. It is calculated by dividing the number of the reciprocal by the sum of the reciprocal values. The harmonic mean is always lower as compared to the geometric and arithmetic mean.

The formula to calculate the harmonic mean for n values x1, x2, …, xn is,

H.M. = n/{(1/x1) + (1/x2) + … + (1/xn)}

Average of Negative Numbers

The average of the negative number is simply calculated by taking the sum of the observations divided by the number of the observations. Negative numbers have no effect in finding the average of the negative numbers. This is explained by the example,

Example: Find the average of -8, -4, 0, 4, 8

Solution:

Given,

  • -8, -4, 0, 4, 8

Number of Observations = 5

Sum of Observations = (-8) + (-4) + 0 + 4 + 8 = 0

Average = 0/5 = 0

Average of Two Numbers

The average of two numbers is simply the sum of two numbers divided by 2. Suppose we are given two numbers ‘a’ and ‘b’ then their average is calculated as,

Average = (a+b)/2

Example: Find the average value of 80 and 100

Solution:

Given,

  • a = 80
  • b = 100

Average = (a+b)/2

= (80+100)/2 = 180/2

= 90

Important Formulas on Average

Some of the important tips and tricks to solve average questions are mentioned below. These formulas will help students and will be useful in boards and competitive exams.

Average of first n natural numbers:

  • Sum of first n natural numbers = n(n + 1)/2
  • Average of first n natural numbers = (n + 1)/2

Average of first n natural number squares,

  • Sum of square of first n natural numbers = n(n+1)(2n+1)/6
  • Average of square of first n natural numbers = (n+1)(2n+1)/6

Average of first n natural number cubes:

  • Sum of cube of first n natural numbers = [n(n+1)/2]2
  • Average of cube of first n natural numbers = n(n+1)2/4

Average of first n natural odd numbers:

  • Sum of first n natural odd numbers = n2
  • Average of first n natural odd number = n

Average of first n natural even numbers:

  • Sum of first n natural even numbers = n(n+1)
  • Average of first n natural even numbers = n + 1

People Also Read:

Also Read: How To Calculate Average in Excel? ( Formula & Examples)

Solved Examples on Average in Maths

Here are some numerical examples on average with solutions. These solved examples will help students understand and practice the concept of average.

Example 1: Find the average of the square of the first 16 natural numbers.

Solution:

Sum of square of first n natural number = n(n+1)(2n+1)/6 

Avg. of square of first n natural number = (n+1)(2n+1)/6 

Average = (16+1)(2×16+1)/6 

= 17 × 33 /6 

= 187/2 

Example 2: The average of 9 observations is 87. If the average of the first five observations is 79 and the average of the next three is 92. Find the 9th observation. 

Solution:

Average of 9 observations = 87 

Sum of 9 observations = 87 × 9 = 783 

Average of first 5 observations = 79 

Sum of first 5 observations = 79 × 5 = 395 

Sum of 6th,7th and 8th = 92 × 3 = 276 

9th number = 783 – 395 – 276 = 112 

Example 3: Five years ago the average of the Husband and wife was 25 years, today the average age of the Husband, wife, and child is 21 years. How old is the child? 

Solution:

H + W = 25 

Sum of ages of both 5 years before = 25×2 = 50 

Today, sum of their ages is = 50 + 5 + 5 = 60 

Today avg. of H + W + C = 21 

Sum of ages of H , W and C = 21×3 = 63 

Age of child = 63 – 60 = 3 years

Example 4: There are 42 students in a hostel. If the number of students increased by 14. The expense of mess increased by Rs 28 per day. While the average expenditure per head decreased by Rs 2. Find the original expenditure. 

Solution:

Total students after increment = 42 + 14 = 56 

Let the expenditure of students is A Rs/day. 

Increase in expenditure Rs 28/day. 

Acc. to question 

42A + 28 = 56(A – 2) 

42A + 28 = 56A – 112 

14A = 140 

A = 10 

Hence, the original expenditure of the student was Rs 10/day. 

Example 5: The average of 200 numbers is 96 but it was found that 2 numbers 16 and 43 are mistakenly calculated as 61 and 34. Find his correct average it was also found that the total number is only 190. 

Solution:

Average of 200 numbers = 96 

Sum of 200 numbers = 96 x 200 = 19200 

Two numbers mistakenly calculated as 61 and 34 instead of 16 and 43. 

So, 61 + 34 = 95 

16 + 43 = 59 

Diff = 95 – 59 = 36 

So, Actual sum of 200 numbers = 19200 – 36 = 19164 

Total numbers are also 190 instead of 200

So, correct average = 19164/190 = 100.86

Example 6: A batsman scored 120 runs in his 16th innings due to this his average increased by 5 runs. Find his current average. 

Solution:

Let the average of 15 innings is A

Acc. to question 

15A + 120 = 16(A + 5) 

15A + 120 = 16A + 80 

A = 40 

Hence, current average of the batsman is (40 + 5) = 45 

Example 7: There are three natural numbers if the average of any two numbers is added with the third number 48,40 and 36 will be obtained. Find all the natural numbers. 

Solution:

Let a, b and c are the numbers

Given 

  • (a+b)/2 + c = 48

=> a + b + 2c = 96 ………(1) 

(b+c)/2 + a = 40 

=> 2a + b + c = 80 ……….(2) 

(c+a)/2 + b = 36 

=> a + 2b + c = 72 ……….(3) 

Add (1)(2)(3), we get 

4(a + b + c) = 248 

a + b + c = 62 

From 1, 2, and 3

(a+b+c) + c = 96 

62 + c = 96 

  • c = 34

a + (a+b+c) = 80 

a + 62 = 80 

  • a = 18

b + (a+b+c) = 72 

b + 62 = 72 

  • b = 10

Example 8: A biker travels at a speed of 60 km/hr from A to B and returns at a speed of 40 km/hr. What is the average speed of the total journey? 

Solution:

Let a is the distance between A and B

Total distance travel in journey = 2a 

Time to travel from A to B = Distance/speed = a/60 

Time to travel from B to A = Distance/speed = a/40 

Total time of journey = a/60 + a/40 

Average speed = Total distance/Total time 

=2a / (a/60 + a/40) 

=240 × 2a /10a 

= 240/5 

= 48 

Hence, the average speed is 48 km/hr.

Practice Questions on Average in Maths

Below are some practice questions of average. Students should try solving these questions and test their skills. Look at the solved examples above, if stuck on a problem.

Q1. Average temp. of Monday, Tuesday, Wednesday, and Thursday are 31°, and the average temp. of Tuesday, Wednesday, Thursday, and Friday are 29.5°. If the temp of Friday is 4/5 times of Monday. Find the temp for Monday.

Q2. The average age of boys in school is 13 years and of girls is 12 years. If the total number of boys is 240, then find the number of girls if the average of school is 12 years 8 months.

Q3. If the runs scored by a batsman in 5 matches are 56, 102, 23, 45, and 78. Find the average run scored by him.

Q4. The average score of a class of 50 students is 72. If the average score of 30 boys in the class is 78, what is the average score of the girls?

Q5. The average height of 8 men is 5.8 feet. If a new person joins the group, the average height becomes 5.9 feet. What is the height of the new person?

Q6. A batsman has an average score of 48 runs in 20 innings. How many runs must he score in the next inning to raise his average to 50 runs?

Q7. The average of 5 consecutive odd numbers is 41. Find the smallest of these numbers.

Q8. The average weight of a group of 15 boys is 60 kg. If 5 boys leave the group and the average weight of the remaining boys increases by 2 kg, what was the average weight of the boys who left?

Q9. A car travels 150 km in the first hour, 120 km in the second hour, and 180 km in the third hour. What is the average speed of the car over the 3 hours?

Q10. The average salary of 5 employees in a company is $4000. If one new employee joins and the average salary increases by $500, what is the salary of the new employee?

Summary – Average in Maths

The average, also known as the arithmetic mean in mathematics, is a measure used to represent the central tendency of a set of numerical data. It is calculated by summing up all the values in the dataset and then dividing the sum by the total number of values. This provides a single value that is representative of the entire dataset, offering insights into its typical or central value.

FAQs on Average in Maths

What is an Average in Maths?

Average in mathematics is defined as the mean of two numbers. It is used to find the central value of the data set. It is calculated by taking the ratio of all the observation by number of observations.

What is the Formula for Average?

The formula to calculate the average of numbers is,

Average = (Sum of Terms)/ (Number of Terms)

What is Average of First n numbers?

The average of first n natural is calculated below,

Sum of n natural number = n(n + 1)/2

  • Average of n natural number = n(n + 1)/2n = (n + 1)/2

What are the three types of Averages?

The three types of average are: mean, median and mode.

Is Average and Mean the Same?

Yes, average in mathematics is similar to the mean in mathematics. It is calculated by dividing the sum of vales by number values.

What is Weighted Average?

Weighted Average is average of the dataset that takes the weight of each data in a dataset

How to Calculate Weighted Average?

We can calculate weighted average by taking sum of product of each data with their weight and then dividing the total weight by total number of data

How Do You Calculate the Average?

To calculate the average of a set of numbers, sum up all the numbers and then divide by the total number of values in the set.

Can Average Be a Decimal?

Yes, the average of a set of numbers can be a decimal, especially when the sum of all numbers in the set is not evenly divisible by the count of numbers.

What is the Difference Between Mean and Average?

In everyday language, mean and average are often used interchangeably. However, in mathematics, the mean specifically refers to the method of finding the average of a set of numbers.

Is Median the Same as Average?

No, the median is different from the average. The median is the middle value in a set of numbers ordered from smallest to largest, while the average is computed by dividing the sum of all numbers by the count of numbers.

How Does the Range Relate to the Average?

The range is the difference between the highest and lowest values in a set, which provides a measure of spread. It does not directly calculate an average but can give context to the average value by indicating how spread out the numbers are.

Why is Calculating the Average Important?

Calculating the average is important for finding the central tendency of a data set, which helps in understanding the general performance or the middle value of the data set.

Can You Have More Than One Mode in a Data Set?

Yes, a data set can have more than one mode if two or more values appear with the same highest frequency. Such a data set is called multimodal.

How Do Outliers Affect the Average?

Outliers can significantly affect the average of a data set by skewing the value higher or lower than the central tendency of the rest of the numbers. This is why median is sometimes preferred over average in skewed distributions.



Previous Article
Next Article

Similar Reads

Special Series in Maths - Sequences and Series | Class 11 Maths
Special Series: A series can be defined as the sum of all the numbers of the given sequence. The sequences are finite as well as infinite. In the same way, the series can also be finite or infinite. For example, consider a sequence as 1, 3, 5, 7, … Then the series of these terms will be 1 + 3 + 5 + 7 + ….. The series special in some way or the othe
10 min read
Difference Between Maths and Vedic Maths
Mathematics has been a fundamental part of human knowledge for centuries, evolving through various cultures and eras. In the modern world, we primarily rely on what is known as Modern Mathematics—a structured and systematic approach to solving mathematical problems using algebra, geometry, calculus, and more. However, there exists another fascinati
5 min read
Background Subtraction in an Image using Concept of Running Average
Background subtraction is a technique for separating out foreground elements from the background and is done by generating a foreground mask. This technique is used for detecting dynamically moving objects from static cameras. Background subtraction technique is important for object tracking. There are several techniques for background subtraction
4 min read
How to Calculate Weighted Average in Pandas?
A weighted average is a computation that considers the relative value of the integers in a data collection. Each value in the data set is scaled by a predefined weight before the final computation is completed when computing a weighted average. Syntax: def weighted_average(dataframe, value, weight): val = dataframe[value] wt = dataframe[weight] ret
3 min read
Python | Average of each n-length consecutive segment in a list
Given a list, the task is to find the average of each n-length consecutive segment where each segment contains n elements. Example: Input : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] Output: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] Explanation: Segment 1 - [1, 2, 3, 4, 5] => 15/5 = 3 Segment 2 - [2,
3 min read
Numpy MaskedArray.average() function | Python
numpy.MaskedArray.average() function is used to return the weighted average of array over the given axis. Syntax : numpy.ma.average(arr, axis=None, weights=None, returned=False) Parameters: arr :[ array_like] Input masked array whose data to be averaged. Masked entries are not taken into account in the computation. axis :[ int, optional] Axis along
3 min read
PyQt5 QSpinBox - Getting average character width
In this article we will see how we can get the average character width of the spin box's text. Average character width is basically the sum of all the character divided by the total number of character i.e the average width of glyphs in the font. In order to do this we use averageCharWidth method with the spin box's QFontMetrics object. Syntax : fo
2 min read
PyQt5 - Average Speed Calculator
In this article we will see how we can create a average speed calculator using PyQt5. The average speed of an object is the total distance traveled by the object divided by the elapsed time to cover that distance, below is how the average speed calculator will look like Concept : We will get the time in the form of hours and minutes, and distance i
4 min read
Find the average of an unknown number of inputs in Python
Prerequisites: *args and **kwargs in Python The special syntax *args in function definitions in python is used to pass a variable number of arguments to a function. It is used to pass a non-keyword, variable-length argument list. The syntax is to use the symbol * to take in a variable number of arguments; by convention, it is often used with the wo
3 min read
NseTools - Getting Average Price of Company Stock
In this article we will see how we can get the average price of given company using nsetools. Nsetools is a library for collecting real time data from National Stock Exchange of India. A stock quote is the price of a stock as quoted on an exchange. A basic quote for a specific stock provides information, such as its bid and ask price, last traded p
2 min read
Calculate average values of two given NumPy arrays
Finding average of NumPy arrays is quite similar to finding average of given numbers. We just have to get the sum of corresponding array elements and then divide that sum with the total number of arrays. Let's see an example: Example 1: Calculate average values of two given NumPy 1d-arrays C/C++ Code # import library import numpy as np # create a n
1 min read
Compute the weighted average of a given NumPy array
In NumPy, we can compute the weighted of a given array by two approaches first approaches is with the help of numpy.average() function in which we pass the weight array in the parameter. And the second approach is by the mathematical computation first we divide the weight array sum from weight array then multiply with the given array to compute the
2 min read
Create an array which is the average of every consecutive subarray of given size using NumPy
In this article, we will see the program for creating an array of elements in which every element is the average of every consecutive subarrays of size k of a given numpy array of size n such that k is a factor of n i.e. (n%k==0). This task can be done by using numpy.mean() and numpy.reshape() functions together. Syntax: numpy.mean(arr, axis = None
2 min read
How to Compute the Average of a Column of a MySQL Table Using Python?
A MySQL connector is needed to generate a connection between Python and the MySQL server. Here we will import mysql.connector library to get the average of the specified column in the given database. If you need to know how to install MySQL, see How to Install MySQL in Python 3. Average Function of SQL SQL AVG() function returns the average of valu
2 min read
How to Make a Time Series Plot with Rolling Average in Python?
Time Series Plot is used to observe various trends in the dataset over a period of time. In such problems, the data is ordered by time and can fluctuate by the unit of time considered in the dataset (day, month, seconds, hours, etc.). When plotting the time series data, these fluctuations may prevent us to clearly gain insights about the peaks and
4 min read
Average Speed Calculator - Tkinter
Prerequisite: Python GUI – tkinter Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. In this article we will discuss how we can create an average speed calculator using Tkinte
2 min read
Find Minimum, Maximum, and Average Value of PySpark Dataframe column
In this article, we are going to find the Maximum, Minimum, and Average of particular column in PySpark dataframe. For this, we will use agg() function. This function Compute aggregates and returns the result as DataFrame. Syntax: dataframe.agg({'column_name': 'avg/'max/min}) Where, dataframe is the input dataframecolumn_name is the column in the d
2 min read
Average Velocity
It is essential to know how to describe the motion of a body or a particle. These conventions and methods allow us to formalize and then use them to develop further theory. Speed is the notion of how fast a particle is moving. It's used almost every day and denotes the rate of change of position of an object. In theory, it is essential to describe
6 min read
How to calculate Sum and Average of numbers using formulas in MS Excel?
Everyday in school, offices, business sectors or any other field lots of information are there that are required to store for future use. For anyone, it is very difficult to remember that information for a long time. Earlier data and information are stored in a form of a register, file, or by paperwork but finding it may be difficult for us. It tak
4 min read
How to Calculate an Exponential Moving Average in Python?
Moving Averages are financial indicators which are used to analyze stock values over a long period of time. i.e. Average value for that long period is calculated. Exponential Moving Averages (EMA) is a type of Moving Averages. It helps users to filter noise and produce a smooth curve. In Moving Averages 2 are very popular. Simple Moving AverageExpo
3 min read
Average Speed Formula
Average Speed is defined as the mean speed of any object observed over a period of time. The average Speed Formula is the formula used to find an object's average speed throughout the journey which is completed over a duration of time. Suppose a car travels from point A to b and in t hours and comes back in T hours then the average speed of both th
9 min read
How to Apply a 2D Average Pooling in PyTorch?
In this article, we will see how to apply a 2D average pooling in PyTorch. AvgPool2d() method AvgPool2d() method of torch.nn module is used to apply 2D average pooling over an input image composed of several input planes in PyTorch. The shape of the input 2D average pooling layer should be [N, C, H, W]. Where N represents the batch size, C represen
2 min read
Find Average of a Number Digits in Python
AIn this article, we will see how to find the average of the digits of a number in Python. Examples: Input: N = 642 Output: 4.0 Explanation: (6+4+2)/3 = 12/3 = 4.0 Input: N = 3504 Output: 3.0 Explanation: (3+5+0+4)/4 = 12/4 = 3.0Calculate the average of a number of digits in python if the number is an integer: Follow the below steps to solve the pr
3 min read
How is np.mean() different from np.average() in NumPy?
In the Numpy library, there are two functions np.mean() and np.average() are present. Both are actually doing nearly the same job of calculating mean/average. The difference comes when we are calculating the weighted average. If that is the case then we have to use np.average(). With np.average function we can calculate both arithmetic mean and wei
3 min read
How to calculate MOVING AVERAGE in a Pandas DataFrame?
In this article, we will be looking at how to calculate the moving average in a Pandas data frame. Moving Average calculates the average of data over some periods. The moving average is also known as the rolling mean and is calculated by averaging data of the time series within k periods.  Calculating Moving Averages using PandasThere are various m
8 min read
Jane has 3 times as many cards as peter, the average number of cards owned by the two children is 64. How many cards does jane have?
A system was introduced to define the numbers present from negative infinity to positive infinity. The system is known as the Number system. Number system is easily represented on a number line and Integers, whole numbers, natural numbers can be all defined on a number line. The number line contains positive numbers, negative numbers, and zero. An
5 min read
What is the average probability of rolling a dice until a 6 turns up?
Probability is also known as a possibility, which works in the happening of a likely event. The utility is designated from zero to one. In math, Probability has been obvious to approximate how possible events are to occur. Basically, the probability is the scope to which something is to be expected to take place. ProbabilityTo understand probabilit
5 min read
NumPy | Replace NaN values with average of columns
Data visualization is one of the most important steps in machine learning and data analytics. Cleaning and arranging data is done by different algorithms. Sometimes in data sets, we get NaN (not a number) values that are unusable for data visualization. To solve this problem, one possible method is to replace NaN values with an average of columns.
5 min read
Puzzle 26 | (Know Average Salary without Disclosing Individual Salaries)
Three Employees want to know the average of their salaries. They are not allowed to share their individual salaries. Answer: Follow these steps Step 1) X adds a Random Number and his salary and tells the sum to Y. Step 2) Y also adds a Random Number and his salary to the sum told by X and tells new sum to Z. Step 3) Z also adds a Random Number and
1 min read
Find average of a list in python
Given a list of numbers, the task is to find the average of that list. Average is the sum of elements divided by the number of elements. Input : [4, 5, 1, 2]Output : 3Explanation:Sum of the elements is 4+5+1+2 = 12 and total number of elements is 4.So average is 12/4 = 3Input : [15, 9, 55]Output : 26.33Explanation:Sum of the elements is 15+9+53 = 7
4 min read