Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python 3.6 HELP Needed You are given the data set StudySleep.xlsx, which is information about the effects of studying and sleeping (both in hours) on

Python 3.6 HELP Needed

You are given the data set StudySleep.xlsx, which is information about the effects of studying

and sleeping (both in hours) on passing an examination (score pass / fail). A score of 60%

or higher on the exam is required to pass. There are 12 data entries use the first 10 entries

as training data and the last two entries as test data.

a. Use logistic regression to model this data, using gradient descent to compute the

coefficients. Use whichever learning rate you find appropriate.

b. Determine the boundary condition for logistic regression.

c. Plot the 2-dimensional data along with the boundary condition. Also plot the 3-

dimensional probability surface.

d. Calculate the probability that a person who gets seven hours of sleep each night and

studies for 12 total hours passes the exam

Data:

Study Sleep Score

4 6.5 Fail

6 6 Fail

12 6 Pass

5 6.5 Fail

10 7 Pass

2 7.5 Fail

12 8 Pass

15 8.5 Pass

3 7 Fail

10 7.5 Pass

5 9 Fail

11 7 Pass

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

Step: 3

blur-text-image

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions