Logistic Regression Quiz Solved
Logistic Regression Quiz Solved
Q1. It has been observed that about 25% of young adults smoke. If you are sitting next to a
young adult on a park bench, what is the odds that he is a smoker?
Correct Answer
Q2. To predict whether a goal was scored by a player in an international match , logistic
regression is fitted. Y = 1, if the goal was scored, 0 otherwise. The following model is found
to be adequate
Ln ( P(Y=1) / P(Y=0) ) = 9.5 - 0.3*Age + 0.57*MinorInjury [here 'ln' stands for natural
logarithm (i.e. logarithm to the base e)]
Where MinorInjury = 1 if the player is playing with a minor injury and 0 otherwise. Find the
percentage probability of a 40-year old player with no minor injury will score an
international goal.
Correct Answer
Q3. The following table shows the cross-tabulation of actual and predicted response after a
logistic regression model fit. What is the accuracy of the logistic regression?
Correct Answer
Q4. What do we plot (in the X-axis and the Y-axis) in the Receiver Operator Characteristic
(ROC) curve?
Correct Answer
Q5. Performance of a logistic regression is often measured by its sensitivity (recall) and
specificity (precision). Which of the following statements do you agree with?
Correct Answer
Q6. To answer the question, please follow the instructions given below:
Note: Please do not pre-process the data in any way before fitting the logistic regression
model.
Correct Answer
Q7. To answer the question, please follow the instructions given below:
What is the value of the True Positives predictions based on the confusion matrix?
Note: For this question, use the whole data to build the model, then use the independent
variables to predict the same whole data and then build a confusion matrix.
Note: Please do not pre-process the data in any way before fitting the logistic regression
model.
Correct Answer
Q8. To answer the question, please follow the instructions given below:
Note: Please do not pre-process the data in any way before fitting the logistic regression
model.
Correct Answer
Q9. To answer the question, please follow the instructions given below:
Note: Please do not pre-process the data in any way before fitting the logistic regression
model.
Correct Answer
Q10. ______ the value of AUC, ______ is the prediction power of the model?
Correct Answer