How do you assess the fit of a Logistic Regression model?

  • Accuracy only
  • Precision and recall only
  • R-squared only
  • Using metrics such as AUC-ROC, confusion matrix, log-likelihood, etc.
The fit of a Logistic Regression model can be assessed using various metrics, including the AUC-ROC curve, confusion matrix, log-likelihood, and other classification metrics that consider both the positive and negative classes.

You are implementing LDA, but the assumptions regarding normality and equal covariance matrices are not met. How will this affect the results, and what can be done?

  • LDA will fail completely
  • LDA will require more data to work properly
  • No effect on results; continue as planned
  • Results may be suboptimal; consider validating assumptions or using another method
If the assumptions are not met, the "results may be suboptimal." You should consider validating the assumptions or using a method that does not require these specific assumptions.

You observe that the R-Squared value increases as you add more variables to your regression model, but the Adjusted R-Squared value decreases. What could this imply?

  • Model is becoming more accurate; continue adding variables
  • Model is biased; change the loss function
  • Model is overfitting; remove some variables
  • Model is underfitting; add more significant variables
The observed pattern where R-Squared increases but Adjusted R-Squared decreases implies that the added variables are not contributing meaningful information. R-Squared tends to increase with more variables, but Adjusted R-Squared penalizes for unnecessary complexity. This pattern could be a sign of overfitting, and some variables might need to be removed or the selection process revisited.

In which type of learning do algorithms learn by interacting with an environment to achieve a goal?

  • Reinforcement Learning
  • Semi-supervised Learning
  • Supervised Learning
  • Unsupervised Learning
Reinforcement Learning involves agents that learn by interacting with an environment to achieve a goal, receiving rewards or penalties.

In what types of applications might clustering be particularly useful?

  • In applications needing labeled data
  • In applications that require continuous prediction
  • In applications that require data grouping and pattern discovery
  • Only in image recognition
Clustering is particularly useful in applications that require discovering underlying patterns and grouping similar data, such as customer segmentation, image segmentation, or anomaly detection.

Can you briefly explain how Eigenvectors are used in PCA?

  • To calculate the mean of the data
  • To cluster the data
  • To determine the direction of maximum variance
  • To normalize the data
Eigenvectors are used in PCA to determine the directions of maximum variance in the data. They define the axes along which the data is projected to form the principal components, preserving most of the information.

You're trying to compare two classification models, and they have the same AUC value but different ROC Curves. What does this tell you, and how would you choose between the models?

  • The models are identical in performance
  • The models perform equally overall but may have different trade-offs at specific thresholds
  • The models perform equally well on positive classes but differently on negative classes
  • nan
Same AUC value means the models perform equally overall, but different ROC Curves indicate that they may have different trade-offs at specific thresholds. The choice between models should depend on the specific needs and priorities of the application.

How does hyperparameter tuning influence the performance of a classification model?

  • Enhances model performance by fine-tuning algorithm parameters
  • Increases computational time but doesn't affect performance
  • Makes the model simpler
  • No influence
Hyperparameter tuning involves finding the optimal hyperparameters (e.g., learning rate, regularization strength) for a given model and data. This fine-tuning process helps in enhancing the model's performance by finding the best configuration for the learning algorithm.

Your regression model's MSE is high, but the MAE is relatively low. What might this indicate about the model's error distribution, and how would you investigate further?

  • Model has consistent errors; needs more training
  • Model has frequent large errors; needs regularization
  • Model has many small errors, but some significant outliers; analyze residuals
  • Model is perfect; no further investigation required
A high Mean Squared Error (MSE) with a relatively low Mean Absolute Error (MAE) indicates that the model likely has many small errors but also some significant outliers. The squaring in MSE amplifies the effect of these outliers. Analyzing the residuals (the differences between predicted and actual values) can help to understand the nature of these errors and possibly guide improvements in the model.

___________ is a popular method for dimensionality reduction that transforms the data into a new coordinate system where the variance is maximized.

  • Feature Selection
  • Linear Discriminant Analysis
  • Principal Component Analysis
  • t-SNE
Principal Component Analysis (PCA) is a method that transforms data into a new coordinate system where the variance is maximized. It's a popular technique for reducing dimensions while preserving as much information as possible in the reduced space.