def CoefDetermination(ys, res):
 return (1 - (Var(res) / Var(ys)))

def CoefDetermination ( ys , res ) : return ( 1 - ( Var ( res ) / Var ( ys ) ) )
computes the coefficient of determination for given residuals .