01 / 20

Linear Modeling
from Data & Word Problems

Learn to build linear equations from real-world data, interpret slope and intercept, and translate word problems into the powerful form \( y = mx + b \).

College Algebra

What Is a Linear Model?

A linear model is an equation of the form \( y = mx + b \) that approximates the relationship between two variables. It lets us predict outputs for inputs we haven't observed yet.

\( m \) : Slope
The rate of change: how much \( y \) changes for each unit increase in \( x \).
\( b \) : \( y \)-Intercept
The starting value: the value of \( y \) when \( x = 0 \).

Why Linear Models Matter

Linear models are the foundation of applied mathematics. They appear everywhere: predicting costs, analyzing trends, and making decisions with data.

Business
Revenue projections, cost analysis, break-even points
Science
Temperature trends, velocity, chemical concentrations
Everyday Life
Phone bills, taxi fares, gym memberships

Visualizing \( y = mx + b \)

\(x\) \(y\) 50 100 150 200 1 2 3 4 \( b = 20 \) \(\text{run}=1\) \(\text{rise}=40\)

The Slope Formula

Given two points \( (x_1, y_1) \) and \( (x_2, y_2) \), the slope is:

Once you know \( m \), plug one point into point-slope form to find the full equation:

Three Forms of Linear Equations

Form Equation Best Used When
Slope-Intercept \( y = mx + b \) You know slope & \( y \)-intercept
Point-Slope \( y - y_1 = m(x - x_1) \) You know slope & one point
Standard \( Ax + By = C \) You need integer coefficients

Exact Model vs. Best-Fit Model

Exact Linear Model
Built from two data points. The line passes through both points exactly. Used when the relationship is perfectly linear (e.g., a fixed rate).
Best-Fit (Regression)
Built from many data points. The line minimizes overall error. Used when data has scatter and you need the best approximation.

Step-by-Step Modeling Process

1
Identify the variables. Decide what \( x \) (independent) and \( y \) (dependent) represent, including units.
2
Extract two data points. Find \( (x_1, y_1) \) and \( (x_2, y_2) \) from the table or word problem.
3
Compute the slope. Use \( m = \dfrac{y_2 - y_1}{x_2 - x_1} \).
4
Find the intercept. Substitute one point into \( y = mx + b \) and solve for \( b \).
5
Write and interpret. State the model and explain what \( m \) and \( b \) mean in context.

Example 1: Taxi Fare

A taxi charges a flat fee plus a per-mile rate. A 3-mile ride costs $11.50 and a 7-mile ride costs $21.50. Find the linear model for the cost \( C \) in terms of miles \( d \).

1
Points: \( (3,\, 11.50) \) and \( (7,\, 21.50) \)
2
Slope: \( m = \dfrac{21.50 - 11.50}{7 - 3} = \dfrac{10}{4} = 2.50 \)
3
Intercept: \( 11.50 = 2.50(3) + b \implies b = 4.00 \)

Example 1: Graph

miles $ 5 10 15 20 25 30 0 2 4 6 8 10 \(b = \$4\) (3, $11.50) (7, $21.50)

Example 2: Phone Plan

A cell phone plan charges a monthly base fee plus a rate per gigabyte of data. The table below shows two months of bills:

Month Data (GB) Bill ($)
January562
March1290
1
Points: \( (5,\, 62) \) and \( (12,\, 90) \)
2
Slope: \( m = \dfrac{90 - 62}{12 - 5} = \dfrac{28}{7} = 4 \) dollars per GB
3
Intercept: \( 62 = 4(5) + b \implies b = 42 \)

Example 3: Temperature Conversion

Water freezes at \( 0^\circ\text{C} = 32^\circ\text{F} \) and boils at \( 100^\circ\text{C} = 212^\circ\text{F} \). Build a linear model converting Celsius to Fahrenheit.

1
Points: \( (0,\, 32) \) and \( (100,\, 212) \)
2
Slope: \( m = \dfrac{212 - 32}{100 - 0} = \dfrac{180}{100} = 1.8 \)
3
Intercept: \( 32 = 1.8(0) + b \implies b = 32 \)

Interpreting Slope & Intercept

The numbers in a linear model have real-world meaning. Always interpret them in the context of the problem.

Slope \( m \)
"For each additional [unit of \( x \)], [the quantity \( y \)] changes by \( m \) [units of \( y \)]."
Intercept \( b \)
"When \( x = 0 \), the value of \( y \) is \( b \) [units]." This is the starting value or fixed cost.

Common Mistakes

Swapping \( x \) and \( y \)
Putting the dependent variable in the denominator of the slope formula. Always check: \( m = \dfrac{\Delta y}{\Delta x} \), not \( \dfrac{\Delta x}{\Delta y} \).
Mismatched Points
Computing \( \dfrac{y_2 - y_1}{x_1 - x_2} \) (flipping only one pair). Both numerator and denominator must use the same order.
Ignoring Units
Writing \( m = 2.5 \) without saying "$2.50 per mile." Units make the slope meaningful and help catch errors.

Summary: Key Concepts

Concept Formula / Rule Meaning
Slope \( m = \dfrac{y_2 - y_1}{x_2 - x_1} \) Rate of change per unit
Intercept \( b = y_1 - m \cdot x_1 \) Value of \( y \) when \( x = 0 \)
Model \( y = mx + b \) Predict \( y \) for any \( x \)
Verification Plug in both points Both must satisfy the equation

Question 1 of 5

A plumber charges a flat service fee plus an hourly rate. A \(2\)-hour job costs \(\$140\) and a \(5\)-hour job costs \(\$260\). What is the hourly rate?

Question 2 of 5

Using the plumber problem above (\( \$40 \)/hr, \(2\)-hour job = \( \$140 \)), what is the flat service fee?

Question 3 of 5

A car's value depreciates linearly. It was worth \( \$24{,}000 \) when new and \( \$18{,}000 \) after \(3\) years. What is the linear model for value \( V \) after \( t \) years?

Question 4 of 5

In the model \( C = 0.15n + 9.99 \) where \( C \) is the monthly cost and \( n \) is the number of text messages, what does \(0.15\) represent?

Question 5 of 5

A pool is being filled. After \(2\) hours it has \(1{,}200\) gallons and after \(5\) hours it has \(3{,}000\) gallons. How many gallons will it contain after \(8\) hours?