Recover a formula from a data table
Hello and thanks for reading.
I have a table with data. Each row determines a value called X, that I also have. What I'll like to do is recover the formula that calculates this X value. I think this is called data interpolation but I don't know how to do it =/
I have a lot of this data so I can at least get an approximation to the original formula, but how can I automate that?
I have the data on an opencalc sheet, but I can adapt to any programming language. Any tips?
Presuming that X is a function of A-G, you are fitting a model to the data not interpolating. You can't really "recover" the formula that generated your data set. The best you can do is find the model that best describes your data. That model will be meaningless because there is no context within which to work; all you have is bunch of numbers. Generally we have some understanding of the phenomena we're investigating that will help us choose a model family rather than blindly stab in the dark.
There are many methods for fitting a model to your data. You may have been introduced to linear regression in the past. That may not be the most appropriate method, but would be a good place to start.
There is an application available in most Linux distro's repositories named R (http://www.r-project.org/). It is also available for Windows. It will do what you want.
|All times are GMT -5. The time now is 11:21 AM.|