Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

o test this model, the biologist collects a sample of 2 0 adult marmots. The lengths and weights of the marmots are as follows: length

o test this model, the biologist collects a sample of 20 adult marmots. The lengths and weights of the marmots are as
follows:
length =[22.7,22.4,25.8,21.3,20.1,22.1,21.1,25.3,26.9,26.9,
23.0,23.8,26.2,20.4,23.0,21.9,23.5,27.8,25.3,25.9]
weight =[9.2,8.8,10.7,8.3,6.2,8.6,7.2,11.2,10.5,11.3,
9.6,9.9,10.9,5.9,9.5,9.1,9.7,11.6,10.2,10.5]
Create these lists, as the appear here. You do not need to print anything in this cell.
Create a list named pred_weight containing the predicted weight for each marmot, according to the biologist's model.
You should begin by creating pred_weight as an empty list. Then loop over the elements of length. Each iteration of
the loop should calculate a new predicted weight using the formula provided above, and rounded to 2 decimal places.
The round value for each predicted weight should be appended to the list pred_weight.
Print pred_weight.

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

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions