Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pred _ train = lg . predict ( X _ train ) > 0 . 5 i It will show the summary of the logistic

pred_train = lg.predict(X_train)>0.5
i It will show the summary of the logistic regression model
B
lg = logit.fit()
ii It imports the statsmodels.api and loads most of the public parts of statsmodels
C
print(lg.summary())
iii It predicts the dependent variable on train data with default threshold of 0.5
D
import statsmodels.api as sm
iv It fits the logistic regression model on the train data set
Answer choices
Select only one option
A-iv,B-i,C-ii,D-iii
A-iii,B-iv,C-ii,D-i
A-ii,B-iii,C-iv,D-i
A-iii,B-iv,C-i,D-ii

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Infrastructure For Medical Research In Databases

Authors: Thomas Heinis ,Anastasia Ailamaki

1st Edition

1680833480, 978-1680833485

More Books

Students also viewed these Databases questions

Question

What is business ethics?

Answered: 1 week ago

Question

6. Does your speech have a clear and logical structure?

Answered: 1 week ago