Lab 4A
Directions: Follow along with the slides and answer the questions in red font in your journal.
data()
function to load the arm_span
data.height
and armspan
are in inches.armspan
is the maximum distance between their fingertips when they spread their arms out wide.height
variable.
arm_span
data:
armspan >= 61 & armspan <= 63
.armspan >= 64 & armspan <= 66
.height
of people in each subset. Answer the following based on the data:
height
would you predict if you knew a person had an armspan
around 62 inches?height
would you predict if you knew a person had an armspan
around 65 inches?armspan
help you predict their height? Why or why not?armspan
also tend to have a larger mean height
.
height
and armspan
. Then run the following code. Draw a line by clicking twice on the Plot pane.armspan
would be.armspan
s that aren’t in our data.
armspan
to be?height
of people with similar arm_spans
.lm
, or linear model:y = a + bx
.
armspan
and compare it with a neighbor. Ensure you both arrive at the same predicted value.armspan
and use the regression line to predict your height. How close was the prediction?