12.1 Linear Equations

The chapter opens by fixing a convention. Linear regression for two variables is based on a linear equation with one independent variable, written y = a + bx — with the intercept first and the slope second, the reverse of the algebra form y = mx + b. Every formula in the rest of the chapter follows that convention, so reading a as the intercept and b as the slope from their positions rather than from their letters is what this section exists to establish. The graph of such an equation is a straight line, and any line that is not vertical can be described this way: b greater than zero slopes upward, b equal to zero is horizontal, and b less than zero slopes downward. Beyond the algebra, the section asks for something new — an interpretation of both numbers in the units of the problem, in complete sentences, which is exactly what sections 12.3 and 12.5 will demand of a fitted regression line.

Subject: Statistics · 64 slides · symbolic lesson

Open the interactive version of this deck

What this lesson covers

The lesson, slide by slide

1. Linear Equations

Title

Statistics · Chapter 12 — Linear Regression and Correlation

y = a + bx: two numbers, a straight line, and what each number means in the world

2. What this lesson gives you

Objectives

Chapter 12 asks whether two measured quantities are related, and if they are, how. Its main tool is a straight line drawn through data. Before you can fit a line to data, you need to read a line fluently, and that is this section's job.

Most of the arithmetic here is a single multiplication and an addition. What takes practice is the reading: which number is charged once and which is charged per unit, which variable depends on which, and what sentence each constant deserves. Sections 12.3 to 12.5 will ask exactly these questions about a fitted line.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, pp. 617-620 — the section this deck covers

3. Before anything new: a line from algebra

Warm-up

You have met straight lines in algebra. Recall the two facts about them you will use most, on a small example.

Discussion prompt

A plumber charges a call-out fee plus a fixed amount per hour. A 1-hour job costs 70 dollars and a 3-hour job costs 130 dollars. How much does each extra hour cost, and what is the call-out fee?

Those two numbers, a change per hour and an amount at zero hours, are the slope and the intercept of a line. In algebra you would write cost equals 30 x plus 40. This section writes the same line in a different order, and the reason for that order is the first thing to get straight.

Keep the plumber in mind. The habit you just used, finding the rate from a change and then backing up to zero, is exactly how you will check equations throughout the deck.

4. The form and its convention

Section

Part 1

5. Two variables, one rule

Concept

The chapter opens with questions like these: is a student's grade on the second exam related to the grade on the final? Does the labour charge on a repair depend on the hours worked? Each involves two numeric measurements taken on the same individual or event.

bivariate data — Data with two variables measured on each individual, such as hours of work and total cost for each job. The prefix bi means two. Data with many variables per individual is multivariate.

The simplest possible relationship between two variables is a straight line: every extra unit of one variable changes the other by the same fixed amount. A repair charge of an initial amount plus an hourly fee is exactly that. Real data are rarely this tidy, but a straight line is the model the whole chapter fits.

So this section is about exact lines, with no data and no scatter. Section 12.2 adds the data, Section 12.3 fits the best line to it, and Section 12.4 measures how well it fits. Everything those sections say about a fitted line is said in the language you learn here.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12 Introduction, p. 617 — bivariate data and linear regression with one independent variable

6. The statistics form: y equals a plus bx

Concept

Linear regression for two variables is built on a linear equation with one independent variable. The book writes it in this form:

\[ y = a + bx \]

Here a and b are constant numbers, fixed for a given line. The variable x is the independent variable, and y is the dependent variable. The words describe the direction of the work: you choose a value for x, substitute it, and the equation hands you y.

\[ x = 2: \quad y = a + b(2) \]

The order of the terms is deliberate. The constant a comes first and the term with x second. Statistics software, calculators and every formula in this chapter use the same order, so from now on, the number standing alone is a, and the number multiplying x is b.

linear equation (statistics form) — An equation y = a + bx, with a and b constants, x the independent variable and y the dependent variable. Its graph is a straight line.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 617 — the form y = a + bx

7. Reading y = a + bx piece by piece

Notation

Every symbol in the form has one job. Hover over each piece before you go on, because the rest of the chapter assumes you read it this way without thinking.

Annotate

On: \( y = a + b\,x \)

  • The dependent variable: the quantity that results, such as a total cost. Its value depends on the x you chose.
  • The y-intercept: the value of y when x = 0. It stands alone, with no x attached.
  • The slope: how much y changes when x increases by one unit. It is the number multiplying x.
  • The independent variable: the quantity you choose or that comes first, such as hours of work.

Notice that a and b are named by their positions, not by their size or sign. In y equals 31.50 plus 32x, a is 31.50 and b is 32. In y equals negative 0.125 minus 3.5x, a is negative 0.125 and b is negative 3.5, because the minus sign travels with the number it belongs to.

A quick way to find each one: cover the x term and what is left is a; cover a and what multiplies x is b.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 619 — b = slope and a = y-intercept

8. One line, two spellings

Concept

Algebra courses write a line as y equals m x plus b, with m the slope and b the intercept. Statistics writes the same line as y equals a plus b x. Put the two side by side for the same line:

\[ \text{algebra: } y = 2x + 3 \qquad \text{statistics: } y = 3 + 2x \]

Figure (svg): The line y equals 3 plus 2x drawn for x from minus 1 to 5. A dot at (0, 3) on the vertical axis is labelled intercept a equals 3. A small right triangle from (1, 5) runs one unit right and two units up to (2, 7), labelled run 1 and rise 2. Two captions above name the line in the statistics form y = 3 + 2x and the algebra form y = 2x + 3.

Same line, same two numbers. Only the order of the terms, and therefore which letter names which number, has changed.

Both describe the line in the figure: it crosses the vertical axis at 3 and climbs 2 for every 1 to the right. Nothing about the line has changed. What has changed is the meaning of the letter b.

\[ \text{algebra: } b = 3 \text{ (intercept)} \qquad \text{statistics: } b = 2 \text{ (slope)} \]

That clash is the single most common source of error in this chapter. The safe habit is to ignore the letters and read positions: the constant term is the intercept, the coefficient of x is the slope, in either spelling.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, pp. 617-619 — the form and the slope and y-intercept

9. Example 12.1: reading a and b off two equations

Worked example

The book gives two linear equations. For each one, identify the intercept a and the slope b, and say what the equation does to an x of 10.

\[ y = 3 + 2x \qquad y = -0.01 + 1.2x \]

The method is the same for both: find the term with no x, then the number multiplying x. Carry the sign along with each number, because the second equation's intercept is negative.

First equation: the term with no x

Why: it stands alone, so it is the intercept.

\[ a = 3 \]

First equation: the coefficient of x

Why: the number multiplying x is the slope.

\[ b = 2 \]

Second equation: the term with no x

Why: the minus sign belongs to the number.

\[ a = -0.01 \]

Second equation: the coefficient of x

Why: 1.2 multiplies x.

\[ b = 1.2 \]

Substitute x = 10 into the first

Why: multiply first, then add.

\[ y = 3 + 2(10) = 3 + 20 = 23 \]

Substitute x = 10 into the second

Why: the same two moves.

\[ y = -0.01 + 1.2(10) = -0.01 + 12 = 11.99 \]

In words: the first line starts at 3 and climbs 2 per unit, so ten units out it has climbed 20 to reach 23. The second starts just below zero and climbs 1.2 per unit, reaching 11.99. Both are lines because each is a constant plus a constant times x.

Check with the slope

Why: from x = 0 to x = 10, y must change by 10 times b.

\[ 23 - 3 = 20 = 10(2), \qquad 11.99 - (-0.01) = 12 = 10(1.2) \]

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 618 — Example 12.1

10. Trap: reading b as the intercept

Trap

The trap

Asked for the intercept of y equals 4 plus 7x, a first attempt remembers algebra:

\[ y = mx + b \]

\[ \Rightarrow \text{ intercept } = b = 7 \]

Wrong. That is the algebra letter, not the algebra position.

The fix

In the statistics form the constant comes first and is called a. The coefficient of x is b, the slope.

\[ y = 4 + 7x: \quad a = 4, \; b = 7 \]

Check by substituting x equals 0: y is 4, so the line crosses the axis at 4, not 7. Whenever you name an intercept, put x equal to zero and see what y does.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 619 — b = slope, a = y-intercept

11. What makes an equation linear

Concept

Not every equation in x and y is linear. An equation is linear when it can be rearranged into the form a plus b x: y on one side, and on the other a constant plus a constant times x, with x appearing only to the first power.

Anything else breaks it: x squared, x times y, the square root of x, x in a denominator or an exponent. Each of those makes the change in y depend on where you are, and that is what makes a graph bend.

\[ y = 10 + 5x \qquad \text{versus} \qquad y = 10 + 5x - 3x^2 \]

Figure (svg): Two graphs for x from 0 to 4. A straight cyan line, y equals 10 plus 5x, climbs steadily through the dots 10, 15, 20, 25, 30. An orange curve, y equals 10 plus 5x minus 3x squared, starts at the same point, rises a little to 12 at x equals 1, then bends down through 8, minus 2 and minus 18.

The straight line climbs by the same amount at every step. The squared term makes the steps change, so the graph bends: no single slope describes it.

The table of values shows the difference without any graph. For the line, each step of one in x adds exactly 5 to y. For the curve, the steps are 2, then negative 4, then negative 10, then negative 16. A changing step means a changing steepness, and no single number b can describe it.

That gives you a test you can run on any table: if equal steps in x give equal steps in y, the relationship is linear. You will use the same idea in Section 12.2 to judge whether a scatter of points looks linear at all.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations Practice, p. 651 — Exercise 6: is y = 10 + 5x − 3x² linear?

12. Exercise 7: rearranging into the form

Worked example

Which of these equations are linear? Rearrange each into y equals a plus b x if you can.

\[ y = 6x + 8, \quad y + 7 = 3x, \quad y - x = 8x^2, \quad 4y = 8 \]

The test is not whether the equation already looks like a plus b x; it is whether it can be made to look like it by legal moves on both sides. Solve each for y, one move at a time.

First: reorder the terms

Why: addition can be done in either order.

\[ y = 6x + 8 = 8 + 6x, \quad a = 8, \; b = 6 \]

Second: subtract 7 from both sides

Why: y is then on its own.

\[ y + 7 = 3x \Rightarrow y = -7 + 3x, \quad a = -7, \; b = 3 \]

Third: add x to both sides

Why: y on its own again.

\[ y - x = 8x^2 \Rightarrow y = x + 8x^2 \]

The x-squared term stays

Why: no legal move removes it, so this one is not linear.

\[ y = 0 + 1x + 8x^2 \quad \text{(not linear)} \]

Fourth: divide both sides by 4

Why: x does not appear at all.

\[ 4y = 8 \Rightarrow y = 2 = 2 + 0x, \quad a = 2, \; b = 0 \]

So three of the four are linear, which matches the book's answer. The fourth is the surprising one: y equals 2 has no x in it, yet it is linear, with slope zero. Its graph is a horizontal line, the middle case of the three pictures you will meet in Part 2.

Check the second at a point

Why: x = 3 should satisfy both versions.

\[ y = -7 + 3(3) = 2, \quad y + 7 = 9 = 3(3) \]

OpenStax Introductory Statistics 2e, §12.1 Linear Equations Practice, p. 651 — Exercise 7, answer on p. 672

13. Linear or not?

Sorting

For each equation, decide whether it can be rearranged into y equals a plus b x. Rearrange in your head first: move terms across, divide through, and look at the power on x.

Sort into buckets

Sort each equation by whether it is linear.

linear: becomes y = a + bx
y = −0.125 − 3.5x; 2y = 6 + 4x; y = 5; y − 1 = 0.5x
not linear
y = 10 + 5x − 3x²; y = 3/x; y = 4 + 2ˣ
L
Each can be written as a constant plus a constant times x: dividing 2y = 6 + 4x by 2 gives 3 + 2x, adding 1 gives 1 + 0.5x, and y = 5 is 5 + 0x.
N
An x squared, an x in the denominator, or an x in the exponent all make the step in y change as x changes, so no single slope exists.

The first item is Try It 12.1, and the answer is yes: a negative intercept and a negative slope are still constants, and the equation is already in the form. Signs never decide whether an equation is linear; only the way x appears does.

The constant equation y equals 5 belongs with the linear ones. It is the line with b equal to zero, and it matters later: a horizontal line through data says y does not change at all as x changes.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 618 — Try It 12.1; Practice Exercises 6-7, p. 651

14. Try It 12.2: a graph that is not a line

Counterexample

Try It 12.2 shows a graph instead of an equation, and asks whether it shows a linear equation. Exercise 8 does the same with another graph. Both are drawn below, each with a dashed chord joining two of its points.

Figure (svg): Two panels. Left: a curve like the book's Figure 12.3, rising slowly and then shooting up steeply between x equals 0 and 2, with a dashed straight chord between its ends that the curve sags below. Right: a U-shaped curve like Figure 12.27, the parabola y equals x squared from minus 3 to 3, with a dashed chord across the top that the curve dips far below.

A straight line lies exactly on any chord between two of its points. Both of these graphs pull away from their chords, so neither is a line.

Discussion prompt

Is either graph the graph of a linear equation? Give a reason you could check with a ruler.

The book's own reason for Try It 12.2 is short: the graph is not a straight line. The parabola of Exercise 8 is the graph of y equals x squared, the same kind of equation you sorted as not linear on the last slide. An equation and its graph always agree on this question.

Keep this test for Section 12.2. A scatter plot whose points follow a curve like these should not be summarised by a straight line, however good the arithmetic of the fit.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, pp. 618-619 — Try It 12.2 and Figure 12.3; Exercise 8, p. 652

15. The graph and the sign of b

Section

Part 2

16. Every non-vertical line, and only lines

Concept

The book makes two claims in one sentence. The graph of y equals a plus b x is a straight line. And any line that is not vertical can be described by such an equation.

The first claim follows from the steps you saw in Part 1: each extra unit of x adds the same b to y, so the graph climbs or falls at a constant rate, and a constant rate draws a straight line.

The second claim says the form is complete. Take any slanted or horizontal line, read where it crosses the vertical axis, read its rise per unit of run, and you have its a and its b. Two numbers are always enough.

\[ \text{intercept: } (0, a) \qquad \text{slope: } b = \frac{\text{rise}}{\text{run}} \]

That is why regression can work with just two numbers. Whatever straight-line trend data show, some pair a and b describes it, and Section 12.3's job is only to choose the best pair. The vertical lines are the exception, and the next slides deal with them.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 618 — the graph is a straight line; any non-vertical line

17. Example 12.2: graphing y = −1 + 2x

Worked example

Graph the equation y equals negative 1 plus 2x. The book draws it from x equals negative 2 to 10.

Two points determine a line, so the plan is to find two, plus a third as a check. The intercept is free: it can be read off the equation without any arithmetic. A second point needs one substitution.

Read the intercept

Why: the constant term, with its sign.

\[ a = -1 \Rightarrow (0, -1) \]

Read the slope

Why: the coefficient of x.

\[ b = 2 \]

Pick a second x and substitute

Why: x = 3 keeps the numbers small.

\[ y = -1 + 2(3) = -1 + 6 = 5 \Rightarrow (3, 5) \]

Find the right-hand end

Why: the book's graph stops at x = 10.

\[ y = -1 + 2(10) = -1 + 20 = 19 \Rightarrow (10, 19) \]

Find the left-hand end

Why: and starts at x = −2.

\[ y = -1 + 2(-2) = -1 - 4 = -5 \Rightarrow (-2, -5) \]

Watch the sign in that last substitution: 2 times negative 2 is negative 4, and negative 1 minus 4 is negative 5. Points to the left of the vertical axis are where sign slips happen, so it is worth writing the product in brackets every time.

Figure (svg): The line y equals minus 1 plus 2x for x from minus 2 to 10, on axes from minus 5 to 15 across and minus 5 to 25 up, matching the book's Figure 12.2. Dots mark (0, minus 1) on the vertical axis, (3, 5) and (10, 19).

Two points pin a line down. The intercept comes free from the equation; any second point comes from one substitution.

Draw a straight line through the points and stop at the ends. The line crosses the vertical axis just below the origin and climbs steeply, two units up for every unit across, which is why it reaches 19 by x equals 10. It crosses the horizontal axis at one half, where negative 1 plus 2x is zero.

Check the third point with the slope

Why: from (0, −1) to (10, 19) is 10 across, so it must be 20 up.

\[ 19 - (-1) = 20 = 10(2) = 10b \]

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 618 — Example 12.2 and Figure 12.2

18. The slope is a constant staircase

Intuition

The slope b answers one question: when x goes up by one, how much does y change? On the line y equals negative 1 plus 2x, walk along from the intercept one unit at a time.

Figure (svg): The line y equals minus 1 plus 2x from x equals 0 to 4. Under it, a staircase of four steps: each step runs one unit right, drawn yellow, and rises two units, drawn pink, landing back on the line at (1, 1), (2, 3), (3, 5) and (4, 7).

The steps are all the same size. That sameness is what makes the graph straight, and the rise per unit of run is the slope b.

Every step is the same: one to the right, two up. That is why the line is straight. If even one step were bigger than the others, the graph would bend at that point, which is exactly what happened to the curve with the squared term in Part 1.

\[ b = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1} = \frac{7 - 1}{4 - 1} = \frac{6}{3} = 2 \]

Because every step is equal, you can measure the slope between any two points of the line and you will always get the same number. Here the points at x equal to 1 and 4 give a rise of 6 over a run of 3, which is 2 again. In the next part you will use this to find b from two observed costs.

Keep the units in view too. If x were hours and y were dollars, the rise would be in dollars and the run in hours, so b would be in dollars per hour. A slope always carries y's units per one of x's units.

19. Three possible graphs, set by the sign of b

Concept

The book's Figure 12.4 sorts every line of the form into three cases, and the slope alone decides which. Here they are, drawn from three real equations:

Figure (svg): Three small graphs side by side, each on axes starting at zero. Left: y equals 2 plus 0.6x rises to the right, labelled b greater than 0. Middle: y equals 4 is flat, labelled b equals 0. Right: y equals 7 minus 0.6x falls to the right, labelled b less than 0.

Read the direction left to right, the way x increases. Only the sign of b decides which of the three pictures you get.

Always read the direction from left to right, the direction in which x increases. Read from right to left, every upward line looks downward, which is why the convention matters. The size of b sets the steepness; its sign sets the direction.

Later in the chapter the same three words describe data. A scatter that climbs to the right has a positive association, and its fitted slope is positive; a scatter with no trend gives a slope near zero. The picture you learn here is the picture you will look for in data.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 619 — Figure 12.4: three possible graphs of y = a + bx

20. What changing a does

Concept

If b controls the tilt, a controls the height. Hold the slope fixed at 2 and give the intercept four different values:

\[ y = -2 + 2x, \quad y = 0 + 2x, \quad y = 2 + 2x, \quad y = 4 + 2x \]

Figure (svg): Four parallel lines with slope 2 for x from minus 2 to 4: y equals minus 2 plus 2x, y equals 2x, y equals 2 plus 2x and y equals 4 plus 2x. Each crosses the vertical axis at its own a, marked with a dot at minus 2, 0, 2 and 4.

Same slope, different intercepts: the lines never meet. Changing a slides the line up or down and leaves its tilt alone.

The four lines are parallel. Each crosses the vertical axis at its own a, and each climbs at the same rate, so the vertical gap between any two of them is the same everywhere: the line with a equal to 4 is always 2 above the line with a equal to 2.

So the two constants do separate jobs. Changing a slides the whole line up or down without turning it. Changing b turns the line about its intercept without moving where it crosses the axis. No amount of changing a can make an upward line slope downward.

This is worth saying aloud because it is a common confusion: a bigger intercept does not make a line steeper. The line y equals 100 plus x is high but gentle; the line y equals 1 plus 100x is low at the axis but extremely steep.

21. Changing b: the line turns on a hinge

Picture it

The parallel lines showed a acting alone. Now hold a fixed at 2 and let b take five values. Every one of these lines has the same intercept, so every one passes through the point zero comma two.

\[ y = 2 + bx, \qquad b = -2, -1, 0, 1, 2 \]

Figure (svg): Five lines all passing through the point (0, 2) on the vertical axis, with slopes minus 2, minus 1, 0, 1 and 2, for x from minus 3 to 3. They fan out from that single point like spokes; the slope-0 line is horizontal at height 2. A yellow ring marks the shared point, the hinge.

Every line here has a = 2, so all of them pass through (0, 2). Changing b swings the line about that hinge without moving it.

Picture that shared point as a hinge with the line pinned to it. Turning the line about the hinge changes its slope and nothing else: positive b points the free end up to the right, negative b points it down, and b equal to zero leaves it level.

Put the two pictures together and you have the whole meaning of the two constants. The intercept is where the line is pinned to the vertical axis; the slope is the angle it is turned to. Any non-vertical line is one pin position and one angle, which is why two numbers always suffice.

In a pricing story the hinge is the one-time fee. Two tutors with the same fee but different hourly rates start from the same hinge and fan apart, exactly as Svetlana and Ethan will in Part 4.

22. Slide a and b and watch the line

Tweak it

Here is y equals a plus b x with both constants on sliders. Before moving anything, predict: which slider tilts the line, and which one lifts it?

Parameter explorer

Move a from −5 to 5 with b fixed, then move b from −3 to 3 with a fixed. Which slider changes where the line crosses the vertical axis, and which changes the direction? What does the line look like at b = 0?

\[ y = {a} + ({b})x \]

  • a — from -5 to 5: intercept a
  • b — from -3 to 3: slope b

What to notice: as b passes through zero, the line swings from rising to flat to falling, but its crossing point on the vertical axis stays put. As a changes, the crossing point moves and the angle never does.

Try one more experiment. Set b to a large value such as 3, then to a small one such as 0.25. Both rise, but the first rises twelve times as fast. The sign of b gives the direction; its size gives the steepness.

23. Why vertical lines are the exception

Concept

A vertical line such as x equals 3 is a perfectly good straight line, but no choice of a and b produces it. Two ways to see why:

Figure (svg): The vertical line x equals 3 on axes from minus 1 to 6. Two dots on it, at (3, 1) and (3, 4), are joined by a bracket labelled same x, two different y values. A note says no slope: the run is zero.

A vertical line gives one x many y values, so y is not a function of x and no single b exists. It is the one line y = a + bx cannot draw.

First, a vertical line pairs one x with infinitely many y values. The form y equals a plus b x gives exactly one y for each x, so it cannot draw a line that gives many.

Second, its slope would be a rise divided by a run of zero, and dividing by zero gives no number at all. There is no b to write down.

\[ b = \frac{4 - 1}{3 - 3} = \frac{3}{0} \quad \text{(undefined)} \]

In statistics this exception costs nothing. A vertical line would mean the independent variable never changes, and you cannot study how y responds to x if x is always 3. Every relationship the chapter studies has x varying, so every line it needs is non-vertical.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 618 — any line that is not vertical

24. Try It 12.1: graphing a line with two negative constants

Worked example

Try It 12.1 asks whether y equals negative 0.125 minus 3.5x is a linear equation. It is, and graphing it shows what its two negative constants do.

\[ y = -0.125 - 3.5x \]

Read the signs carefully: the minus in front of 3.5x belongs to the slope. Writing the equation as negative 0.125 plus negative 3.5 times x makes that explicit.

Rewrite with an explicit plus

Why: so the sign of b is visible.

\[ y = -0.125 + (-3.5)x \]

Read off a and b

Why: both are negative.

\[ a = -0.125, \quad b = -3.5 \]

Classify the shape

Why: b is below zero, so the line slopes downward.

\[ b < 0 \Rightarrow \text{downward to the right} \]

Second point at x = 1

Why: multiply, then add.

\[ y = -0.125 + (-3.5)(1) = -3.625 \]

Third point at x = 2

Why: the same two moves.

\[ y = -0.125 + (-3.5)(2) = -0.125 - 7 = -7.125 \]

The intercept is so close to zero that on a graph it is hard to tell from the origin. Plotting the points at x equal to 1 and 2 is what makes the line's position reliable; one point near the origin and a slope would leave the line wobbling.

Figure (svg): The line y equals minus 0.125 minus 3.5x for x from minus 1 to 3. It crosses the vertical axis just below zero, at minus 0.125, and falls steeply, through (1, minus 3.625) and (2, minus 7.125).

Negative numbers change where the line sits and which way it tilts, but not whether it is a line. The form a + bx is all that matters.

The line crosses the vertical axis an eighth of a unit below the origin and falls three and a half units for every unit to the right. Negative constants do not make an equation less linear; they only place and tilt the line.

Check the slope between the points

Why: rise over run from x = 1 to x = 2 must equal b.

\[ \frac{-7.125 - (-3.625)}{2 - 1} = \frac{-3.5}{1} = -3.5 = b \]

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 618 — Try It 12.1

25. Equation to picture

Matching

Match each equation with the description of its graph. Find the slope first, since it decides the direction, then use the intercept to tell apart two lines with the same direction.

Match the pairs

  • l1. y = 31.50 + 32x
  • l2. y = 200 − 5x
  • l3. 4y = 8
  • l4. y = −20 + 32x
  • r1. rises steeply, crossing the y-axis above zero
  • r2. falls, crossing the y-axis high up
  • r3. horizontal, at height 2
  • r4. rises steeply, crossing the y-axis below zero

Why: The slopes are 32, negative 5, 0 and 32, which gives the directions. Two lines rise at the same rate, so the intercepts settle them: 31.50 crosses above zero and negative 20 crosses below. Dividing 4y equals 8 by 4 gives y equals 2, a flat line.

The two lines with slope 32 are parallel: same tilt, different heights. Only the intercept separates them, which is exactly what the parallel-lines figure in this part showed.

Notice that y equals 200 minus 5x has a large intercept and a negative slope. Something that starts high and is used up at a steady rate, such as a balance being paid off, gives exactly this picture.

26. Reading a and b off a graph

Estimation

Often you are given only the graph. Here is a phone's battery charge, in percent, against hours since it was unplugged. Estimate the equation before computing anything.

Figure (svg): A grid with a falling line for a phone's battery charge: it crosses the vertical axis at 92 percent and passes through (4, 48), reaching 4 percent at 8 hours. Grid lines every hour across and every 10 percent up.

Read two points you can trust, ideally where the line crosses grid intersections, and compute the slope from them rather than from a squint.

Predict first

Which equation best describes the battery line?

  • y = 92 − 11x
  • y = 92 + 11x
  • y = −11 + 92x
  • y = 8 − 92x

Correct: y = 92 − 11x

Why: The line meets the vertical axis at 92, so a is 92. From (0, 92) to (4, 48) the charge falls 44 percentage points in 4 hours, so b is negative 44 over 4, which is negative 11. The line falls, so b must be negative.

\[ b = \frac{48 - 92}{4 - 0} = \frac{-44}{4} = -11 \]

Read it in context: the phone has 92 percent charge at the moment it is unplugged, and for each additional hour off the charger the charge drops by 11 percentage points. By 8 hours the line is down to 4 percent, so the model says the phone dies a little after 8 hours.

Two quick eliminations before any arithmetic: the line falls, which rules out every positive slope, and it crosses the axis high up, which rules out a small or negative intercept. The sign and the starting height together often leave only one candidate.

27. Order the lines by steepness and direction

Ranking

Put these four lines in order, from the one that falls most steeply to the one that rises most steeply. Only the slopes matter; the intercepts are there to distract you.

Put in order

Order from the steepest downward line to the steepest upward line.

  1. y = 50 − 4x
  2. y = −30 − 0.5x
  3. y = 1000
  4. y = −2 + 3x

Why: The slopes are negative 4, negative 0.5, 0 and 3. On a number line those run from the most negative to the most positive, which is the same as from the steepest fall, through a gentle fall and a flat line, to a rise.

The intercepts would put these in a completely different order: 1000, 50, negative 2, negative 30. Sorting by intercept tells you which line is highest where it crosses the vertical axis, and nothing about how it moves after that.

Ordering by slope is the same as ordering the slopes on a number line. That is worth remembering for Section 12.3: a fitted slope of negative 4 describes a stronger downward trend than one of negative 0.5, even though negative 0.5 is the larger number.

28. Find the error: a line graphed from its equation

Error analysis

Someone graphs y equals 12 minus 3x and writes this justification. The graph that results is wrong in two places.

Annotate

On: \( y = 12 - 3x: \; (12, 0), \; \text{then up } 3 \text{ per } 1 \)

  • The intercept a = 12 is a y value at x = 0, so the point is (0, 12), on the vertical axis, not (12, 0).
  • The coefficient of x is −3, not 3. The minus sign belongs to the slope, so the line goes down 3 per unit.
  • Plot (0, 12), then step right 1 and down 3 to (1, 9). Check: x = 4 gives 12 − 12 = 0.
  • Substitute any x into the equation and confirm the point is on the line drawn. One substitution exposes both errors.

Both mistakes come from reading the equation by appearance instead of by position. The intercept is the value of y at x equal to zero, so it is always a point of the form zero comma a. And a sign in front of the x term belongs to b.

The quickest defence is a substitution. Had the graph been tested at x equals 1, the equation gives 9, while the drawn line, starting at 12 on the horizontal axis and rising, gives nothing near 9. A graph and its equation must agree at every point.

29. Naming the variables and building the equation

Section

Part 3

30. Which variable is independent?

Concept

The book describes the roles by how you use the equation: you choose a value for the independent variable and solve for the dependent one. In a story, ask which quantity comes first or is controlled, and which one results from it.

The phrase in terms of is the most reliable signal. Express the total cost in terms of the number of hours means cost is y and hours is x: cost is written using hours. The quantity after in terms of is always x.

\[ \text{total cost} = a + b(\text{number of hours}) \]

Other signals: y depends on x, y is determined by x, y varies with x, y responds to x. In each, the quantity that does the depending is y. Time, age, amounts you choose to buy, and amounts of a treatment are usually x; totals, costs, scores and outcomes are usually y.

The choice matters more in statistics than in algebra. In Section 12.3 the fitted line is built to predict y from x, and the line for predicting x from y is a different line. So naming the roles is not a formality; it decides which line you will compute.

independent variable — The variable x, chosen or measured first; its values are substituted into the equation.

dependent variable — The variable y, the result; its value is calculated from x.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 617 — x is the independent variable and y is the dependent variable

31. Homework 57: independent or dependent?

Sorting

Homework exercise 57 describes five studies. For each quantity, decide whether it plays the independent or the dependent role. Ask which quantity is thought to cause, come before, or be used to predict the other.

Sort into buckets

Sort each quantity by its role in its study.

independent (x)
age of a driver (fatality study); number of family members; age of the applicant; power consumption
dependent (y)
fatalities per 100,000 drivers; weekly grocery bill; life insurance premium; utility bill
x
Each is the quantity the other is based on: the premium is based on age, the bill on consumption, the grocery bill on family size, fatalities are compared across ages.
y
Each is the outcome being explained: it changes in response to the other quantity, and it is what you would compute from the equation.

The book's answer key lists these pairs, with one slip: for part (d) it names the dependent variable as utility, when the quantity that varies is the utility bill. Name variables as measurable quantities, with units, never as a vague topic.

Part (e) of the exercise asks about education and the crime rate in a population: years of education is x and the crime rate is y. Calling one variable independent is a statement about the study's question, not proof that x causes y. That distinction returns in Section 12.3.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations Homework, p. 658 — Exercise 57; answers p. 674

32. Trap: putting the result on the x side

Trap

The trap

For the tax business, a first attempt sets up the variables like this:

\[ x = \text{total cost} \]

\[ y = \text{hours of work} \]

Wrong. The cost is what results.

The fix

The problem asks for the cost in terms of the hours, so hours is x and cost is y.

\[ x = \text{hours}, \; y = \text{cost} \]

\[ y = 31.50 + 32x \]

Reversing the roles makes every interpretation sentence come out backwards: the slope would be hours per dollar. In regression the roles are not interchangeable, so settle them before writing any equation.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 619 — Example 12.3

33. The fixed-plus-rate shape

Concept

Almost every situation in this section has the same structure: an amount paid once, plus an amount paid for each unit of something. That structure is a linear equation, with the one-time amount as a and the per-unit amount as b.

\[ \text{total} = \underbrace{\text{one-time amount}}_{a} + \underbrace{\text{amount per unit}}_{b} \times \text{units} \]

The language gives the constants away. Words like fee, one-time charge, up-front, base or starting amount mark the intercept. The word per, or each, or for every, marks the slope: 32 dollars per hour, 20 dollars per student, 5 dollars each day.

Why does this produce a straight line? Because the one-time amount never changes and every unit costs exactly the same. Double the units and the per-unit part doubles, while the one-time part stays put. That is a constant rate on top of a constant start.

Notice the total does not double when the units double. Two hours of tax work cost 95.50 dollars and four hours cost 159.50, not 191. The one-time charge is paid once, so totals for a line with a nonzero intercept are never proportional to x.

34. Example 12.3: the tax-return business

Worked example

A local small business completes federal tax returns. The rate is 32 dollars per hour plus a 31.50-dollar one-time charge. The total cost depends on the number of hours the job takes. Find the equation for the total cost in terms of the number of hours.

The plan follows the fixed-plus-rate shape: name the variables first, then sort the two amounts into the one charged once and the one charged per hour, and assemble.

Name x

Why: the problem says in terms of the number of hours.

\[ x = \text{number of hours to complete the job} \]

Name y

Why: the quantity that results.

\[ y = \text{total cost to the customer, in dollars} \]

The fixed part

Why: charged once, whatever x is.

\[ a = 31.50 \]

The hourly part

Why: 32 dollars for each of the x hours.

\[ (32)(x) = 32x \]

Add the two parts

Why: total = fixed + hourly.

\[ y = 31.50 + 32x \]

Notice how the book reasons its way to the hourly part: if the job takes x hours, then 32 times x is the cost of the processing alone. Writing that product out in words first, before any symbols, is what keeps the two charges from trading places.

Figure (svg): Bars for jobs of 1 to 5 hours. Each bar has an orange base of height 31.50 dollars, the one-time charge, and a blue part on top of 32 dollars per hour, so the totals are 63.50, 95.50, 127.50, 159.50 and 191.50. The line y equals 31.50 plus 32x runs through the bar tops and meets the vertical axis at 31.50.

Every bar carries the same orange base; only the blue part grows, by 32 dollars an hour. The line through the tops starts at the base height.

In context: a customer pays 31.50 dollars just for the job to be opened, and then 32 dollars for every hour of work. A two-hour return costs 95.50 dollars and a five-hour return costs 191.50 dollars.

Check at two hours, computed both ways

Why: the story and the equation must give the same cost.

\[ 31.50 + 32 + 32 = 95.50, \quad 31.50 + 32(2) = 95.50 \]

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 619 — Example 12.3

35. Try It 12.3: Emma's hang-gliding classes

Fill the middle

Emma's Extreme Sports pays its hang-gliding instructors a fee of 50 dollars per class as well as 20 dollars per student in the class. The total Emma pays depends on the number of students. Fill in the equation for one class.

Careful: both amounts use the word per. The 50 dollars is per class, but you are pricing one class, so it is paid once. The 20 dollars is per student, and the number of students is what varies.

Fill in the blanks

y = 50 + 20x, \qquad x = 10: \; y = 250

Why: For one class the 50-dollar fee is paid once, so it is the intercept; each student adds 20 dollars, so 20 is the slope. Ten students cost 50 plus 20 times 10, which is 250 dollars.

Figure (svg): Dots at whole numbers of students from 0 to 12, on the line y equals 50 plus 20x. The dot at 0 students sits at 50 dollars; the dot at 10 students at 250 dollars. A bracket marks the 50-dollar class fee and a step marks the 20 dollars each extra student adds.

Students come in whole numbers, so the real graph is a row of dots. They all lie on one line, which is why the linear equation describes them.

The graph is a row of dots because there is no such thing as half a student. The linear equation still describes every dot exactly. In regression you will often fit a line to a variable that only takes whole values, and the line is read the same way.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 619 — Try It 12.3

36. Find the error: a check that cannot fail

Error analysis

Here is Emma's equation written with the constants swapped, then checked at one student. Find what went wrong and why the check missed it.

The check looks responsible: substitute a value, compare with the story, tick. Before reading the notes, work out what the story says one student should cost, and ask whether that number could tell the right equation from the wrong one.

Annotate

On: \( y = 20 + 50x; \; x = 1: \; 20 + 50 = 70 \; \checkmark \)

  • The 50-dollar class fee is charged once and the 20 dollars is per student, so the equation is y = 50 + 20x.
  • At one unit, a + b·1 = b + a·1 for any a and b, so a swapped equation always passes this test.
  • The right answer for one student is also 70, so the check confirms nothing. It cannot tell the two equations apart.
  • Check at x = 0 (the fee alone, 50) or a larger x: at 10 students the swap gives 520 instead of 250.

Figure (svg): Two lines for x from 0 to 10 students. The correct line y equals 50 plus 20x starts at 50 and rises gently to 250. The swapped line y equals 20 plus 50x starts at 20 and rises steeply to 520. They cross at x equals 1, where both give 70, marked with a yellow dot.

Any two lines that differ only by swapping a and b meet at x = 1, because a + b·1 = b + a·1. Test at a value other than one.

This is the reason the pattern at the end of the deck says to check at a value other than 0 or 1. At zero only the intercept is tested; at one the two constants are interchangeable. Any value such as 2 or 10 tests both at once.

37. Exercises 1-3: renting SCUBA gear

Worked example

A vacation resort rents SCUBA equipment to certified divers. It charges an up-front fee of 25 dollars and another fee of 12.50 dollars an hour. Name the variables, find the equation for the total fee in terms of hours, and graph it.

Same shape as the tax business, with one new feature: the hourly rate is not a whole number, so watch the decimal when you substitute.

Name the variables

Why: the fee depends on how long the gear is out.

\[ x = \text{hours rented}, \quad y = \text{total fee (dollars)} \]

Sort the amounts

Why: up-front is once; per hour is the rate.

\[ a = 25, \quad b = 12.50 \]

Write the equation

Why: intercept first, slope second.

\[ y = 25 + 12.50x \]

Exercise 3 asks for a graph, so you need points. Choose values of x that make the decimal easy: 12.50 times an even number of hours is a whole number of dollars, which keeps the plotted points on clean grid lines.

A point at four hours

Why: for the graph.

\[ y = 25 + 12.50(4) = 25 + 50 = 75 \]

A point at eight hours

Why: the far end of the graph.

\[ y = 25 + 12.50(8) = 25 + 100 = 125 \]

Figure (svg): The line y equals 25 plus 12.50x for x from 0 to 8 hours of rental. It starts at 25 dollars on the vertical axis and reaches 125 dollars at 8 hours. Dots mark 0, 4 and 8 hours: 25, 75 and 125 dollars.

Eight hours of diving costs five times the up-front fee, but it took 100 dollars of hourly charges to get there: 12.50 dollars at a time.

In context: renting the gear costs 25 dollars before any diving, plus 12.50 dollars for each hour it is out. A half-day of four hours costs 75 dollars; a full eight-hour day costs 125 dollars. The book's answer to Exercise 1 names the dependent variable as the fee amount and the independent variable as time.

Check with the slope between the two points

Why: four more hours at 12.50 must add 50.

\[ 125 - 75 = 50 = 4(12.50) \]

OpenStax Introductory Statistics 2e, §12.1 Linear Equations Practice, p. 651 — Exercises 1-3; answer to Exercise 1 on p. 672

38. Exercises 4-5: a late credit-card payment

Worked example

A credit card company charges 10 dollars when a payment is late, and 5 dollars a day for each day it remains unpaid. Find the equation for the total fee in terms of days late, and graph it.

Here the variable counts whole days, so the graph will be dots. Name the variables, sort the two charges, then find a few points to plot.

Name the variables

Why: the fee grows with the number of days.

\[ x = \text{days late}, \quad y = \text{total fee (dollars)} \]

Sort the charges

Why: the late charge is once; 5 dollars is per day.

\[ a = 10, \quad b = 5 \]

Write the equation

Why: intercept first.

\[ y = 10 + 5x \]

One week late

Why: substitute 7.

\[ y = 10 + 5(7) = 10 + 35 = 45 \]

A month late

Why: substitute 30.

\[ y = 10 + 5(30) = 10 + 150 = 160 \]

Because the fee is charged by whole days, x only takes the values 0, 1, 2 and so on. Half a day late is not something this rule prices, so the graph below draws one dot per day rather than a solid line, though every dot sits on the line.

Figure (svg): Dots for each whole day late from 0 to 30, on the line y equals 10 plus 5x. Day 0 sits at 10 dollars, day 7 at 45 dollars and day 30 at 160 dollars, the three marked in yellow.

A fee charged by the whole day gives a row of dots, not a solid line. The equation still holds at every dot, and the dots climb 5 dollars at a time.

In context: being late at all costs 10 dollars, and every further day costs 5 more. A week late costs 45 dollars and a month late costs 160 dollars, sixteen times the original late charge. The steady 5-dollar daily rate is what makes a long delay so expensive.

Check the month from the week

Why: 23 more days at 5 dollars each.

\[ 45 + 23(5) = 45 + 115 = 160 \]

OpenStax Introductory Statistics 2e, §12.1 Linear Equations Practice, p. 651 — Exercises 4-5

39. Two observed costs: finding a and b

Worked example

Sometimes you are not told the rates, only some results. A customer of an unnamed tax business pays 95.50 dollars for a 2-hour return; another pays 159.50 dollars for a 4-hour return. Assuming a fixed charge plus an hourly rate, find the equation.

Two points fix a line, and the staircase idea gives the slope: divide the change in cost by the change in hours. Then walk back from either point to x equals zero to get the intercept.

Write the two points

Why: (hours, cost).

\[ (2, 95.50), \quad (4, 159.50) \]

The change in each variable

Why: second point minus first.

\[ \Delta y = 159.50 - 95.50 = 64, \quad \Delta x = 4 - 2 = 2 \]

Slope: rise over run

Why: dollars per hour.

\[ b = \frac{64}{2} = 32 \]

Put one point into y = a + bx

Why: the first point.

\[ 95.50 = a + 32(2) = a + 64 \]

Solve for a

Why: subtract 64 from both sides.

\[ a = 95.50 - 64 = 31.50 \]

This only works because the costs sit exactly on a line. With real data, a third customer would rarely fall exactly on the line through the first two, and different pairs of points would give different slopes. Choosing one line for scattered points is precisely the problem Section 12.3 solves.

Figure (svg): Two observed jobs plotted as yellow dots: 2 hours costing 95.50 dollars and 4 hours costing 159.50 dollars. A right triangle between them shows a run of 2 hours and a rise of 64 dollars. The line through them is extended back, dashed, to the vertical axis at 31.50.

The slope comes from the triangle between the two jobs. Walking the line back two hours from the first job lands on the intercept.

So the business is Example 12.3's: a 31.50-dollar charge and 32 dollars per hour. Notice what you did to find a: you removed two hours' worth of charges from the 2-hour price, leaving the cost of zero hours. That is the meaning of the intercept, used as a method.

Check with the other point

Why: the equation must also give the 4-hour price.

\[ 31.50 + 32(4) = 31.50 + 128 = 159.50 \]

40. Story, table, graph and equation: four views of one line

Picture it

A linear relationship can be shown four ways, and fluent reading means moving between them without effort. Here is the SCUBA rental in all four at once.

viewwhat it showswhere a iswhere b is
story25 dollars up front, 12.50 dollars an hourthe one-time amountthe per-hour amount
tablex = 0, 1, 2, 3 gives y = 25, 37.50, 50, 62.50the y beside x = 0the constant step in y
grapha straight line rising to the rightthe height at the vertical axisthe rise for each unit of run
equationy = 25 + 12.50xthe constant termthe coefficient of x

Figure (svg): Left: a table of the SCUBA fee, hours 0, 1, 2, 3 against fees 25.00, 37.50, 50.00, 62.50, with a pink arrow between each pair of rows labelled plus 12.50, and a note that a is the fee beside x equals 0. Right: the same four points on a graph, joined by a staircase whose every step runs one hour right and climbs 12.50 dollars.

The constant step down the table and the equal stairs on the graph are the same number, b. The first row of the table and the start of the stairs are a.

Read the table column carefully: the y values go 25, 37.50, 50, 62.50, each 12.50 more than the last. A constant step down a table is the slope; the starting entry at x equal to zero is the intercept. If a table skips from x equals 2 to x equals 5, divide the change in y by 3 to recover the step.

Each view catches a different mistake. The story catches a swapped a and b, since a per-hour amount cannot be the start. The table catches arithmetic slips. The graph catches a wrong sign at a glance. The equation is what you compute with, so check it against at least one other view.

OpenStax Introductory Business Statistics 2e, §13.3 Linear Equations §13.3 Linear Equations — the same convention defined algebraically, numerically and graphically

41. Before writing anything: the piece-rate plan

Step zero

Homework 58 describes an incentive plan for loan officers. Below 80 percent of goal there is no incentive. From 80 percent, an officer earns 4,000 dollars, with 125 dollars added for each percentage point from 81 to 99 percent. Higher tiers start at 100 and 120 percent.

Discussion prompt

Before writing an equation for an officer who reaches 95 percent of goal: which tier applies, what will you call x, and what choice of x makes the intercept mean something?

The step most people skip is the choice of x. The rule is the same line either way, but the intercept you get, and whether it can be interpreted, depends on where x starts. The next slide works the problem both ways so you can compare.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations Homework, p. 658 — Exercise 58 and Table 12.16

42. Homework 58: the piece-rate incentive, two ways

Worked example

Write the linear function for an officer in the 80-to-99 percent tier, interpret its intercept and slope, and find the incentive at 95 percent.

First choice: x = points above 80

Why: so x = 0 is exactly 80 percent.

\[ y = 4000 + 125x \]

95 percent is 15 points above 80

Why: subtract the starting percentage.

\[ x = 95 - 80 = 15 \]

Substitute

Why: multiply, then add.

\[ y = 4000 + 125(15) = 4000 + 1875 = 5875 \]

Second choice: x = raw percentage

Why: replace x by x minus 80 in the first equation.

\[ y = 4000 + 125(x - 80) \]

Distribute and collect constants

Why: 125 times 80 is 10,000.

\[ y = 4000 - 10000 + 125x = -6000 + 125x \]

Figure (svg): Two panels. Left: x is percentage points above 80, from 0 to 19; the line y equals 4000 plus 125x starts at 4,000 dollars and reaches 6,375, with the point for 95 percent, x equals 15, at 5,875 marked. Right: x is the raw percentage of goal from 0 to 100; the same rule written y equals minus 6000 plus 125x is solid only from 80 to 99 and dashed back to an intercept of minus 6,000 at x equals 0, a place the plan never reaches.

Both panels draw the same incentive. Measuring x from 80 makes the intercept a real payment; measuring it from 0 makes the intercept a number no officer is ever paid.

Interpretation: in both versions the slope is 125 dollars of incentive for each extra percentage point of goal. In the first version the intercept is meaningful: an officer at exactly 80 percent receives 4,000 dollars. In the second it is negative 6,000 dollars at zero percent of goal, which is not a payment anyone receives; it is just where the line would cross the axis if extended far outside the plan.

Check the second version at 95 percent

Why: both versions must give the same incentive.

\[ -6000 + 125(95) = -6000 + 11875 = 5875 \]

OpenStax Introductory Statistics 2e, §12.1 Linear Equations Homework, p. 658 — Exercise 58 (no printed answer; computed here)

43. Where else the fixed-plus-rate shape lives

Real world

The section's examples are all bills, but the shape is everywhere: a start, plus a steady rate. Testing a real price structure against it is good practice in deciding when a line is the right model.

Discussion prompt

For each, write y = a + bx with units if it fits, or say why it does not: a taxi with a 3.50-dollar flag fall and 2.25 dollars per mile; a phone plan of 40 dollars a month with unlimited calls; a gym charging 25 dollars a visit for the first 10 visits a month and nothing after that.

The gym is the instructive one. A rule that changes rate partway along is made of straight pieces, and one line describes only one piece. The same caution applies to data: a fitted line describes the range where one rate holds, and you will see in Section 12.5 how badly predictions fail outside it.

The phone plan shows that b equal to zero is a real situation, not a curiosity. A flat line says the outcome is unaffected by the input, which is itself a finding.

44. Interpreting in context

Section

Part 4

45. Interpreting the slope: a sentence with two units

Concept

Finding b is arithmetic; saying what it means is statistics. The slope is the change in y for each one-unit increase in x, so its interpretation always has this skeleton:

\[ \text{For each additional } [\text{unit of } x], \; [y] \text{ increases by } b \; [\text{units of } y]. \]

Fill it in for the tax business: for each additional hour of work, the total cost increases by 32 dollars. Two units appear, hours and dollars, because the slope is a rate: 32 dollars per hour.

If b is negative the sentence says decreases, with the size of b: for each additional year, the car's value decreases by 2,400 dollars. Do not write increases by negative 2,400; say the direction in words.

The book's phrasing for Svetlana is a little different, for each hour she tutors, she earns 15 dollars, but the content is the same: a per-unit change. A sentence that gives b without its x unit, such as the cost is 32 dollars, is incomplete and usually wrong, because it reads as a total.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, pp. 619-620 — the slope, and Example 12.4's interpretation

46. Interpreting the intercept: what y is when x is zero

Concept

The intercept is the value of y when x equals zero, so its sentence always names that situation:

\[ \text{When } [x \text{ is zero}], \; [y] \text{ is } a \; [\text{units of } y]. \]

For the tax business: when the job takes zero hours, the cost is 31.50 dollars, the one-time charge. In the fixed-plus-rate stories, the intercept is always the one-time amount, because zero units means only the one-time amount has been paid.

Saying when x is zero in context matters. For Svetlana, x equal to zero means at the start of the session, before any tutoring. For the credit card, it means the moment the payment becomes late. Those phrases make the intercept a fact about the world rather than a point on an axis.

The intercept has only y's units, never a per. The slope has y's units per x's unit. Mixing those up, such as calling 31.50 dollars per hour, is a quick sign that the two constants have been swapped.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 619 — the y-intercept is the y coordinate of the point (0, a)

47. Decoding the units of a and b

Notation

Units are the most reliable check on an interpretation. Here are the units carried by each part of the tax equation; hover over each.

Annotate

On: \( \underbrace{y}_{\$} = \underbrace{31.50}_{\$} + \underbrace{32}_{\$/\text{hr}}\,\underbrace{x}_{\text{hr}} \)

  • The dependent variable carries the outcome's units: dollars of total cost.
  • The intercept is a value of y, so it has y's units alone. It is added to y, so it must match.
  • The slope is a rise over a run: dollars of y per hour of x. That is why it is a rate.
  • When b multiplies x, the hours cancel and leave dollars, matching y and a.

The cancelling is the whole check. Dollars per hour times hours is dollars, which can be added to the 31.50 dollars and equals y. If you had swapped the constants, you would be adding dollars per hour to dollars, and the units would refuse to combine.

\[ \frac{\$}{\text{hr}} \times \text{hr} = \$ \]

Carry this into every interpretation you write. Say the intercept with y's unit alone, and say the slope with y's unit per x's unit. If a sentence you have written puts the units the other way round, the sentence is describing the wrong constant.

48. Example 12.4: Svetlana's tutoring

Worked example

Svetlana tutors to make extra money for college. For each session she charges a one-time fee of 25 dollars plus 15 dollars per hour of tutoring. Her earnings for a session are y equals 25 plus 15x. Name the variables, give the intercept and slope, and interpret them in complete sentences.

\[ y = 25 + 15x \]

The four parts of the answer follow the order of the flow you will see at the end of the deck: variables first, then each constant, then a sentence for each in context.

The independent variable

Why: the quantity she varies, session by session.

\[ x = \text{hours Svetlana tutors in a session} \]

The dependent variable

Why: the amount that results.

\[ y = \text{amount, in dollars, she earns for the session} \]

The intercept

Why: the constant term.

\[ a = 25 \text{ dollars} \]

The slope

Why: the coefficient of x.

\[ b = 15 \text{ dollars per hour} \]

Be precise about x. It is the hours in one session, not her hours over a term, because the 25-dollar fee is charged once per session. Over a term of many sessions the fee is paid many times, and one line no longer describes the total.

Figure (svg): The line y equals 25 plus 15x for x from 0 to 5 hours. The dot at (0, 25) is labelled the 25-dollar fee, charged at the start. Steps of one hour right and 15 dollars up climb from 25 to 40, 55, 70 and 85, each rise labelled plus 15.

The intercept is what a session is worth before any tutoring happens. Each hour adds the same 15 dollars: that constant step is the slope.

Interpretation of the intercept: at the start of a tutoring session, before any hours are worked, Svetlana charges a one-time fee of 25 dollars. Interpretation of the slope: for each hour she tutors, Svetlana earns 15 dollars more. These are the book's two sentences, and each names its units.

Check at three hours

Why: the story says fee plus three hourly charges.

\[ 25 + 15 + 15 + 15 = 70 = 25 + 15(3) \]

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 620 — Example 12.4

49. Try It 12.4: Ethan's appliance repairs

Worked example

Ethan repairs household appliances. For each visit he charges 25 dollars plus 20 dollars per hour of work. His earnings per visit are y equals 25 plus 20x. Name the variables, give the intercept and slope, and interpret both.

\[ y = 25 + 20x \]

Name the variables

Why: hours vary from visit to visit; earnings result.

\[ x = \text{hours of work on a visit}, \quad y = \text{dollars earned per visit} \]

The intercept

Why: the constant term.

\[ a = 25 \]

The slope

Why: the coefficient of x.

\[ b = 20 \]

The answer has the same shape as Example 12.4, which is the point of the Try It: once you can interpret one fixed-plus-rate equation, you can interpret them all. Only the context words and the numbers change.

Earnings for a 4-hour visit

Why: for comparison with Svetlana.

\[ y = 25 + 20(4) = 25 + 80 = 105 \]

Figure (svg): Two lines from the same point (0, 25): Svetlana's y equals 25 plus 15x in cyan and Ethan's y equals 25 plus 20x in orange, for x from 0 to 5 hours. At 4 hours they reach 85 and 105 dollars; the 20-dollar gap there is marked.

Equal intercepts, so the lines start together. The 5-dollar difference in rate opens a gap of 5 dollars for every hour worked.

Interpretation: when Ethan arrives and before he has worked at all, the visit already earns him a 25-dollar charge. For each hour of work, his earnings rise by 20 dollars. Compared with Svetlana, the intercepts are equal and the slopes differ by 5, so after 4 hours Ethan has earned 20 dollars more: 105 against 85.

Check the gap with the slopes

Why: the difference in rates times the hours.

\[ 105 - 85 = 20 = (20 - 15)(4) \]

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 620 — Try It 12.4

50. A falling line: a car's value

Worked example

A car is bought for 18,000 dollars and its value is modelled as dropping by the same 2,400 dollars every year. Write the equation, interpret both constants, find the value after 3 years, and say where the model stops making sense.

This one has a negative slope, so the interpretation sentence must say decreases. It also gives you a first look at a line that should not be followed forever.

Name the variables

Why: time comes first; value results.

\[ x = \text{years since purchase}, \quad y = \text{value (dollars)} \]

Sort the constants

Why: the price is the start; the yearly loss is the rate, with a minus sign.

\[ a = 18000, \quad b = -2400 \]

Write the equation

Why: intercept first.

\[ y = 18000 - 2400x \]

Value after 3 years

Why: substitute 3.

\[ y = 18000 - 2400(3) = 18000 - 7200 = 10800 \]

Before reading the graph, ask the question every linear model deserves: how far can this line be followed? A value that falls by a fixed amount each year must eventually reach zero, so find that moment.

When does the line reach zero?

Why: set y to 0 and solve.

\[ 0 = 18000 - 2400x \Rightarrow x = \frac{18000}{2400} = 7.5 \]

Figure (svg): The line y equals 18000 minus 2400x for a car's value, x from 0 to 7.5 years. It starts at 18,000 dollars and falls in steps of 2,400 per year, reaching 10,800 at 3 years and zero at 7.5 years, where the model's line meets the horizontal axis.

A negative slope reads as a loss per unit of x. Follow the line far enough and it predicts a car worth nothing, which is where you should stop trusting it.

Interpretation: when the car is new, at zero years, it is worth 18,000 dollars. For each additional year, its value decreases by 2,400 dollars. After 3 years it is worth 10,800 dollars. The line says the car is worthless at 7.5 years and worth a negative amount after that, which no car is, so the model only holds for the early years.

Check the 3-year value by the story

Why: three yearly losses from the price.

\[ 18000 - 2400 - 2400 - 2400 = 10800 \]

51. When the intercept means nothing

Concept

The intercept is always y at x equals zero, but x equals zero is not always a situation that can happen, or one the equation was built for. Then the intercept is a number on the graph and nothing more.

You have met two already. The piece-rate line written in raw percentages had an intercept of negative 6,000 dollars at zero percent of goal, a payment the plan never makes. The car line, read the other way, has no meaning past 7.5 years. Both come from following a line beyond where its rule applies.

In data the problem is common. Section 12.2's first table gives the vocabulary of children aged 3 to 7. Fitting a line to those four children, a calculation Section 12.3 will teach, gives this:

\[ \hat{y} = -1369.75 + 644.5x \]

Figure (svg): A scatter plot of vocabulary size against age for four children: ages 3, 4, 6 and 7 with 655, 1,098, 2,463 and 3,195 words. A fitted line, y-hat equals -1369.75 plus 644.5x, runs close to the dots, with short vertical segments showing each dot's distance from it. The line is drawn dashed below age 3 and crosses the vertical axis at about minus 1,370 words.

Real data scatter around a line instead of sitting on it, so the slope becomes an average rate. And an intercept far outside the data can be nonsense.

The slope is sensible: on average, vocabulary grows by about 644.5 words per year of age across this range. The intercept says a newborn knows about negative 1,370 words, which is impossible. The data stop at age 3, and no straight line describes how vocabulary starts.

So check before you interpret: is x equal to zero possible, and is it near the data? If not, say that the intercept has no practical meaning, and interpret only the slope.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.2, p. 620 — Table 12.1; the fitted line is computed here

52. Trap: reading the slope as a total

Trap

The trap

Asked to interpret b in Svetlana's equation y equals 25 plus 15x, a first attempt writes:

\[ b = 15 \]

Svetlana earns 15 dollars for a session.

Wrong. That is not what she earns.

The fix

The slope is a rate: the extra amount for each additional hour. A session's total includes the fee.

\[ b = 15 \text{ dollars per hour} \]

Correct: for each additional hour she tutors, Svetlana earns 15 dollars more. A one-hour session earns her 25 plus 15, which is 40 dollars.

The test: does your sentence contain the word per, or each additional? If not, it is describing a total, and a slope is never a total.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, p. 620 — Example 12.4

53. The section's equations side by side

Comparison

Fill in the missing entries. Each row is a situation from this section; the columns are the pieces you should be able to produce for any of them.

Comparison matrix

situationequationabunits of b
tax returnsy = 31.50 + 32x31.5032dollars per hour
Emma's classesy = 50 + 20x5020dollars per student
late paymenty = 10 + 5x105dollars per day
car valuey = 18000 − 2400x18000-2400dollars per year

Read down the units column. Every b is a dollars-per-something rate, and the something is always x's unit. The a column is in plain dollars. That pattern holds for every equation in the chapter, including fitted ones, so a units column is a fast way to catch a swapped equation.

The car row is the only negative slope, and its interpretation sentence is the only one that says decreases. The sign of b carries the direction; the units carry the meaning.

54. Comparing two plans: where the lines cross

Worked example

A rival tax business charges 60 dollars once plus 25 dollars per hour. For which job lengths is it cheaper than Example 12.3's 31.50 plus 32 dollars per hour?

Each plan is a line. The cheaper plan for a given x is the lower line there, and the switch happens where the lines cross, so find the x that makes the two costs equal.

Write both lines

Why: same x and y for both.

\[ y_1 = 31.50 + 32x, \quad y_2 = 60 + 25x \]

Set the costs equal

Why: the crossing point.

\[ 31.50 + 32x = 60 + 25x \]

Collect the x terms

Why: subtract 25x from both sides.

\[ 31.50 + 7x = 60 \]

Collect the constants

Why: subtract 31.50.

\[ 7x = 28.50 \]

Divide by 7

Why: hours to the crossing.

\[ x = \frac{28.50}{7} \approx 4.07 \text{ hours} \]

Read the two numbers in that last line. The 28.50 is the difference in one-time charges and the 7 is the difference in hourly rates, so the crossing is the number of hours it takes the cheaper rate to pay back the bigger fee.

Figure (svg): Two lines for x from 0 to 8 hours: the tax business's y equals 31.50 plus 32x in cyan and a rival's y equals 60 plus 25x in orange. The rival starts higher but climbs more slowly; they cross at about 4.07 hours and 161.79 dollars, marked with a yellow dot and a dashed drop line.

Left of the crossing the small fixed charge wins; right of it the small hourly rate wins. The intercepts decide short jobs, the slopes decide long ones.

In context: for jobs shorter than about 4.07 hours the original business is cheaper, because its small one-time charge matters most; for longer jobs the rival is cheaper, because it charges 7 dollars less for every hour. At the crossing both cost about 161.79 dollars.

Check at the crossing

Why: both equations must give the same cost.

\[ 31.50 + 32(4.0714) = 161.79, \quad 60 + 25(4.0714) = 161.79 \]

55. Push x far beyond the story

Edge cases

An equation will accept any x you give it. A situation will not. Push the section's equations to extreme values of x and decide when the answer stops describing anything real.

Discussion prompt

Use the equations to compute: the tax cost of a 500-hour job; the credit-card fee for a payment 3 years late; the car's value after 10 years. Which answers still describe the situation, and which do not?

The lesson is the one that Section 12.5 will make formal: a line is a description of a range, not a law of nature. Inside the range where the rule was set or the data were collected, use it freely. Outside it, an answer can be precise and meaningless at the same time.

The same boundary applies at the other end, where x approaches zero. That is why the intercept sometimes has a real meaning, as a one-time fee, and sometimes none, as for the newborn's vocabulary.

56. A fitted slope: exact or on average?

Prediction

The lines in this section are exact: every tax job pays exactly 32 dollars more per hour. The rest of the chapter fits lines to data. Think about what that changes before you choose.

Predict first

A line fitted to the four children's vocabularies has slope 644.5 words per year. Which sentence interprets it correctly?

  • On average, vocabulary is about 644.5 words higher for each additional year of age
  • Every child learns exactly 644.5 words each year
  • A child knows 644.5 words
  • Vocabulary grows by 644.5 percent each year

Correct: On average, vocabulary is about 644.5 words higher for each additional year of age

Why: The children do not sit exactly on the line: the 3-year-old is about 91 words above it and the 4-year-old about 110 below. So the slope describes the average trend, and the sentence needs the words on average. It is still a per-unit change, in words per year.

The other options are the familiar errors in new clothes. Exactly 644.5 words treats a trend as a rule. A child knows 644.5 words reads the slope as a total. Percent confuses an additive rate with a growth rate.

So the interpretation skeleton from this section survives into regression with one addition: for each additional unit of x, y changes by b units of y, on average. Learn the exact version now and the fitted version is a two-word extension.

57. Putting it together

Section

Part 5

58. Pattern: from a description to two interpreted numbers

Pattern

Every problem in this section ran through the same short sequence, and the regression sections will run through it again with a fitted line. The diagram is the checklist; the list says what each box asks of you.

Figure (svg): A flow diagram of five boxes joined by arrows. Name x, the quantity you choose or control. Name y, the quantity that results. Find a, the amount when x is zero, in y's units. Find b, the change in y for each one-unit increase in x, in y-units per x-unit. Interpret both in sentences, checking at a value of x other than 0 or 1.

The order matters: name the variables before the constants, because a and b only mean something once you know what x and y measure.
  1. Name x: the quantity chosen, controlled or coming first; the one after in terms of.
  2. Name y: the result, the total, the quantity calculated from x. Include units.
  3. Find a: the one-time or starting amount; y when x is zero, in y's units.
  4. Find b: the per-unit amount; the change in y for each one-unit increase in x, in y-units per x-unit. Its sign sets the direction.
  5. Write y = a + bx, constant first.
  6. Interpret both in sentences, and check the equation at an x other than 0 or 1.

\[ y = a + bx, \qquad a = y \text{ at } x = 0, \qquad b = \frac{\text{change in } y}{\text{change in } x} \]

Most wrong answers in this section are right arithmetic on a wrong reading: the algebra letter b taken as the intercept, x and y swapped, a slope reported as a total, or an intercept interpreted where x equal to zero makes no sense. Each has a one-line check, and the pattern puts each check in its place.

59. Check: identifying the constants

Check

Read positions, not letters.

Before choosing, cover the x term to find a, then cover a to find b. Watch what happens to the minus sign.

Check your understanding

For the equation y = 12 − 0.4x, what are the y-intercept and the slope?

  • A. a = 12, b = −0.4 (correct)
  • B. a = −0.4, b = 12
  • C. a = 12, b = 0.4
  • D. a = 0, b = −0.4

Answer: A

Why: The constant term, 12, is the intercept, and the number multiplying x, negative 0.4, is the slope. The minus sign belongs to the slope, so the line falls 0.4 for each unit of x.

Why B tempts people
That swaps the roles. In y = a + bx the constant is a; the coefficient of x is b, whatever the algebra form called them.
Why C tempts people
That drops the minus sign. The slope is negative 0.4, so the line slopes downward, not upward.
Why D tempts people
The intercept is y at x = 0, which is 12, not 0. Only a line through the origin has a = 0.

In context, if x were hours and y litres of water in a tank, the tank starts with 12 litres and loses 0.4 litres per hour. The sentence only works with the sign attached to the slope.

Check by substituting: x equal to 0 gives 12, the intercept, and x equal to 10 gives 8, which is 4 less, ten times 0.4. One substitution confirms both numbers and the sign.

If you chose the option with the constants swapped, go back to the two spellings of one line in Part 1. The letter b names a different number in each, which is exactly why positions are the safe guide.

60. Check: building the equation

Check

Sort the two amounts before you write anything.

Ask which amount is charged once, whatever x is, and which is charged for every unit of x. Then name x from the words in terms of.

Check your understanding

A moving company charges 120 dollars to send a truck plus 45 dollars for every hour the crew works. Which equation gives the total cost y in terms of hours x?

  • A. y = 120 + 45x (correct)
  • B. y = 45 + 120x
  • C. y = 165x
  • D. x = 120 + 45y

Answer: A

Why: The truck charge of 120 dollars is paid once, so it is the intercept; 45 dollars is charged per hour, so it is the slope. The cost depends on hours, so cost is y.

Why B tempts people
That swaps the constants. Checked at x = 1 both give 165, which is why a check at one hour cannot catch it; at 3 hours the swap gives 405 instead of 255.
Why C tempts people
That adds the two charges and multiplies by hours, so the 120-dollar charge is paid again every hour. It is paid once.
Why D tempts people
That makes hours depend on cost. The problem asks for cost in terms of hours, so cost is y.

In context: a 3-hour move costs 120 plus 135, which is 255 dollars. The sentence for the slope is: for each additional hour, the cost rises by 45 dollars.

Every wrong option is a real slip from this section: swapped constants, a one-time charge treated as a rate, and swapped variables. Each is caught by a check at an x such as 3, or by the units.

If you were drawn to the option that multiplies 165 by x, ask what it predicts for zero hours. It predicts zero dollars, but the truck charge is paid even if the crew never starts.

61. Check: interpreting in context

Check

Find the sentence that a careful statistician would write.

A good slope sentence names a per-unit change with both units; a good intercept sentence names the situation where x is zero.

Check your understanding

A gym's monthly bill is y = 15 + 8x, where x is the number of personal training sessions and y is in dollars. Which is a correct interpretation of the slope?

  • A. For each additional training session, the monthly bill increases by 8 dollars. (correct)
  • B. The monthly bill is 8 dollars.
  • C. With no training sessions, the bill is 8 dollars.
  • D. For each additional dollar, the member gets 8 more sessions.

Answer: A

Why: The slope 8 is the change in y for each one-unit increase in x: 8 more dollars on the bill per additional session. The sentence names both units, dollars and sessions.

Why B tempts people
That reads the slope as a total. The bill is 15 plus 8 for every session, so it is 8 dollars only if that were the whole bill.
Why C tempts people
That is the intercept's sentence with the slope's number. With no sessions the bill is 15 dollars, the value of a.
Why D tempts people
That turns the rate upside down, as if sessions depended on dollars. The slope is dollars per session.

The intercept's correct sentence is: with no training sessions in a month, the bill is 15 dollars, the base membership. Both sentences together describe the bill completely.

A quick test of any slope sentence: does it contain the words for each additional, or per? If not, it is almost certainly describing a total instead of a rate.

If you chose the inverted rate, the units would have told you: 8 is in dollars per session, so it cannot count sessions per dollar.

62. Explain why a and b need separate sentences

Explain it to yourself

The section insists on interpreting both constants. Explaining why they need different kinds of sentence is a good test of whether the reading has landed.

Discussion prompt

Using Svetlana's y = 25 + 15x, explain in two or three sentences why the intercept and the slope need different kinds of sentence, and what goes wrong if you read 15 as what she earns.

A strong answer names the units: a has y's units alone, b has y's units per x's unit. A very strong one adds that the slope sentence will gain the words on average once the line is fitted to data, and the intercept sentence may have to say it has no practical meaning.

If your explanation used the picture, so much the better: the intercept is a point on the axis, the slope is the height of every step of the staircase. One is a place; the other is a movement.

63. Exit ticket: a printing shop

Exit ticket

One problem that uses everything in the section: building the equation, reading the constants, interpreting them and checking.

Discussion prompt

A print shop charges a 12-dollar setup fee plus 0.08 dollars per page. Write the total cost y in terms of pages x, interpret a and b in sentences, find the cost of 500 pages, and say whether the graph slopes up, down or is flat.

Check it at an x that is neither 0 nor 1: at 100 pages the cost is 12 plus 8, which is 20 dollars, while the swapped equation, 0.08 plus 12 times 100, would give 1,200.08 dollars. One sensible substitution is the whole check.

If you wrote y equals 0.08 plus 12x, you priced each page at 12 dollars: 500 pages would cost 6,000.08 dollars. The size of that answer is the warning sign.

64. Recap

Recap

A linear equation in statistics is written y equals a plus b x: the constant first, the x term second. Its graph is a straight line, and every non-vertical line has such an equation.

ideaformula or ruleread it as
the formy = a + bxconstant first: a is the intercept, b the slope
variablesx independent, y dependentchoose x, compute y; y is 'in terms of' x
intercepta = y at x = 0the one-time or starting amount, in y's units
slopeb = rise ÷ runchange in y per one-unit increase in x
directionb > 0 up, b = 0 flat, b < 0 downread left to right
a changesline slides up or downtilt unchanged
linear?x only to the first powerequal steps in x give equal steps in y
interpretsentences with unitsslope says per; intercept names x = 0

The work is mostly reading: which amount is charged once and which per unit, which variable depends on which, and what sentence each number deserves. Check every equation at an x other than 0 or 1, and before interpreting an intercept, ask whether x equal to zero is a real situation.

The Introductory Business Statistics text covers the same convention in its §13.3, defining a linear relationship algebraically, numerically and graphically. Section 12.2 now brings in data, with the scatter plot, and asks when a line is a fair summary of points that do not sit on one.

OpenStax Introductory Statistics 2e, §12.1 Linear Equations §12.1, pp. 617-620 — the whole section

OpenStax Introductory Business Statistics 2e, §13.3 Linear Equations §13.3 Linear Equations — the same convention in a business setting

Sources

  1. OpenStax Introductory Statistics 2e, §12.1 Linear Equations — Illowsky & Dean, OpenStax / Rice University, CC BY 4.0, pp. 616-621
  2. OpenStax Introductory Business Statistics 2e, §13.3 Linear Equations — Illowsky & Dean, OpenStax / Rice University, CC BY 4.0

Want this taught 1-on-1? Alexander tutors Statistics — $55/session, free consultation.

Book on Wyzant · Text (657) 465-8108