I am looking for a way to calculate the standardized residuals for a given set of data and then plot the standardized residual plots. I do not know how to do this with numpy. I have tried coding the formula myself but each time I get an error that I cannot convert the array to a scalar. I wonder why it should be telling me that since all I need is an array not a scalar. Please, can someone show me any module that can do this (googled for standardized residuals but couldn't find any) or tell me how to do this myself. I am beat.