Hello Everyone,
Welcome to another edition of this newsletter focused on MCQs on a very important topic in machine learning.
Whether you are targeting FAANG companies or other companies in general, Logistic Regression is one of the most favourite topics of interviewers. This algorithm may look simple, but candidates still fail to answer very basic questions related to this topic.
The reason is, candidates keep running after latest algorithms coming in the market everyday without understanding the building blocks (Linear Regression, Logistic Regression, Decision Tree etc.) of machine learning. Keeping yourself updated with the latest trends and technologies is a good thing, but it shouldn’t come at the cost of ignoring the basics.
Again a reminder, your dream companies will always evaluate your performance on the fundamentals. So, prepare them well.
The quiz answers and brief explanations will be provided in the next edition of the newsletter.
What is the shape of a sigmoid function?
Bell shape
S shape
U shape
Z shape
Logistic Regression can only work for the binary classification problems.
True
False
Logistic Regression is a ___________ model.
Parametric
Non-parametric
Logistic Regression is derived from _______.
Linear Regression
Decision Tree
Random Forest
Gradient Boosting Machines (GBM)
Logistic Regression is a Generalized Linear Model (GLM).
True
False
Which of the following defines log of odds in a binary logistic regression model? Please note that p is the probability of favourable event.
log(p) - log(1-p)
log(p) + log(1-p)
log(p) / log(1-p)
None of the above
Coefficients of independent variables in a logistic regression model can be negative.
True
False
Log Odds can be negative in a binary logistic regression model.
True
False
The predicted probability of an outcome class can be negative in a binary logistic regression model.
True
False
Which of the following methods is more suitable to calculate parameters in a logistic regression model?
a. Ordinary Least Squares (OLS)
b. Maximum Likelihood Estimation (MLE)
What is the relationship between odds ratio and probability?
probability = (odds ratio/(1+odds ratio))
probability = (odds ratio/(1-odds ratio))
probability = odds ratio*(1+odds ratio)
probability = odds ratio*(1-odds ratio)
What are the odds of getting number ‘2’ on a fair dice?
1:5
2:5
3:5
None of the above
What is the range of logit (log odds) function used in a logistic regression model?
(-infinity, infinity)
(0, infinity)
(-infinity, 0)
(0,1)
Which of the following is used to convert the output of a logistic regression model to a class label?
Encoding
Threshold value
Feature selection
Confusion matrix
Which loss function is generally used in a logistic regression model?
Squared Loss
Log Loss
None of the above
Is Mean Squared Error (MSE) a suitable evaluation metric for a logistic regression model?
Yes
No
Which of the following is not generally used as an evaluation metric in a logistic regression model?
Precision
Recall
F1-score
RMSE
Was this QUIZ helpful?
Curious about a specific AI/ML topic? Let me know in comments.
Also, please share your feedbacks and suggestions. That will help me keep going. Even a “like” on my posts will tell me that my posts are helpful to you.
See you soon!
-Kavita
P.S. Let’s grow our tribe. Know someone who is curious to dive into ML and AI? Share this newsletter with them and invite them to be a part of this exciting learning journey.
Very helpful. Thanks
Good efforts. But it would be amazing if the quiz was interactive.