Algorithm for obtaining an approximate equation of a graph based on a set of points

I have a MySQL database with many constantly updated datasets that are usually compatible with a linear or quadratic pattern. Are there existing libraries, mainly with PHP, that I can use to evaluate equations from a set of data points to predict future data points?

+3
source share
1 answer

I can’t answer about libraries, but the main process is linear regression . ”This process is not so difficult, so you can probably write your own quickly enough. Aside, Postgres may have built-in statistical functions that do this, MySQL can have something like that, at least now you know what to look for.

+2
source

All Articles