Hi, Today I worked on multiple linear regression and polynomial regression.I used the percentages of inactivity and obesity as predictors, with the percentage of diabetes as the dependent variable. I tried multiple linear regression and polynomial regression, adjusting the degrees to find the best R-squared result. The Breusch-Pagan test was then used to test the hypothesis that the residuals (variance in errors) in my model are constant across all levels of the independent variables.
I created a new regression model with the squared residuals as the dependent variable and the independent factors from my prior model as the independent variables. The purpose was to see if the independent variables could predict the squared residuals. I obtained a crucial value from after calculating a test statistic the one-degree-of-freedom chi-squared distribution (df=1). I determined that heteroskedasticity existed because the test statistic was bigger than the threshold value.