How a Straight Line Between Two Known Values Estimates the One in Between
Estimate an unmeasured value with linear interpolation, see why the median of grouped data is interpolation on the ogive, find quartiles and percentiles the same way, and know when a straight-line estimate breaks down.
How can you estimate a value that nobody measured?
Draw a straight line between the two known values on either side and read the answer off that line. That is linear interpolation, and you have already used it without the name.
A thermometer read at and at . Nobody looked at , yet almost everyone would say it was about — halfway in time, so halfway in temperature. That guess assumes the temperature rose steadily between the two readings, which is exactly what a straight line means.
The same idea sits inside a formula you are asked to use in Class 10: the median of grouped data is linear interpolation inside the median class. Once you see that, the formula stops being something to memorise and becomes a sentence you can rebuild.
This page covers the interpolation formula, the median, quartiles and percentiles as interpolation on the ogive, when a straight-line estimate goes wrong, and the difference between interpolating and extrapolating.
A thermometer read at and at . Nobody looked at , yet almost everyone would say it was about — halfway in time, so halfway in temperature. That guess assumes the temperature rose steadily between the two readings, which is exactly what a straight line means.
The same idea sits inside a formula you are asked to use in Class 10: the median of grouped data is linear interpolation inside the median class. Once you see that, the formula stops being something to memorise and becomes a sentence you can rebuild.
This page covers the interpolation formula, the median, quartiles and percentiles as interpolation on the ogive, when a straight-line estimate goes wrong, and the difference between interpolating and extrapolating.
Formula
What is the linear interpolation formula?
For two known points and , the value at any between them is estimated by
Read it as a fraction of the way across. is how far along the gap you are, from at to at . Multiply the rise by that fraction and add it to the starting value .
Where it comes from. It is the equation of the straight line through the two points: the slope is , and moving along the line raises by slope times that distance.
Worked example 1 — the thermometer. With and , at :
Worked example 2 — a city's population. A town had lakh people in and lakh in . For :
Check the answer sits between the two known values. lies between and , and is a little under halfway, so the estimate is a little under halfway up. An interpolated value outside the two known values means a slip in the fraction.
Read it as a fraction of the way across. is how far along the gap you are, from at to at . Multiply the rise by that fraction and add it to the starting value .
Where it comes from. It is the equation of the straight line through the two points: the slope is , and moving along the line raises by slope times that distance.
Worked example 1 — the thermometer. With and , at :
Worked example 2 — a city's population. A town had lakh people in and lakh in . For :
Check the answer sits between the two known values. lies between and , and is a little under halfway, so the estimate is a little under halfway up. An interpolated value outside the two known values means a slip in the fraction.
Why is the median formula for grouped data really interpolation?
Because it draws a straight line across the median class on the cumulative frequency graph and reads off where that line reaches .
Take the marks of students:
| Marks | – | – | – | – | – |
|---|---|---|---|---|---|
| Frequency | | | | | |
| Cumulative | | | | | |
Plot the cumulative frequency at each upper limit — , , , , — and join the points. This is the ogive. The median is the mark of the th student, so we want the where the ogive reaches .
lies between and , so interpolate between and , with the roles swapped: we know the height and want the position.
Now compare with the Class 10 formula, :
- is , the start of the gap
- is , the height at the start
- is , the rise across the class
- is , the width of the gap
It is the interpolation formula, term for term. The straight line is the assumption that the students in the – class are spread evenly across it — which is why the formula needs from the class before: that is where the line starts.
Take the marks of students:
| Marks | – | – | – | – | – |
|---|---|---|---|---|---|
| Frequency | | | | | |
| Cumulative | | | | | |
Plot the cumulative frequency at each upper limit — , , , , — and join the points. This is the ogive. The median is the mark of the th student, so we want the where the ogive reaches .
lies between and , so interpolate between and , with the roles swapped: we know the height and want the position.
Now compare with the Class 10 formula, :
- is , the start of the gap
- is , the height at the start
- is , the rise across the class
- is , the width of the gap
It is the interpolation formula, term for term. The straight line is the assumption that the students in the – class are spread evenly across it — which is why the formula needs from the class before: that is where the line starts.
How do you find quartiles and percentiles the same way?
Replace by the fraction of you want and interpolate across whichever class the ogive crosses that height in. The method does not change.
Lower quartile is the th value. The cumulative column first passes in the – class, between and :
Upper quartile is the th value. That height is first passed in the – class, between and , where :
The th percentile is the th value, in the – class between and , where :
So the middle half of the class scored between and , an interquartile range of marks, and nine students in ten scored below about .
One check covers every case. Each answer must lie inside the class it was interpolated in — in –, in –, in – — and , which here reads .
Lower quartile is the th value. The cumulative column first passes in the – class, between and :
Upper quartile is the th value. That height is first passed in the – class, between and , where :
The th percentile is the th value, in the – class between and , where :
So the middle half of the class scored between and , an interquartile range of marks, and nine students in ten scored below about .
One check covers every case. Each answer must lie inside the class it was interpolated in — in –, in –, in – — and , which here reads .
When does interpolation go wrong, and what is extrapolation?
A straight line is only an estimate of what happens between two points, so it is wrong whenever the true relationship bends — and it becomes unreliable once you leave the two points behind.
Error from a bending curve. Estimate from and :
The true value is . The straight line runs below the square-root curve, which bends, so the estimate is too small by about . The closer the two known points, the smaller this error: from and the same method gives , correct to three decimal places.
Extrapolation means using the same line outside the two known points. From the town's lakh in and lakh in , a straight line predicts
That number assumes the town keeps adding exactly lakh people a year for twenty more years — an assumption the data never tested. Inside the gap, the two readings bracket the answer; outside it, nothing does.
In grouped data the straight line is the assumption that values are spread evenly within each class. When a class is lopsided — most students near the top of –, say — the true median differs from , and only the raw marks could show by how much.
Error from a bending curve. Estimate from and :
The true value is . The straight line runs below the square-root curve, which bends, so the estimate is too small by about . The closer the two known points, the smaller this error: from and the same method gives , correct to three decimal places.
Extrapolation means using the same line outside the two known points. From the town's lakh in and lakh in , a straight line predicts
That number assumes the town keeps adding exactly lakh people a year for twenty more years — an assumption the data never tested. Inside the gap, the two readings bracket the answer; outside it, nothing does.
In grouped data the straight line is the assumption that values are spread evenly within each class. When a class is lopsided — most students near the top of –, say — the true median differs from , and only the raw marks could show by how much.
Exam tip
What earns full marks when you interpolate?
Name the two known points, write the fraction of the gap, then substitute — and check that the answer lies between the known values.
- State the two bracketing points explicitly: " lies between the cumulative frequencies and , at marks and "
- Write the fraction (or ) before multiplying
- Take from the class before the one you interpolate in; it is the starting height of the line
- Use the plain frequency as the rise, never a cumulative one
- Keep the units on the answer — marks, °C, lakh
- Check the answer lies inside the gap: a median outside its median class means was misread
- For quartiles and percentiles, locate the class from the cumulative column first; it is often not the median class
- Say "estimate": interpolation assumes a straight line, and the answer is only as good as that assumption
The misconception to name. Averaging the two neighbours, , is interpolation only at the exact midpoint. At it would give lakh instead of , because is of the way across, not .
- State the two bracketing points explicitly: " lies between the cumulative frequencies and , at marks and "
- Write the fraction (or ) before multiplying
- Take from the class before the one you interpolate in; it is the starting height of the line
- Use the plain frequency as the rise, never a cumulative one
- Keep the units on the answer — marks, °C, lakh
- Check the answer lies inside the gap: a median outside its median class means was misread
- For quartiles and percentiles, locate the class from the cumulative column first; it is often not the median class
- Say "estimate": interpolation assumes a straight line, and the answer is only as good as that assumption
The misconception to name. Averaging the two neighbours, , is interpolation only at the exact midpoint. At it would give lakh instead of , because is of the way across, not .
Did you know
How did people read logarithm tables before calculators?
By interpolating — and the "mean difference" columns printed in every log table are linear interpolation done in advance.
A four-figure log table lists and . To find , which is of the way from to :
The true value is . The mean-difference column simply lists and its cousins, so that the reader adds a printed correction instead of multiplying.
It works because the table's steps are small. Over a gap from to the logarithm curve is very nearly straight, so the line through two neighbouring entries barely leaves it — the same reason became accurate once the known points were close together.
Generations of engineers, navigators and astronomers did their arithmetic this way, and the tables at the back of some school textbooks still carry those columns.
A four-figure log table lists and . To find , which is of the way from to :
The true value is . The mean-difference column simply lists and its cousins, so that the reader adds a printed correction instead of multiplying.
It works because the table's steps are small. Over a gap from to the logarithm curve is very nearly straight, so the line through two neighbouring entries barely leaves it — the same reason became accurate once the known points were close together.
Generations of engineers, navigators and astronomers did their arithmetic this way, and the tables at the back of some school textbooks still carry those columns.
Exam relevance
How is interpolation used in board exams, JEE and NEET?
In Class 10 interpolation is examined through the median formula and the ogive, and the same idea returns in every later year under different names.
Board papers. Expect the median of grouped data by formula, reading the median from an ogive (draw a horizontal line at and drop down to the marks axis — that is interpolation done with a ruler), and finding a missing frequency when the median is given. The ogive method and the formula must agree, and examiners sometimes ask for both.
Class 11 and JEE Main. Quartiles, deciles and percentiles of grouped data use the same interpolation with , or . Mean deviation about the median starts from the interpolated median, and straight-line equations in coordinate geometry are the interpolation formula written for every at once.
Physics practicals and NEET. Reading a value between plotted points on a graph — a current between two measured voltages, a temperature between two times — is interpolation, and drawing a best-fit line through scattered readings and reading off it extends the same idea. Questions that ask for a value outside the measured range are testing whether you recognise extrapolation.
Where it leads. Calculus replaces the straight line between two points by the tangent at one point, and numerical methods use curves through three or more points when a line is too crude.
The trap that costs marks. Taking as the median class's own cumulative frequency. It must be the previous class's, and the slip shows up immediately: the median lands below its own class — for the class – in this data.
Board papers. Expect the median of grouped data by formula, reading the median from an ogive (draw a horizontal line at and drop down to the marks axis — that is interpolation done with a ruler), and finding a missing frequency when the median is given. The ogive method and the formula must agree, and examiners sometimes ask for both.
Class 11 and JEE Main. Quartiles, deciles and percentiles of grouped data use the same interpolation with , or . Mean deviation about the median starts from the interpolated median, and straight-line equations in coordinate geometry are the interpolation formula written for every at once.
Physics practicals and NEET. Reading a value between plotted points on a graph — a current between two measured voltages, a temperature between two times — is interpolation, and drawing a best-fit line through scattered readings and reading off it extends the same idea. Questions that ask for a value outside the measured range are testing whether you recognise extrapolation.
Where it leads. Calculus replaces the straight line between two points by the tangent at one point, and numerical methods use curves through three or more points when a line is too crude.
The trap that costs marks. Taking as the median class's own cumulative frequency. It must be the previous class's, and the slip shows up immediately: the median lands below its own class — for the class – in this data.
Key takeaways
What must you be able to do from this part?
One straight line, read in two directions.
- Linear interpolation: — the starting value plus the fraction of the gap times the rise
- Thermometer: at and at give at
- Town: lakh in and lakh in give lakh in
- The ogive plots cumulative frequency at each upper limit; for the marks the points are , , , ,
- The median is interpolation at height :
- The median formula matches term for term: , , ,
- Quartiles and percentiles use , or : , ,
- Every answer lies inside its own class, and
- Interpolation errs when the curve bends: against a true , and closer points shrink the error
- Extrapolation leaves the known points behind: lakh in assumes growth never changes
- Averaging two neighbours is interpolation only at the exact midpoint
The self-test: from the -mark table, find the th percentile both from the formula and from an ogive you draw yourself, and explain in one sentence what assumption both methods share.
- Linear interpolation: — the starting value plus the fraction of the gap times the rise
- Thermometer: at and at give at
- Town: lakh in and lakh in give lakh in
- The ogive plots cumulative frequency at each upper limit; for the marks the points are , , , ,
- The median is interpolation at height :
- The median formula matches term for term: , , ,
- Quartiles and percentiles use , or : , ,
- Every answer lies inside its own class, and
- Interpolation errs when the curve bends: against a true , and closer points shrink the error
- Extrapolation leaves the known points behind: lakh in assumes growth never changes
- Averaging two neighbours is interpolation only at the exact midpoint
The self-test: from the -mark table, find the th percentile both from the formula and from an ogive you draw yourself, and explain in one sentence what assumption both methods share.