In statistics, linear interpolation is often used to find the estimated median, quartiles or percentiles of a set of data and particularly when the data is presented in a group frequency table with class intervals. In this article we will look at how to do a linear interpolation calculation with the use of a table and graph to find the median, 1st quartile and 3rd quartile.
The linear interpolation formula is the simplest method used to estimate the value of a function between any two known points. This formula is also useful for curve fitting using linear polynomials. This formula is often used for data forecasting, data prediction and other mathematical and scientific applications. The linear interpolation equation is given by:
\[y = y_1 + (x-x_1) \frac{(y_2-y_1)}{(x_2-x_1)}\]
where:
x1 and y1 are the first coordinates.
x2 and y2 are the second coordinates.
x is the point to perform the interpolation.
y is the interpolated value.
Solved example for linear interpolation
The best way to understand linear interpolation is through the use of an example.
Find the value of y if x = 5 and some set of value given are (3,2), (7,9).
Step 1: First assign each coordinate the right value
x = 5 (note that this is given)
x1 = 3 and y1 = 2
x2 = 7 and y2 = 9
Step 2: Substitute these values into the equations, then get the answer for y.
\(y = 2 +(5-3)\frac{(9-2)}{(7-3)} \quad y = \frac{11}{2}\)
How to do linear interpolation
There are a few useful steps that will help you compute the desired value such as the median, 1st quartile and 3rd quartile. We will go through each step with the use of an example so that it is clear.
In this example, we will look at grouped data with class intervals.
Class
Frequency
0-10
5
11-20
10
21-30
1
31-40
8
41-50
18
51-60
6
61-70
20
Frequency is how often a value in a specific class appears in the data.
Step 1: Given the class and the frequency, you have to create another column called the cumulative frequency (also known as CF).
We can manipulate this formula and substitute the value of the median (m) as the upper bound and the position of the median as the median cf which is also equal to the gradient.
We can manipulate this formula and substitute the value of the 1st quartile (Q1) as the upper bound and the position of the 1st quartile as the 1st quartile cf which is also equal to the gradient.
We can manipulate this formula and substitute the value of the 3rd quartile (Q3) as the upper bound and the position of the 3rd quartile as the 3rd quartile cf which is also equal to the gradient.
Linear interpolation is used to find an unknown value of a function between any two known points.
The formula for linear interpolation is \(y = y_1 +(x-x_1) \frac{(y_2-y_1)}{(x_2-x_1)}\)
Linear interpolation can also be used to find the median, 1st quartile and 3rd quartile
The position of the median is \(\frac{n}{2}\)
The position of the 1st quartile is \(\frac{n}{4}\)
The position of the 3rd quartile \(\frac{3n}{4}\)
A graph of the upper bounds in each class interval plotted against the cumulative frequency can be used to locate the median, 1st quartile and 3rd quartile.
The gradient formula can be used to find the specific value of the median, 1st quartile and 3rd quartile
How we ensure our content is accurate and trustworthy?
At StudySmarter, we have created a learning platform that serves millions of students. Meet
the people who work hard to deliver fact based content as well as making sure it is verified.
Content Creation Process:
Lily Hulatt
Digital Content Specialist
Lily Hulatt is a Digital Content Specialist with over three years of experience in content strategy and curriculum design. She gained her PhD in English Literature from Durham University in 2022, taught in Durham University’s English Studies Department, and has contributed to a number of publications. Lily specialises in English Literature, English Language, History, and Philosophy.
Gabriel Freitas is an AI Engineer with a solid experience in software development, machine learning algorithms, and generative AI, including large language models’ (LLMs) applications. Graduated in Electrical Engineering at the University of São Paulo, he is currently pursuing an MSc in Computer Engineering at the University of Campinas, specializing in machine learning topics. Gabriel has a strong background in software engineering and has worked on projects involving computer vision, embedded AI, and LLM applications.
Vaia is a globally recognized educational technology company, offering a holistic learning platform designed for students of all ages and educational levels. Our platform provides learning support for a wide range of subjects, including STEM, Social Sciences, and Languages and also helps students to successfully master various tests and exams worldwide, such as GCSE, A Level, SAT, ACT, Abitur, and more. We offer an extensive library of learning materials, including interactive flashcards, comprehensive textbook solutions, and detailed explanations. The cutting-edge technology and tools we provide help students create their own learning materials. StudySmarter’s content is not only expert-verified but also regularly updated to ensure accuracy and relevance.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.