Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 2 - Build Logistic Regression method for low birth weight data Use the lowbtwt.csv data that you downloaded from Assignment 2 folder to build
Part 2 - Build Logistic Regression method for low birth weight data Use the lowbtwt.csv data that you downloaded from Assignment 2 folder to build the logistic regression model in a new notebook. Required Notebook Content Markdown cell with the dataset description at the top of the notebook Table of contents Code to load the necessary packages Credentials, Write a parsing function for the new data by carefully considering what the input variables should be and what the training target variable should be. Data exploration and visualization prior to running logistic regression. Include the histogram for the age variable, the frequency counts for the target variable, and the plots/frequency tables to check which variable could be a predictor for the target variable. Split the data into a training and test set Use the training set to build the logistic regression model. Tabulate the predicted and actual outcome Evaluate the model on the test set. Tabulate the predicted and actual outcome for the test set. The precision, recall, and F-measure for the training and test set. Roc curve plot Markdown cells with comments on what the code does
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