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.histogram for
the 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.On the Plot pane, click two data points to draw a line through.
NOTE: Watch the following video if you are experiencing difficulties obtaining your line:
If you are unsuccessful using the add_line()
function, refer to the next slide to learn how to use the
get_line() function.
The get_line() function does not rely on clicking on
the scatterplot to choose points, but rather on you providing the points
manually.
For example, let’s say you want to obtain the equation of the
line that passes through the points (59,60) and (68,67). This is how you
would use the get_line function:
## intercept slope
## 14.1111111 0.7777778
add_line() function to include the
line in your scatterplot.armspan and a person with a 65-inch
armspan would be.armspans that aren’t in our data.
armspan to be?