Lab 4A
Directions: Follow along with the slides, completing
the questions in blue on your
computer, and answering the questions in red in your
journal.
Space, Click, Right Arrow or swipe left to move to
the next slide.
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
and
armspan <= 63
.armspan >= 64
and
armspan <= 66
.height
of
people in each subset.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?