How can interaction effects be included in a Multiple Linear Regression model?

  • By creating new variables for interactions
  • By increasing model complexity
  • By reducing variables
  • By using more data
Interaction effects can be included by creating new variables that represent the product of two interacting variables, allowing for combined effects to be modeled.

Can you explain the concept of feature importance in Random Forest?

  • Feature importance focuses on eliminating features
  • Feature importance is irrelevant in Random Forest
  • Feature importance quantifies the contribution of each feature to the model's predictions
  • Feature importance ranks the features by their correlation with the target
Feature importance in Random Forest quantifies the contribution of each feature to the model's predictions. It's based on the average impurity decrease computed from all decision trees in the forest. This helps in understanding the relative importance of different features in the model.

What is the primary function of the hyperparameters in SVM?

  • Compression
  • Controlling complexity and margin
  • Data Cleaning
  • Visualization
Hyperparameters in SVM are used to control the complexity of the model and the margin between classes.

What is the primary purpose of using Logistic Regression?

  • Clustering data
  • Finding correlations
  • Predicting binary outcomes
  • Predicting continuous outcomes
Logistic Regression is mainly used to predict binary outcomes (e.g., yes/no, true/false). It models the probability that the dependent variable belongs to a particular category.

What is Gradient Boosting, and how does it work?

  • Gradient Boosting always uses a Random Forest
  • Gradient Boosting builds trees sequentially, correcting errors using gradients
  • Gradient Boosting is a bagging method
  • Gradient Boosting reduces model complexity
Gradient Boosting is a boosting method that builds decision trees sequentially. Each tree tries to correct the errors of the previous one by using gradients (direction of the steepest ascent) to minimize the loss function. This leads to a powerful model with improved accuracy.

How do ensemble methods like Random Forest and Gradient Boosting help in improving the model's performance?

  • By focusing on one strong model
  • By increasing overfitting
  • By leveraging multiple models to achieve better accuracy and robustness
  • By reducing computational complexity
Ensemble methods like Random Forest and Gradient Boosting combine the strengths of multiple models to achieve better accuracy and robustness. By leveraging a diverse set of models, they often outperform single models, especially on complex tasks, and reduce the risks of overfitting.

What are the limitations of using R-Squared as the sole metric for evaluating the goodness of fit in a regression model?

  • R-Squared always increases with more predictors; doesn't account for bias
  • R-Squared always increases with more predictors; doesn't penalize complexity in the model
  • R-Squared is sensitive to outliers; doesn't consider the number of predictors
  • R-Squared provides absolute error values; not suitable for non-linear models
One major limitation of R-Squared is that it always increases with the addition of more predictors, regardless of whether they are relevant. This can lead to overly complex models that don't generalize well. R-Squared doesn't penalize for complexity in the model, making it possible to achieve a high R-Squared value with an overfitted model. It might not always be the best sole metric for assessing the goodness of fit.

Can you explain the impact of regularization strength on the coefficients in ElasticNet?

  • Decreases coefficients proportionally
  • Increases coefficients
  • No impact
  • Varies based on L1/L2 ratio
ElasticNet combines L1 and L2 penalties, so the impact on coefficients depends on the balance between L1 and L2, controlled by the hyperparameters.

You've applied K-Means clustering, but the results are inconsistent across different runs. What could be the issue, and how would you address it?

  • Change Number of Clusters
  • Increase Dataset Size
  • Initialize Centroids Differently
  • Use Different Distance Metric
K-Means clustering can be sensitive to initial centroid placement. Trying different initialization strategies can lead to more consistent results.

You have a dataset with a high degree of multicollinearity. What steps would you take to address this before building a Multiple Linear Regression model?

  • Apply feature selection or dimensionality reduction techniques
  • Ignore it
  • Increase the size of the dataset
  • Remove all correlated variables
Multicollinearity can be addressed by applying feature selection techniques like LASSO or using dimensionality reduction methods like Principal Component Analysis (PCA). These techniques help in removing or combining correlated variables, reducing multicollinearity and improving the model's stability.