def squared_error_ridge(x_i, y_i, beta, alpha):
 return ((error(x_i, y_i, beta) ** 2) + ridge_penalty(beta, alpha))

def squared_error_ridge ( x_i , y_i , beta , alpha ) : return ( ( error ( x_i , y_i , beta ) ** 2 ) + ridge_penalty ( beta , alpha ) )
estimate error plus ridge penalty on beta .