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.
The ___________ matrix in LDA represents the spread of the individual classes around their mean.
- between-class scatter
- correlation
- covariance
- within-class scatter
The "within-class scatter" matrix in LDA represents the spread of the individual classes around their mean, capturing the within-class variance.
Explain how cross-validation can be used to mitigate the risk of overfitting.
- By adding noise to the training data
- By increasing model complexity
- By reducing model complexity
- By splitting the data into multiple subsets and training on different combinations
Cross-validation mitigates the risk of overfitting "by splitting the data into multiple subsets and training on different combinations." It ensures that the model is evaluated on unseen data and helps in tuning hyperparameters without relying on the test set.
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.
An educational institution wants to personalize its online learning platform for individual student needs. How would you leverage Machine Learning to achieve this goal?
- Image Recognition, Fraud Detection
- Personalized Learning Paths, Data Analysis
- Recommender Systems, Drug Development
- Supply Chain Management, Weather Prediction
Creating Personalized Learning Paths and analyzing student data using techniques like clustering or decision trees allows for the customization of content and resources according to individual student performance and preferences.
You are working on a project where Simple Linear Regression seems appropriate, but the independent variable is categorical. How would you handle this situation?
- Change the Dependent Variable
- Ignore the Variable
- Treat as Continuous Variable
- Use Dummy Variables
For a categorical independent variable in Simple Linear Regression, you can create dummy variables to represent the categories.
A linear regression model's R-Squared value significantly improves after polynomial features are added. What could be the reason, and what should you be cautious about?
- Reason: Improved fit to nonlinear patterns; Caution: Risk of overfitting
- Reason: Increased bias; Caution: Risk of complexity
- Reason: Increased complexity; Caution: Risk of bias
- Reason: Reduced error; Caution: Risk of underfitting
The significant improvement in R-Squared value after adding polynomial features indicates an improved fit to potentially nonlinear patterns in the data. However, caution should be exercised as adding too many polynomial features may lead to overfitting, where the model fits the noise in the training data rather than the underlying trend. Regularization techniques and cross-validation can be used to mitigate this risk.
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.