MathPHP\Statistics\Regression\Methods\LeastSquares::coefficientOfDetermination PHP Метод

coefficientOfDetermination() публичный Метод

Indicates the proportion of the variance in the dependent variable that is predictable from the independent variable. Range of 0 - 1. Close to 1 means the regression line is a good fit https://en.wikipedia.org/wiki/Coefficient_of_determination
public coefficientOfDetermination ( ) : number
Результат number
    public function coefficientOfDetermination()
    {
        return $this->sumOfSquaresRegression() / ($this->sumOfSquaresRegression() + $this->sumOfSquaresResidual());
    }