a)
The effect of x7 is the same irrespective of the values of x1 and x2 as the coefficient of x7 is always -8 in all the regression equations in all cases.
X1 is only important when it’s value is less than 3.5 because only in that case the regression model has x1 as a significant variable.
X2 is not irrelevant in predicting the monthly sales as there are 2 different equations based on whether x2 has value greater than 2.
X5 is irrelevant in predicting monthly sales as it is not coming as a significant variable in regression models and it is not changing the course of the tree in any node.
The regression tree can predict monthly sales better for values above 3.5 than for values smaller than 3.5 as the R-squared values are higher (0.82,0.72) in the former as compared to the latter (0.68).
b)
The random forest model contains many trees with different branching and the final result would result from an ensemble of the outputs of different trees.
The random forest does not return a single tree, it simply predicts using a combination of outputs form different trees.
The random forest model can report the relative importance of each variable.
A regression tree approach was used to describe the effect of 7 different covariates (x1 through...
X Part I. Derive Bivariate Regression by hand. Again, we are using the same data set that we used in the in-class assessment. Case Dietary Fat Body Fat 22 9.8 22 11.7 14 8.0 21 9.7 32 10.9 26 7.8 30 21 17 1. Step 1: Find the mean of dietary fat x = 2. Step 2: Find the mean of body fat y = 3. Step 3: Find the sum of (x1 - x)y- y) = 3316 4. Step...