def ss_tot ( self ) : return np . sum ( np . square ( self . y - self . ybar ) , axis = 0 )
sum of square components in python
Total sum of squares .
def ss_tot(self):
        """Total sum of squares."""
        return np.sum(np.square(self.y - self.ybar), axis=0)