Q. In logistic regression, what is the output of the model?
A.
A continuous value
B.
A probability between 0 and 1
C.
A categorical label
D.
A binary decision tree
Show solution
Solution
Logistic regression outputs a probability between 0 and 1, which can be thresholded to classify data points into binary categories.
Correct Answer:
B
— A probability between 0 and 1
Learn More →
Q. What is the main difference between logistic regression and linear regression?
A.
Logistic regression predicts continuous values, while linear regression predicts categorical values.
B.
Logistic regression is used for classification, while linear regression is used for regression tasks.
C.
Logistic regression requires more data than linear regression.
D.
There is no difference; they are the same.
Show solution
Solution
Logistic regression is used for binary classification tasks, while linear regression is used for predicting continuous values.
Correct Answer:
B
— Logistic regression is used for classification, while linear regression is used for regression tasks.
Learn More →
Q. Which algorithm is typically used for linear regression?
A.
K-Nearest Neighbors
B.
Support Vector Machines
C.
Ordinary Least Squares
D.
Decision Trees
Show solution
Solution
Ordinary Least Squares (OLS) is a common algorithm used for linear regression to minimize the sum of squared differences between observed and predicted values.
Correct Answer:
C
— Ordinary Least Squares
Learn More →
Q. Which of the following is a common method for handling imbalanced datasets in classification problems?
A.
Using a larger dataset
B.
Oversampling the minority class
C.
Reducing the number of features
D.
Using a simpler model
Show solution
Solution
Oversampling the minority class is a common method to address class imbalance, helping the model learn better from the underrepresented class.
Correct Answer:
B
— Oversampling the minority class
Learn More →
Q. Which of the following techniques can be used to improve the performance of a classification model?
A.
Feature scaling
B.
Data augmentation
C.
Hyperparameter tuning
D.
All of the above
Show solution
Solution
All of the above techniques can be used to improve the performance of a classification model by enhancing data quality and model training.
Correct Answer:
D
— All of the above
Learn More →
Showing 1 to 5 of 5 (1 Pages)