Read about Least Square Fitting. I think that this is what you need.
To sum it up briefly, I'd say the you should consider which type of function you expect the approximation would be (linear, polinomial, etc.) and then, using LSF, you should approximate this function with the observations you have.
Hope you'll find it helpful.