Final answer:
To formally test for heteroscedasticity, you can use the Breusch-Pagan test or the White test. The Breusch-Pagan test involves estimating the regression model, calculating the residuals, estimating another regression model, and performing a hypothesis test.
Step-by-step explanation:
To formally test for heteroscedasticity, you can use the Breusch-Pagan test or the White test. Here are the steps to perform the Breusch-Pagan test:
- Start by estimating the regression model between the dependent variable (price of cars) and the independent variable (size of the turn circle).
- Calculate the residuals by subtracting the predicted values from the actual values of the dependent variable.
- Estimate a regression model between the squared residuals and the original independent variable (size of the turn circle).
- Perform a hypothesis test by using the F-statistic. The null hypothesis is that there is no heteroscedasticity.
- If the p-value is less than the chosen significance level (e.g., 0.05), then there is evidence of heteroscedasticity.
Remember that scatterplots only provide a visual indication of heteroscedasticity, while formal tests provide a statistical confirmation.