The ________ measures the average of the squares of the errors, while the ________ takes the square root of that average in regression analysis.

  • MAE, MSE
  • MSE, RMSE
  • R-Squared, MAE
  • RMSE, MAE
The Mean Squared Error (MSE) calculates the average of the squared differences between predicted and actual values, and the Root Mean Squared Error (RMSE) takes the square root of that average. RMSE gives more weight to large errors and is more interpretable as it is in the same unit as the response variable.

You are working with a large dataset, and you want to reduce its dimensionality using PCA. How would you decide the number of principal components to retain, considering the amount of variance explained?

  • By always retaining all principal components
  • By always selecting the first two components
  • By consulting with domain experts
  • By retaining components explaining at least a predetermined threshold of variance
The number of principal components to retain can be decided based on a predetermined threshold of variance explained. For example, you may choose to keep components that together explain at least 95% of the total variance.

How does Lasso regression differ from Ridge regression?

  • Both use L1 regularization
  • Both use L2 regularization
  • Lasso uses L1 regularization, Ridge uses L2
  • Lasso uses L2 regularization, Ridge uses L1
Lasso (Least Absolute Shrinkage and Selection Operator) regression uses L1 regularization, which can lead to some coefficients being exactly zero, thus performing feature selection. Ridge regression uses L2 regularization, which shrinks the coefficients but doesn't set them to zero. These different regularization techniques define their behavior and application.

Explain the role of Machine Learning in optimizing supply chain and inventory management.

  • Customer Segmentation
  • Image Recognition
  • Sentiment Analysis
  • Supply Chain Optimization
Machine Learning plays a vital role in supply chain optimization by analyzing and predicting demand, improving inventory management, optimizing logistics, and enhancing decision-making through predictive analytics.

Explain how the learning agent interacts with the environment in Reinforcement Learning.

  • Through clustering
  • Through combining labeled and unlabeled data
  • Through labeled data
  • Through rewards and penalties
The agent in Reinforcement Learning interacts with the environment through rewards and penalties, learning to take actions to achieve a goal.

What is the difference between Gradient Boosting and AdaBoost?

  • Both are the same
  • Both focus on increasing bias
  • Gradient Boosting is for regression, AdaBoost is for classification
  • Gradient Boosting uses gradients to correct errors, while AdaBoost focuses on weighting misclassified instances
Gradient Boosting builds models sequentially, using gradients to correct errors and minimize the loss function. AdaBoost, on the other hand, adjusts the weights of misclassified instances to focus the next model on them. Both aim to improve performance but use different approaches.

What role does the regularization parameter 'C' play in an SVM?

  • Controls balance between margin maximization and error minimization
  • Controls visualization
  • Increases computation time
  • Reduces data size
The regularization parameter 'C' in SVM controls the trade-off between maximizing the margin and minimizing classification errors.

How is Recall defined in classification, and when is it an important metric to consider?

  • False Positives / Total predictions
  • True Negatives / (True Negatives + False Positives)
  • True Positives / (True Positives + False Negatives)
  • True Positives / (True Positives + False Positives)
Recall is the ratio of true positive predictions to the sum of true positives and false negatives. It measures the ability to correctly identify all relevant instances and is crucial when the cost of false negatives is high, such as in medical diagnoses.

_________ regression adds a penalty equivalent to the square of the magnitude of coefficients, whereas _________ regression adds a penalty equivalent to the absolute value of the magnitude.

  • Lasso
  • Linear
  • Polynomial
  • Ridge
Ridge regression adds a penalty equivalent to the square of the magnitude of coefficients, whereas Lasso regression adds a penalty equivalent to the absolute value of the magnitude.

In regression analysis, the metric that tells you the proportion of the variance in the dependent variable that is predictable from the independent variables is called _________.

  • Adjusted R-Squared
  • Mean Squared Error
  • R-Squared
  • Root Mean Squared Error
In regression analysis, R-Squared tells you the proportion of the variance in the dependent variable that is predictable from the independent variables. It provides a measure of how well the regression line fits the data.