Heteroskedasticity testing is an assumption test in linear regression using…