<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def residuals(self,Y):
 """ Creates the model residuals Parameters Y : np.array The dependent variables Y Returns The model residuals """
         

        return (Y-np.dot(self._create_B(Y),self._create_Z(Y)))