Answer
Answer
Answer
Correct Answer
Marks: 1/1
True
False
You Selected
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 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.
Q No: 2
Correct Answer
Marks: 1/1
Note: 'ln' refers to the natural logarithm (i.e. logarithm to the base )
0.5
You Selected
1
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.
Q No: 3
Correct Answer
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 Good Actual Bad
0.11
0.82
0.89
You Selected
0.92
Q No: 4
Correct Answer
Marks: 1/1
What do we plot (in the X-axis and the Y-axis) in the Receiver Operator Characteristic (ROC)
curve?
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
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%
81.75%
You Selected
82.34%
89.71%
Q No: 6
Correct Answer
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.8411
You Selected
0.7921
Q No: 7
Correct Answer
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.
480
You Selected
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.
Q No: 8
Correct Answer
Marks: 1/1
Note: Please do not pre-process the data in any way before fitting the logistic regression model.
True
False
You Selected
Q No: 9
Correct Answer
Marks: 1/1
Note: Please do not pre-process the data in any way before fitting the logistic regression model.
0.852
You Selected
0.72
0.67
0.50