Question: CSC 221: Lesson 4 This is using jupyter notebook python 3 kernel let me know i can send files need to complete These questions and

CSC 221: Lesson 4 This is using jupyter notebook python 3 kernel

let me know i can send files need to complete

These questions and answers come directly from the Lab 4 assignment.

In some cases, you will be asked to run code, similar to the Lab 4 code. Questions 1-5 pertain to the Sleep dataset and Questions 6-7 pertain to the Heart dataset.

(9 pts) List the columns (fields) that contain values that are discrete and ordered, but do not contain integer counts. Age is an example of integer counts:

ANS:

(8 pts) List the columns (fields) that contain values that are discrete and do contain integer counts. Age is an example of integer counts:

ANS:

(6 pts) Mariah wishes to use the Sleep dataset to predict the LifeSpan of a mystery mammal. She has all the data for this animal except for LifeSpan. She is using regression analysis, which can only accept numeric values. Which column from the dataset must be dropped?

ANS:

In Step C #3, there are examples of code written to return interesting facts about the mammals in this dataset. Write the code for the following interesting facts and display the answer it gives. You will not be given credit for answers without the code:

(10 pts) Which three or four mammals dream the least amount? Use the quantile function.

ANS:

(5 pts) Of these animals that dream the least amount, which one of these does not dream at all?

ANS:

(5 pts) Of these animals that dream the least amount, which one of these is the most exposed?

ANS:

(16 pts) Is the smallest animal, the same animal with the lightest brain? This requires two commands in two cells:

ANS:

(11 pts) Why do you think that Gestation is negatively correlated with TotalSleep? This is a thought question. Assume that the TotalSleep amount causes the Gestation period.

ANS:

(15 pts) Using the pivot table in Step C #3, answer these questions:

Do the females with heart disease have a higher average cholesterol reading than the men with heart disease?

ANS:

On average, do men experience more pain than the women in this study: Assume 1 is least pain and 4 is most pain?

ANS:

(15 pts) List the patients who are in the 1 percentile for blood pressure. Do any of them have heart disease?

ANS:

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!