How to detect heteroscedasticity and rectify it?