Simple linear regression with PHP, Part 2 (IBM developerWorks)
Paul Meagher
plots statistical graphics using PHP on IBM's developerWorks.
"
In this article, the author, Paul Meagher, addresses these shortcomings with PHP-based probability functions; demonstrates how to integrate output methods into the SimpleLinearRegression class; and creates graphical output. He then tackles these issues by building a data-exploration tool, designed to plumb the depths of information contained in small- to medium-sized datasets." You may want to start off with part one.