Professional Documents
Culture Documents
Logistic Regression Quiz - Predictive Modeling - Great Learning
Logistic Regression Quiz - Predictive Modeling - Great Learning
Logistic Regression Quiz - Predictive Modeling - Great Learning
Course Content
Attempts : 1/1
Questions : 9
Time : 45m
Instructions
Attempt History
Attempt #1
Marks: 10
Jul 01, 3:53 PM
Marks: 1/1
True
Logistic Regression is used for classification problems, i.e. when the dependent variable is
of Categorical Nature For Example Good or Not Good Guilty or Not Guilty Defaulter or
https://olympus.mygreatlearning.com/courses/71099/quizzes/425721 1/8
7/1/22, 3:54 PM Logistic Regression Quiz: Predictive Modeling - Great Learning
of Categorical Nature. For Example, Good or Not Good, Guilty or Not Guilty, Defaulter or
Not a defaulter etc.
On the contrary, when you are trying to predict a Continuous Variable, you can choose to
use Linear Regression. For example, Price of a commodity, Run Rate of a Batsman etc.
Marks: 1/1
Note: 'ln' refers to the natural logarithm (i.e. logarithm to the base )
In this case, we know that ln(P/(1-P) = 0. So, for the equation to be 0 we need to have P =
1-P (as ln(1) = 0). Thus, we can say that P=1-P=0.5.
Marks: 1/1
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?
Actual
Actual Bad
Good
https://olympus.mygreatlearning.com/courses/71099/quizzes/425721 2/8
7/1/22, 3:54 PM Logistic Regression Quiz: Predictive Modeling - Great Learning
Good
0.11
0.82
0.92
Marks: 1/1
What do we plot (in the X-axis and the Y-axis) in the Receiver Operator Characteristic (ROC)
curve?
X-axis : False Positive Rate, Y-axis : True Positive Rate You Selected
QN 5 C A
https://olympus.mygreatlearning.com/courses/71099/quizzes/425721 3/8
7/1/22, 3:54 PM Logistic Regression Quiz: Predictive Modeling - Great Learning
Q No: 5 Correct Answer
Marks: 1/1
To predict whether a heart attack is fatal, logistic regression is fitted. Y = 1, if the attack is
fatal, 0 otherwise. The following model is found to be adequate
= -8.5 + 0.2*Age + 0.15*Smoking Status [here 'ln' stands for natural logarithm
(i.e. logarithm to the base )]
Where Smoking Status = 1 if the person is a current smoker and 0 otherwise. Find the
percentage probability that a 50-year-old non-smoker will have a fatal attack.
84.2%
82.34%
89.71%
Marks: 1.50/1.50
Note: Please do not pre-process the data in any way before fitting the logistic regression
model.
0.85625
0.78256
0.7921
Marks: 1.50/1.50
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.
https://olympus.mygreatlearning.com/courses/71099/quizzes/425721 5/8
7/1/22, 3:54 PM Logistic Regression Quiz: Predictive Modeling - Great Learning
674
140
78
In python, when you print the confusion matrix it is understood like this:
0 1
0 674 140
1 78 480
True Positive is when the actual class is 1 and the model predicted it to be 1 as well. Thus,
for index location [1,1] is the true positive in the given confusion matrix i.e. 480.
Marks: 1/1
Note: Please do not pre-process the data in any way before fitting the logistic regression
model.
True
Marks: 1/1
Note: Please do not pre-process the data in any way before fitting the logistic regression
model.
https://olympus.mygreatlearning.com/courses/71099/quizzes/425721 7/8
7/1/22, 3:54 PM Logistic Regression Quiz: Predictive Modeling - Great Learning
0.72
0.67
0.50
Comments:
+ Add comments
Previous Next
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
https://olympus.mygreatlearning.com/courses/71099/quizzes/425721 8/8