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.
The assumption that the relationship between the independent and dependent variable is linear in Simple Linear Regression is called the assumption of _________.
- Homoscedasticity
- Independence
- Linearity
- Normality
The assumption of linearity ensures that the relationship between the independent and dependent variable is linear, which is fundamental to Simple Linear Regression.
What type of learning algorithm utilizes labeled data to make predictions?
- Reinforcement Learning
- Semi-supervised Learning
- Supervised Learning
- Unsupervised Learning
Supervised Learning uses labeled data, where the output is known, to train the algorithm and make predictions.
The slope coefficient in Simple Linear Regression gives the _________ change in the dependent variable for a one-unit change in the independent variable.
- Absolute
- Constant
- Incremental
- Marginal
The slope coefficient in Simple Linear Regression gives the marginal change in the dependent variable for a one-unit change in the independent variable.
What is Accuracy in the context of classification metrics?
- False Positives / Total predictions
- Total correct predictions / Total predictions
- True Negatives / (True Negatives + False Positives)
- True Positives / (True Positives + False Negatives)
Accuracy is the ratio of correct predictions to the total number of predictions. It gives an overall measure of how well the model is performing, but may not be suitable for imbalanced datasets where one class dominates.
You are working on a dataset with an imbalanced class distribution. How would you apply Cross-Validation to ensure that each fold maintains the same class distribution?
- Applying Cross-Validation without folding
- Using Leave-One-Out Cross-Validation
- Using k-fold Cross-Validation with random sampling
- Using stratified k-fold Cross-Validation
Using stratified k-fold Cross-Validation ensures that each fold maintains the same class distribution by having the same proportion of each class as the entire dataset. It's a suitable choice for imbalanced class distribution, as it guarantees that each fold is a representative sample of the overall class proportions in the dataset.
Why might it be important to consider interaction effects in a Multiple Linear Regression model?
- It captures complex relationships
- It increases accuracy independently
- It reduces bias
- It simplifies the model
Considering interaction effects is essential to capture complex relationships between variables that might not be apparent when considering each variable separately.
Describe how Machine Learning algorithms are implemented in sentiment analysis and customer feedback systems.
- Drug Discovery
- Image Recognition
- Inventory Management
- Text Classification
Sentiment analysis in customer feedback systems often involves text classification techniques. Machine learning algorithms like SVM, Naïve Bayes, or deep learning models can categorize customer comments into positive, negative, or neutral sentiment.