how do i interpolate data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have some data with gaps in it, and need to fill them accurately using
interpolation. How do I do that?
 
mp said:
I have some data with gaps in it, and need to fill them accurately using
interpolation. How do I do that?

You can't fill them "accurately" with interpolation. Interpolation is a
guess of what data maybe, might, possibly be what should go there.

And depending on the nature of the data there are lots of ways to do
interpolation. Linear, polynomial, exponential, etc. If you have an
interest rate problem for example and fill it in with linear
interpolation you're guaranteed inaccurate data points. You've got to
know more about the nature of your problem and what sort of curve fits
it best.

For simple linear interpolation between two points (X1,Y1) and (X2,Y2)
the equation to find a value Y for an unknown X is:

Y = Y1 + (X-X1)*(Y2-Y1)/(X2-X1)

Good luck...

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top