Voir iotafinance en FrançaisYou are viewing the English version of iotafinance.comIotafinance auf Deutsch sehen
Icon for the finance formula section

Linear interpolation formula

Description and Usage of the Linear Interpolation Formula

The formula below shows how to calculate a value through the process of linear interpolation. Linear interpolation is a mathematical process that estimates a value by calculating an average of two known, surrounding values. Linear interpolation is frequently employed in finance, for example, to estimate the yield or price of financial instruments, especially when dealing with irregular time intervals or missing data points in a time series.

Linear Interpolation Formula

\[ y_{i}=y_{1}+(y_{2}-y_{1}) \cdot \frac{(x_{i}-x_{1})}{(x_{2}-x_{1})} \ \]

Symbols

\(x_{1}\ \)       
Lower point on the X-axis
\(x_{2}\ \)       
Higher point on the X-axis
\(x_{i}\ \)       
Point on the X-axis to be interpolated
\(y_{1}\ \)       
Lower point on the Y-axis
\(y_{2}\ \)       
Higher point on the Y-axis

Practical example for the use of linear interpolation

Scenario

Let's consider an example from finance where linear interpolation is used to estimate the yield of a financial instrument between two known data points. Suppose you have the following data on the yield of bonds for different maturities:

  • For a maturity of 2 years (x1), the yield is 4% (y1)
  • For a maturity of 5 years (x2), the yield is 5.5% (y2)

Calculation

Now, you want to estimate the yield for a bond with a maturity of 3 years (yi) using linear interpolation. Using the formula above, the calculation steps are as follows:

yi = 0.04 + (0.055 − 0.04) × ((3 − 2) ÷ (5 − 2))

yi = 0.04 + 0.015 × ( 1 ÷ 3 )

yi = 0.04 + 0.005

yi = 0.045

Interpretation

Using linear interpolation, the estimated yield for a bond with a maturity of 3 years is 4.5%. This method provides an interpolated yield based on the linear relationship between known data points.