Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!