Skip to content

Exploring Two-Variable Data

AP Statistics · Topic 2

Video lesson for this topic Open the video page
7:49

Exploring Two-Variable Data

Thirty children from one primary school. For each child, two numbers: shoe size, and a reading test score. Plot one point per child. The pattern is hard to…

English narration · English + 中文 subtitles burned in

2.1

Are Two Variables Related?

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

VAR-1
Given that variation may be random or not, conclusions are uncertain.

VAR-1.D
Identify questions to be answered about possible relationships in data. [Skill 1.A]

  • VAR-1.D.1 Apparent patterns and associations in data may be random or not.

Source: College Board AP Course and Exam Description

Do students who take more semesters to graduate earn higher starting salaries? Do children choose fruit more often after a healthy-food advert? A newspaper may claim a link from a handful of people. This unit gives you the tools to check: tables and graphs to see a pattern, $r$ to measure it, and a regression line to predict with it.

Two-variable data let us ask whether two characteristics are associated 关联 – whether knowing one tells you something about the other. An explanatory variable 解释变量 (the "input") may help predict a response variable 响应变量 (the "output"). Association is not the same as causation. Also, a pattern in a sample may be random: with few individuals, chance alone can produce an apparent association that would vanish in more data. Units 4 to 9 show how to judge whether a pattern is larger than chance would produce.

Vocabulary Train
English
associated/əˈsəʊsɪeɪtɪd/
explanatory variable/ekˈsplænətəri ˈveərɪəbl/
response variable/rɪˈspɒns ˈveərɪəbl/
2.2

Two Categorical Variables

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

UNC-1
Graphical representations and statistics allow us to identify and represent key features of data.

UNC-1.P
Compare numerical and graphical representations for two categorical variables. [Skill 2.D]

  • UNC-1.P.1 Side-by-side bar graphs, segmented bar graphs, and mosaic plots are examples of bar graphs for one categorical variable, broken down by categories of another categorical variable.
  • UNC-1.P.2 Graphical representations of two categorical variables can be used to compare distributions and/or determine if variables are associated.
  • UNC-1.P.3 A two-way table, also called a contingency table, is used to summarize two categorical variables. The entries in the cells can be frequency counts or relative frequencies.
  • UNC-1.P.4 A joint relative frequency is a cell frequency divided by the total for the entire table.

Source: College Board AP Course and Exam Description

A two-way table 双向表 (contingency table) counts individuals by two categorical variables at once. A marginal distribution 边缘分布 is a row or column total written as a fraction of the grand total (the totals themselves are just counts). Comparing the inside cells shows whether the variables are related. A joint relative frequency 联合相对频率 is one cell divided by the grand total: the proportion of all individuals who are in that row and that column.

Explore

A categorical breakdown

Each slice is one category's share of the whole.

Vocabulary Train
English
two-way table/tuː weɪ ˈteɪbl/
marginal distributions/ˈmɑːdʒɪnl ˌdɪstrɪˈbjuːʃnz/
joint relative frequency
2.3

Comparing Groups with Conditional Distributions

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

UNC-1
Graphical representations and statistics allow us to identify and represent key features of data.

UNC-1.Q
Calculate statistics for two categorical variables. [Skill 2.C]

  • UNC-1.Q.1 The marginal relative frequencies are the row and column totals in a two-way table divided by the total for the entire table.
  • UNC-1.Q.2 A conditional relative frequency is a relative frequency for a specific part of the contingency table (e.g., cell frequencies in a row divided by the total for that row).

UNC-1.R
Compare statistics for two categorical variables. [Skill 2.D]

  • UNC-1.R.1 Summary statistics for two categorical variables can be used to compare distributions and/or determine if variables are associated.

Source: College Board AP Course and Exam Description

A conditional distribution 条件分布 is the distribution of one variable within a fixed category of the other (found by dividing each cell by its row or column total). If the conditional distributions differ across groups, the two variables are associated; if they are the same, there is no association. Segmented bar charts 分段条形图 or mosaic plots display them. A mosaic plot 马赛克图 is a segmented bar graph whose bar widths are proportional to the group sizes, so it shows the marginal and the conditional distributions at once.

Worked example. A school records how $200$ students took a course and whether they passed.

Passed Failed Total
Online $60$ $40$ $100$
In person $75$ $25$ $100$
Total $135$ $65$ $200$
  • Marginal distribution of result: $\tfrac{135}{200}=0.675$ passed and $\tfrac{65}{200}=0.325$ failed.
  • Conditional distributions: online students passed at $\tfrac{60}{100}=0.60$; in-person students at $\tfrac{75}{100}=0.75$.

The conditional pass rates differ ($0.60$ vs $0.75$), so the format and the result are associated in these data. This alone does not show that the format causes the difference: students chose their format.

Divide by the correct total: “the proportion of online students who passed” uses the online total ($100$), while “the proportion of passes that were online” uses the pass total: $\tfrac{60}{135}\approx 0.44$.

Three proportions from the table above, for the same cell:

  • joint: $\tfrac{60}{200}=0.30$ of all students were online and passed;
  • conditional on format: $\tfrac{60}{100}=0.60$ of online students passed;
  • conditional on result: $\tfrac{60}{135}=0.44$ of students who passed were online.

When the FRQ asks you to "describe the effect" of a factor, compare conditional proportions across the groups and give the numbers.

A segmented bar chart compares the conditional distribution in each group
A segmented bar chart compares the conditional distribution in each group
Vocabulary Train
English
conditional distribution/kənˈdɪʃənl ˌdɪstrɪˈbjuːʃn/
Segmented bar charts/seɡˈmentɪd bɑː tʃɑːts/
mosaic plot
2.4

Scatterplots for Two Quantitative Variables

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

UNC-1
Graphical representations and statistics allow us to identify and represent key features of data.

UNC-1.S
Represent bivariate quantitative data using scatterplots. [Skill 2.B]

  • UNC-1.S.1 A bivariate quantitative data set consists of observations of two different quantitative variables made on individuals in a sample or population.
  • UNC-1.S.2 A scatterplot shows two numeric values for each observation, one corresponding to the value on the $x$-axis and one corresponding to the value on the $y$-axis.
  • UNC-1.S.3 An explanatory variable is a variable whose values are used to explain or predict corresponding values for the response variable.

DAT-1
Regression models may allow us to predict responses to changes in an explanatory variable.

DAT-1.A
Describe the characteristics of a scatter plot. [Skill 2.A]

  • DAT-1.A.1 A description of a scatter plot includes form, direction, strength, and unusual features.
  • DAT-1.A.2 The direction of the association shown in a scatterplot, if any, can be described as positive or negative.
  • DAT-1.A.3 A positive association means that as values of one variable increase, the values of the other variable tend to increase. A negative association means that as values of one variable increase, values of the other variable tend to decrease.
  • DAT-1.A.4 The form of the association shown in a scatterplot, if any, can be described as linear or non-linear to varying degrees.
  • DAT-1.A.5 The strength of the association is how closely the individual points follow a specific pattern, e.g., linear, and can be shown in a scatterplot. Strength can be described as strong, moderate, or weak.
  • DAT-1.A.6 Unusual features of a scatter plot include clusters of points or points with relatively large discrepancies between the value of the response variable and a predicted value for the response variable.

Source: College Board AP Course and Exam Description

A scatterplot 散点图 plots each individual as a point, explanatory variable on the $x$-axis and response on the $y$-axis. Describe it with DUFS: Direction (positive/negative), Unusual features (outliers, clusters), Form (linear or curved), and Strength (how tightly the points follow the pattern) – always in context.

Worked example. A scatterplot shows height and arm span for $12$ seniors. A full description: "There is a strong, positive, linear association between height and arm span for these seniors: taller seniors tend to have longer arm spans. There are no obvious outliers." Use "tend to": the pattern describes the group, not every pair of points.

A line of best fit runs through the middle of the scattered points
A line of best fit runs through the middle of the scattered points
Explore

A scatterplot with a linear trend

Drag to see how direction and strength change the cloud of points.

Vocabulary Train
English
scatterplot/ˈskætəplɒt/
2.5

Correlation

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

DAT-1
Regression models may allow us to predict responses to changes in an explanatory variable.

DAT-1.B
Determine the correlation for a linear relationship. [Skill 2.C]

  • DAT-1.B.1 The correlation, $r$, gives the direction and quantifies the strength of the linear association between two quantitative variables.
  • DAT-1.B.2 The correlation coefficient can be calculated by: $r = \dfrac{1}{n-1} \sum \left( \dfrac{x_i - \bar{x}}{s_x} \right) \left( \dfrac{y_i - \bar{y}}{s_y} \right)$. However, the most common way to determine $r$ is by using technology.
  • DAT-1.B.3 A correlation coefficient close to 1 or $-1$ does not necessarily mean that a linear model is appropriate.

DAT-1.C
Interpret the correlation for a linear relationship. [Skill 4.B]

  • DAT-1.C.1 The correlation, $r$, is unit-free, and always between $-1$ and 1, inclusive. A value of $r = 0$ indicates that there is no linear association. A value of $r = 1$ or $r = -1$ indicates that there is a perfect linear association.
  • DAT-1.C.2 A perceived or real relationship between two variables does not mean that changes in one variable cause changes in the other. That is, correlation does not necessarily imply causation.

Source: College Board AP Course and Exam Description

What r actually measures

The correlation coefficient 相关系数 $r$ measures the strength and direction of a linear relationship. It runs from $-1$ to $1$: near $\pm 1$ is strong linear, near $0$ is weak linear. $r$ has no units and does not change if you swap the variables. Warnings: $r$ only measures linear strength, it is not resistant to outliers, and a strong $r$ does not prove causation.

How $r$ is built. Change each $x$ and $y$ to a $z$-score, multiply the pairs, and average (dividing by $n-1$):

$$r=\frac{1}{n-1}\sum\left(\frac{x_i-\bar x}{s_x}\right)\left(\frac{y_i-\bar y}{s_y}\right).$$
Points in the upper-right and lower-left (both $z$-scores of the same sign) add positive products; points in the other two corners add negative ones. Because it uses $z$-scores, $r$ does not change if you change units (inches to centimetres) or add a constant to every value. $r=\pm1$ only when all points lie exactly on a line. A value of $r$ near $\pm1$ does not by itself show that a line is the right model: a smooth curve can also have $r=0.95$.

Positive correlation rises together; negative correlation moves in opposite directions
Positive correlation rises together; negative correlation moves in opposite directions
Explore

Strength of a linear relationship

Correlation $r$ runs from $-1$ to $1$: near $\pm1$ the points hug a line, near 0 they scatter. Change it and watch the cloud tighten or spread.

Vocabulary Train
English
correlation coefficient/ˌkɒrɪˈleɪʃn ˌkəʊɪˈfɪʃənt/
2.6

Linear Regression Models

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

DAT-1
Regression models may allow us to predict responses to changes in an explanatory variable.

DAT-1.D
Calculate a predicted response value using a linear regression model. [Skill 2.C]

  • DAT-1.D.1 A simple linear regression model is an equation that uses an explanatory variable, $x$, to predict the response variable, $y$.
  • DAT-1.D.2 The predicted response value, denoted by $\hat{y}$, is calculated as $\hat{y} = a + bx$, where $a$ is the $y$-intercept and $b$ is the slope of the regression line, and $x$ is the value of the explanatory variable.
  • DAT-1.D.3 Extrapolation is predicting a response value using a value for the explanatory variable that is beyond the interval of $x$-values used to determine the regression line. The predicted value is less reliable as an estimate the further we extrapolate.

Source: College Board AP Course and Exam Description

The least-squares regression line 最小二乘回归线 predicts the response: $\hat{y}=a+bx$, where $\hat{y}$ is the predicted response. The slope 斜率 $b$ is the predicted change in $y$ per one-unit increase in $x$; the $y$-intercept 纵截距 $a$ is the predicted $y$ when $x=0$. Interpret both in context and with units – a graded skill. Avoid extrapolation 外推 (predicting far outside the data).

From summary statistics, the line comes from two formulas: the slope is $b=r\,\dfrac{s_y}{s_x}$, and the line always passes through $(\bar x,\bar y)$, so $a=\bar y-b\bar x$.

Worked example. A study of hours studied ($x$) and test score ($y$) gives $\hat{y}=20+3x$. The slope means each extra hour of study is associated with a predicted $3$-point increase. A student who studies $5$ hours is predicted to score $\hat{y}=20+3(5)=35$. The intercept says a student who studies $0$ hours is predicted to score $20$. Sometimes the intercept has no sensible meaning: a car of length $0$ inches, or a house of $0$ square metres, does not exist.

Worked example: line from summary statistics. For another class, hours studied have $\bar x=6$ and $s_x=2$; scores have $\bar y=70$ and $s_y=10$; and $r=0.8$.

$$b=r\,\frac{s_y}{s_x}=0.8\times\frac{10}{2}=4, \qquad a=\bar y-b\bar x=70-4(6)=46.$$

So $\hat y=46+4x$: each extra hour is associated with a predicted $4$-point increase. Also $r^2=0.64$: $64\%$ of the variation in scores is explained by the linear relationship with hours studied.

Reading computer output. Exams often give regression output instead of an equation.

Predictor Coef SE Coef T P
Constant $12.40$ $3.10$ $4.00$ $0.001$
Semesters $1.85$ $0.42$ $4.40$ $0.000$

$S = 3.61\quad$ R-Sq $= 54.2\%$

The Constant row gives the intercept and the row named after the explanatory variable gives the slope: $\widehat{\text{salary}}=12.40+1.85(\text{semesters})$, in thousands of dollars. Interpretation of the slope: "For each extra semester, the predicted starting salary increases by about $\$1850$." $S$ is the standard deviation of the residuals: predictions are typically off by about $\$3610$. R-Sq is $r^2$. Since the slope is positive, $r=+\sqrt{0.542}=0.74$. (The SE, T and P columns are for inference in unit 9.)

Reading ŷ = a + bx: the slope is the predicted change per unit of x; the intercept is the prediction at x = 0
Reading ŷ = a + bx: the slope is the predicted change per unit of x; the intercept is the prediction at x = 0
Explore

Fit a least-squares line

A regression line is the best straight-line fit, minimising the squared vertical distances. Its slope predicts how $y$ changes per unit of $x$.

Vocabulary Train
English
least-squares regression line/liːst skweəz rɪˈɡreʃn laɪn/
slope/sləʊp/
y-intercept/waɪ ˌɪntəˈsept/
extrapolation/ekˈstræpəleɪʃn/
2.7

Residuals

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

DAT-1
Regression models may allow us to predict responses to changes in an explanatory variable.

DAT-1.E
Represent differences between measured and predicted responses using residual plots. [Skill 2.B]

  • DAT-1.E.1 The residual is the difference between the actual value and the predicted value: $\text{residual} = y - \hat{y}$.
  • DAT-1.E.2 A residual plot is a plot of residuals versus explanatory variable values or predicted response values.

DAT-1.F
Describe the form of association of bivariate data using residual plots. [Skill 2.A]

  • DAT-1.F.1 Apparent randomness in a residual plot for a linear model is evidence of a linear form to the association between the variables.
  • DAT-1.F.2 Residual plots can be used to investigate the appropriateness of a selected model.

Source: College Board AP Course and Exam Description

Least-squares regression

A residual 残差 is actual minus predicted, $y-\hat{y}$: how far a point sits above (+) or below (−) the line. A residual plot 残差图 graphs residuals against $x$. If it shows no pattern (random scatter), a linear model is appropriate; a curved or fanning pattern means the linear model is a poor fit.

Worked example. Continuing the study above, a student who studied $5$ hours actually scored $40$. The residual is $y-\hat{y}=40-35=+5$: the line under-predicted by $5$ points, so this point sits above the line. In context: "The student scored $5$ points higher than the line predicts for a student who studied $5$ hours." A residual close to $0$ means the line predicted that individual's response almost exactly.

A residual plot can put the residuals against $x$ or against the predicted values $\hat y$; both are read the same way. Look for curves (wrong form) and a fan shape (the spread of the residuals grows with $x$, so predictions are less reliable for large $x$).

Common mistakes. Computing predicted minus actual ($35-40=-5$): a residual is always actual minus predicted. Stating the slope as a certainty (“the score goes up by $3$”) instead of a predicted change, or without units and context. Interpreting the intercept when $x=0$ lies far outside the data.

Four datasets with identical r and regression line but four different shapes
A caution about $r$ and the line: all four datasets have the same $r=0.82$ and the same $\hat{y}=3.0+0.5x$, yet only the first is genuinely linear. The scatterplots barely differ — the residual plot below each is what exposes the curve, the outlier, and the high-leverage point.
Explore

Residuals = vertical gaps to the line

Each point's vertical distance from the line is its residual.

Vocabulary Train
English
residual/rɪˈsɪdʒuːəl/
residual plot/rɪˈsɪdʒuːəl plɒt/
2.8

Least-Squares Regression and Its Fit

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

DAT-1
Regression models may allow us to predict responses to changes in an explanatory variable.

DAT-1.G
Estimate parameters for the least-squares regression line model. [Skill 2.C]

  • DAT-1.G.1 The least-squares regression model minimizes the sum of the squares of the residuals and contains the point $(\bar{x}, \bar{y})$.
  • DAT-1.G.2 The slope, $b$, of the regression line can be calculated as $b = r \left( \dfrac{s_y}{s_x} \right)$ where $r$ is the correlation between $x$ and $y$, $s_y$ is the sample standard deviation of the response variable, $y$, and $s_x$ is the sample standard deviation of the explanatory variable, $x$.
  • DAT-1.G.3 Sometimes, the $y$-intercept of the line does not have a logical interpretation in context.
  • DAT-1.G.4 In simple linear regression, $r^2$ is the square of the correlation, $r$. It is also called the coefficient of determination. $r^2$ is the proportion of variation in the response variable that is explained by the explanatory variable in the model.

DAT-1.H
Interpret coefficients for the least-squares regression line model. [Skill 4.B]

  • DAT-1.H.1 The coefficients of the least-squares regression model are the estimated slope and $y$-intercept.
  • DAT-1.H.2 The slope is the amount that the predicted $y$-value changes for every unit increase in $x$.
  • DAT-1.H.3 The $y$-intercept value is the predicted value of the response variable when the explanatory variable is equal to $0$. The formula for the $y$-intercept, $a$, is $a = \bar{y} - b\bar{x}$.

Source: College Board AP Course and Exam Description

The least-squares line minimizes the sum of squared residuals
The least-squares line minimizes the sum of squared residuals

The line minimizes the sum of squared residuals. Its fit is measured by:

  • $s$, the standard deviation of the residuals – the typical prediction error, in the response's units.
  • $r^2$, the coefficient of determination 决定系数 – the proportion of the variation in $y$ that the linear model explains (a value between $0$ and $1$; multiply by $100$ to state it as a percent). Report it in context: “$r^2 = 0.81$ means 81% of the variation in $y$ is explained by the linear relationship with $x$.”

Common mistakes. Saying $r=0.8$ means “$80\%$ of the variation is explained”: that statement belongs to $r^2=0.64$. Calling $r\approx0$ “no relationship”: a strong curve can have $r$ near $0$. Saying a high $r$ or $r^2$ shows a linear model is right: only the residual plot shows that.

Explore

The best-fit least-squares line

The line that makes the total squared vertical gap smallest.

Vocabulary Train
English
coefficient of determination/ˌkəʊɪˈfɪʃənt ɒv dɪˌtɜːmɪˈneɪʃn/
2.9

Departures from Linearity

Syllabus
Enduring UnderstandingLearning ObjectiveEssential Knowledge

DAT-1
Regression models may allow us to predict responses to changes in an explanatory variable.

DAT-1.I
Identify influential points in regression. [Skill 2.A]

  • DAT-1.I.1 An outlier in regression is a point that does not follow the general trend shown in the rest of the data and has a large residual when the Least Squares Regression Line (LSRL) is calculated.
  • DAT-1.I.2 A high-leverage point in regression has a substantially larger or smaller $x$-value than the other observations have.
  • DAT-1.I.3 An influential point in regression is any point that, if removed, changes the relationship substantially. Examples include much different slope, $y$-intercept, and/or correlation. Outliers and high leverage points are often influential.

DAT-1.J
Calculate a predicted response using a least-squares regression line for a transformed data set. [Skill 2.C]

  • DAT-1.J.1 Transformations of variables, such as evaluating the natural logarithm of each value of the response variable or squaring each value of the explanatory variable, can be used to create transformed data sets, which may be more linear in form than the untransformed data.
  • DAT-1.J.2 Increased randomness in residual plots after transformation of data and/or movement of $r^2$ to a value closer to 1 offers evidence that the least-squares regression line for the transformed data is a more appropriate model to use to predict responses to the explanatory variable than the regression line for the untransformed data.

Source: College Board AP Course and Exam Description

Some points strongly affect the line. A high-leverage 高杠杆 point has an extreme $x$-value; an influential 有影响的 point noticeably changes the slope or $r$ when removed; an outlier here is a point with a large residual. When the pattern is curved, transform a variable (e.g. take a log) to straighten it, then fit a line to the transformed data.

Worked example (an influential point). Ten countries give a weak positive scatter with $r=0.30$. An eleventh country has an $x$-value far beyond the others, and it lies on the upward trend. Adding it pulls the line toward it and raises $r$ to $0.75$. This point has high leverage (extreme $x$) and is influential (it changes the slope and $r$ a lot), even though its residual is small. A point with a large residual but an ordinary $x$-value is an outlier, and it usually changes the slope much less.

Worked example (a transformation). A bacteria count grows quickly with time. The straight line for count against time has $r^2=0.86$, but its residual plot is a clear U-shape, so the linear model is wrong. Taking $\ln(\text{count})$ gives a residual plot with no pattern and $r^2=0.98$. More random residuals and an $r^2$ closer to $1$ are evidence that the transformed model fits better. Predict with it, then undo the log: if $\widehat{\ln(\text{count})}=3.9+0.32t$, then at $t=5$, $\widehat{\ln(\text{count})}=5.5$ and the predicted count is $e^{5.5}\approx245$.

Four panels. Top: bacteria count against time curves upward and a straight line fits poorly (r squared 0.86); its residual plot is U-shaped. Bottom: ln(count) against time is linear (r squared 0.98) and its residual plot is random scatter about 0
A log transformation turns a curved pattern into a straight one: compare the residual plots, not just $r^2$
Explore

An influential point swings the line

A far-out point off the trend can tilt the whole line.

Vocabulary Train
English
high-leverage/haɪ ˈliːvərɪdʒ/
influential/ˌɪnfluːˈenʃl/
2.9

Practice

Answer each before reading the answers below.

  1. Of 120 students, 50 play a sport, and 30 of those 50 are also in a music group. What proportion of sport players are in a music group?

  2. A scatterplot of hours slept against reaction time gives $r=-0.85$. Describe the relationship.

  3. A regression line is $\hat y=12+2.5x$. Predict $y$ when $x=8$, and find the residual for a point $(8,\ 29)$.

  4. The data in question 3 have $x$ values from 0 to 10. Why is predicting $y$ at $x=40$ risky?

  5. A student says: “The correlation is $0.9$, so $x$ causes $y$.” Correct the student.

  6. Computer output for predicting fuel use (litres per $100\ \text{km}$) from car length (inches) shows Constant $=-2.50$, Length $=0.0478$, R-Sq $=49.0\%$. Write the equation, and find and interpret the residual for a car $175$ inches long that uses $5.88$ litres per $100\ \text{km}$.

  7. A data set has $r=0.6$. Every $x$-value is converted from inches to centimetres. What happens to $r$ and to the slope?

  8. In a two-way table of $400$ voters, $90$ are under $30$ and support a proposal, and $150$ are under $30$ in total. Find the joint relative frequency of "under 30 and supports", and the proportion of under-30 voters who support.

2.9

Answers

  1. $30/50=0.60$. This is a conditional proportion: it uses only the sport players as the whole.

  2. A strong, negative, linear relationship: students who sleep more tend to have shorter reaction times.

  3. $\hat y=12+2.5(8)=32$. Residual $=y-\hat y=29-32=-3$; the point lies 3 units below the line.

  4. That is extrapolation: the pattern is known only for $x$ from 0 to 10, and nothing guarantees it continues to 40.

  5. Correlation measures the strength of a linear association, not causation. A lurking variable could drive both, or the link could run the other way. Only a randomized experiment supports a cause-and-effect claim.

  6. $\hat y=-2.50+0.0478x$. At $x=175$: $\hat y=-2.50+8.365=5.865$. Residual $=5.88-5.865=0.015$: the car uses only about $0.015$ litre per $100\ \text{km}$ more than predicted, so the line predicts it almost exactly.

  7. $r$ stays $0.6$ ($r$ has no units). The slope is divided by $2.54$, because each centimetre is a smaller step in $x$ than each inch.

  8. Joint: $\tfrac{90}{400}=0.225$. Conditional: $\tfrac{90}{150}=0.60$.

2.9

Exam tips

  • On a scatterplot describe direction, form, strength, and outliers; $r$ ranges $-1$ to $1$.
  • Correlation is not causation — a lurking variable can drive both.
  • Interpret the slope of the least-squares line in context (“per one unit of $x$, predicted $y$ changes by $b$”).
  • Check a residual plot: no pattern means a line fits; a curve means it does not. Avoid extrapolation.
  • $r^2$ is the fraction of variation in $y$ explained by the model.
  • Read the slope from the row named after the explanatory variable in computer output, and the intercept from Constant; $r$ takes the sign of the slope.
  • Choose between models by the residual plot first, then $r^2$.

Interactive lessons on this topic

Work through it step by step, with instant-check exercises.

Past Papers

More topics in AP Statistics

Log in or create account

IGCSE, A-Level & AP