Unit 5 · Topic 5.1 · about 20 minutes

Graphical Representations Between Two Quantitative Variables

Make a scatterplot with the right variable on each axis, describe the association it shows in context, and use it to support or reject a claim.

Predict first

A used-car website lists 14 sedans of the same model, each with its age and its asking price. You want a graph that shows how price depends on age. Which variable belongs on the horizontal axis?

Two measurements on each individual

Until now you have graphed one quantitative variable at a time. Here every individual comes with two quantitative measurements: each car has an age AND a price. That is bivariate quantitative data. Each individual contributes one ordered pair (x,y), and both numbers have to come from the same individual, whether the individuals are a sample or a whole population. Pairing one car's age with another car's price would be meaningless.

A scatterplot shows bivariate data with one dot per individual. The explanatory variable goes on the x-axis; it is the variable whose values you use to explain or predict the other one. The response variable goes on the y-axis.

Sometimes either variable could play either role. Height and arm span are a good example. Then the question you are asking decides: if you want to predict arm span from height, height is explanatory.

14 used sedans of one model

152025Asking price (thousands of dollars)246810Age (years)

Each dot is one car. The dot farthest to the right is the 10-year-old car, listed at 11.3 thousand dollars.

Four things to describe

A complete description of a scatterplot covers four features.

  • Form. Do the points follow a straight-line path (linear) or a curve (non-linear)?
  • Direction. In a positive association, as the explanatory variable increases, the response tends to increase. In a negative association, the response tends to decrease.
  • Strength. How closely do the points follow the pattern? Describe it as strong, moderate or weak.
  • Unusual features. Are there clusters, or individual points that do not fit the general pattern?

For the sedans, the association is linear, negative and strong, with no unusual features. In context: older cars of this model tend to have lower asking prices, and prices fall at a fairly steady rate as age goes up.

The words tend to are doing real work there. The 3-year-old car, at 24.2 thousand dollars, is priced higher than both 2-year-olds. A negative association describes the overall pattern, not a rule that every car obeys.

If the points form a shapeless cloud, there is no association, and so no form or direction to describe.

Strong is not the same as linear

Form trips up more students than the other three features. A student practices typing for four weeks and checks her speed every other day. Her speed climbs from 18 to 48 words per minute in the first 10 days, then adds only 5 more words per minute over the last 10. Points that rise steeply and then flatten out are non-linear, even when they follow their pattern very closely.

Typing speed during four weeks of practice

204060Typing speed (words per minute)0510152025Days of practice

Strong, positive and non-linear. The gains shrink as practice goes on.

Clusters and stray points

Unusual features are often the most interesting part of a plot. A park ranger times 20 eruptions of a geyser, along with the wait until the next eruption. The plot does not show one cloud of points. It shows two.

Eruption length and the wait until the next eruption

5060708090Wait until next eruption (minutes)234Length of eruption (minutes)

Short eruptions of about 2 minutes were followed by waits near 55 minutes. Long eruptions of about 4 to 5 minutes were followed by waits near 80 minutes. Nothing fell in between.

Overall the association is positive and strong: longer eruptions tend to be followed by longer waits. A description that stopped there would hide the most important thing about this geyser, which seems to have two kinds of eruptions. Report the clusters, with their values.

Sort it

Each sentence below comes from a description of some scatterplot. Tap a sentence, then tap the feature it describes.

Form

Direction

Strength

Unusual features

Pool visitors on 19 summer days

200400600Number of visitors80859095Daily high temperature (degrees Fahrenheit)

One dot sits far below the rest: a 93 degree day with 180 visitors.

Worked exampleDescribing a scatterplot and testing a claim

A city pool manager recorded the daily high temperature and the number of visitors on the 19 summer days plotted above. Describe the association. Then decide whether the scatterplot supports the manager's claim that hotter days bring bigger crowds.

  1. Form. Apart from one day, the points rise at a fairly steady rate, so the form is linear.

  2. Direction. Positive. Days with higher temperatures tend to have more visitors.

  3. Strength. Fairly strong. Most of the days sit close to the linear pattern.

  4. Unusual features. The 93 degree day had only 180 visitors, far fewer than any other day in the data. It does not fit the pattern. The scatterplot cannot say why; the manager's log can (a thunderstorm closed the pool at 1 p.m.).

  5. The claim. Supported. Days in the high 70s drew roughly 300 to 400 visitors, and days in the mid 90s drew over 600. The stormy day is a reminder that temperature is not the only thing that matters.

Answer.

There is a fairly strong, positive, linear association between daily high temperature and the number of visitors, with one unusual day (93 degrees, 180 visitors). The plot supports the claim: hotter days tend to bring more visitors.

Lab

Regression Playground

Tap to place points, and build a scatterplot for each description: strong and positive; weak and negative; curved; two clusters. Ignore the line and the numbers for now (5.2 Correlation and 5.3 Linear Regression Models explain them). The point is to see that every description has its own picture.

Open the full Regression Playground lab

Check your understanding

1

A nutritionist wants to know whether the grams of sugar in a breakfast cereal can be used to predict its calories per serving. She has both measurements for 40 cereals. Which graph should she make?

2

A scatterplot of 25 students' hours of sleep the night before a test (x) and their test scores (y) shows points that drift upward from left to right, with a lot of scatter around that trend. Which description fits?

3

A wildlife biologist measures the length (centimeters) and weight (kilograms) of 30 adult river otters. The scatterplot shows a moderate, positive, linear association. Which sentence best describes the direction of the association in context?

4

A phone store plots battery health (percent of original capacity) against months of use for 40 used phones. The points fall at a steady rate, from about 100% at 0 months to about 80% at 24 months, and stay close to that pattern. The store advertises that its 18-month-old phones "almost always have at least 95% of their battery capacity." Does the scatterplot support the ad?

5

A scatterplot shows a tight pattern that climbs quickly and then levels off, with almost no scatter around the curve. Which description is correct?

Course alignment, for teachers

AP Statistics topic 5.1, Unit 5: Regression Analysis.

  • Skill 3.A: Construct tabular and graphical representations of data and distributions.
  • Skill 4.A: Describe and compare tabular and graphical representations of data, as well as summary statistics.
  • Skill 4.B: Justify a claim based on statistical calculations and results.