Answered step by step
Verified Expert Solution
Question
1 Approved Answer
pred _ train = lg . predict ( X _ train ) > 0 . 5 i It will show the summary of the logistic
predtrain lgpredictXtrain
i It will show the summary of the logistic regression model
B
lg logitfit
ii It imports the statsmodels.api and loads most of the public parts of statsmodels
C
printlgsummary
iii It predicts the dependent variable on train data with default threshold of
D
import statsmodels.api as sm
iv It fits the logistic regression model on the train data set
Answer choices
Select only one option
AivBiCiiDiii
Aiii,BivCiiDi
AiiBiii,CivDi
Aiii,BivCiDii
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started