MathPHP\Statistics\Regression\Methods\LeastSquares::sumOfSquaresTotal PHP Method

sumOfSquaresTotal() public method

the sum, over all observations, of the squared differences of each observation from the overall mean. https://en.wikipedia.org/wiki/Total_sum_of_squares For Simple Linear Regression SStot = ∑(yᵢ - ȳ)² For Regression through a point SStot = ∑yᵢ²
public sumOfSquaresTotal ( ) : number
return number
    public function sumOfSquaresTotal()
    {
        return $this->sumOfSquaresResidual() + $this->sumOfSquaresRegression();
    }