How does the elastic net regularization technique affect model coefficients as lambda increases?
Complexity decreases, bias increases, and variance decreases
How can combining variable importance and partial dependence plots enhance model interpretation?
Identify important predictors, then understand their relationship with the target
How does the fitting process differ between Random Forest and Boosting?
Random Forest fits trees in parallel, while Boosting fits trees in series
How does increasing the 'ntree' parameter in Random Forest affect variance reduction?
Higher ntree values lead to more variance reduction
What is the primary purpose of the 'eta' parameter in boosting algorithms?
To control the learning rate or shrinkage of the model
What is a significant drawback of using Principal Component Analysis (PCA) for dimensionality reduction?
Loss of interpretability of the original variables
What is the main focus of Boosting algorithms compared to Random Forest?
Boosting focuses on reducing bias, while Random Forest focuses on reducing variance
What is a key advantage of Principal Component Analysis (PCA) in machine learning?
It creates uncorrelated variables that maximize variance and reduce dimensionality
How does the sensitivity to hyperparameters compare between Random Forest and Boosting?
Boosting is more sensitive to hyperparameters than Random Forest
How do variable importance plots help in model interpretation?
They identify important variables based on their impact on node impurity
What is the primary purpose of partial dependence plots in machine learning?
To show the marginal relationship between the target and influential predictors
How does increasing the cutoff value in a binary classification model affect sensitivity and specificity?
Sensitivity decreases and specificity increases
How does binning affect a numeric variable?
Converts it into a categorical variable with non-overlapping intervals
What visualization method is appropriate for displaying the relationship between two numeric variables?
Scatter plot
What distinguishes Lasso regularization from Ridge regularization?
Lasso can reduce coefficients to zero, while Ridge cannot
How is the Root Mean Square Error (RMSE) calculated?
Square root of the average of squared differences between actual and predicted values
How does Elastic Net regularization compare to Lasso and Ridge?
It uses a mixing parameter between 0 and 1, combining Lasso and Ridge approaches
What characterizes the recursive binary splitting approach in decision trees?
It is greedy, making the best split at each step without looking ahead
How does increasing the lambda parameter in regularization algorithms affect the model?
Decreases complexity, increases bias, and decreases variance
What is the typical range of values for the Area Under the ROC Curve (AUC)?
Between 0.5 and 1
What does the precision metric in classification represent?
Proportion of positive predictions truly belonging to the positive class
What is K mean clustering
Randomly select K points in the feature space. These K points will serve as the initial cluster center.
Repeat the following steps until the cluster assignments no longer change.
Assign each observation to the cluster with the closest centroid
b. Recalculate the center of each of the K clusters
What is Boosting?
Is an ensemble tree model that sequentially trains a set of models, with each model trying to correct the mistakes of the previous model.
What is Random Forest
an ensemble tree model that produce multiple decision trees fitted to bootstrapped versions of the original training data in parallel and combines the results of these base trees to form the overall prediction. At each split, a random sample of predictors is taken to decorrelate the base tree
What is hierarchical clustering
A series of fusions of obs in the data. It’s a bottom-up clustering method that starts with the individual obs, each treated as a separate cluster, and successively fuses the closest pair of clusters, one pair at a time.
What is Variable importance plots
The total drop in node impurity due to splits over a given predictor averaged over all base tree. To identity important variables for those with a large score
What is Partial dependence plots
Shows the marginal relationship between target variable and the influential predictors
What is Accuracy
TN+TP/N : Proportion of correctly classified observations
What is Classification error rate
FN+FP/n = Proportion of misclassified observations
What is Sensitivity
TP/TP+FN = Proportion of positive observations correctly classified as positive
What is Specificity
TN/TN+FP= Proportion of negative observations correctly classified as negative
What is Precision
TP/FP+TP= proportion of positive predictions truly belonging to positive class
2 ways to detect collinearity
Correlation matrix between a pair of predictors, and Variance inflation factor between 2 or more variables
K-Fold CV ?
1: divide the dataset into K equal folds
2: Select a candidate set of HP
3: For each fold: a. Train the model on k-1 fold/ b Valid the model on the remaining fold
4: Repeat the process for each fold
5: Cal the avg perf. across all k folds for all candidate set
Repeat 2-5 for each HP, set the best
AIC vs BIC
AIC is -2l+2(p+1) and BIC is -2l+In(ntr)(P+1) , for both, lower value is better. BIC is more conservative and results in simpler model when n>= 8 which is usually the case.