Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Algorithm to get approximate equation of a graph based on a set of points [closed]

I have a MySQL database with a variety of constantly updating data sets that are generally matchable to a linear or quadratic-type pattern. Are there any existing libraries, preferentially with PHP, that I can use to estimate an equation from a set of data points for predicting future data points?

like image 586
MarathonStudios Avatar asked Dec 02 '25 06:12

MarathonStudios


1 Answers

Can't answer about the libraries, but the basic process in "Linear Regression". The process isn't that difficult, so you can probably write your own fairly quickly. As an aside, Postgres can has statistic functions built in that do that, MySQL might has something like that. At least now you know what to look for.

like image 148
Will Hartung Avatar answered Dec 04 '25 19:12

Will Hartung



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!