Fiveable

📈College Algebra Unit 4 Review

QR code for College Algebra practice questions

4.2 Modeling with Linear Functions

4.2 Modeling with Linear Functions

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
📈College Algebra
Unit & Topic Study Guides

Linear Function Models

Linear models from real-world scenarios

The first step in building a linear model is figuring out which variable depends on which. The dependent variable (y) is the output that changes in response to something else. The independent variable (x) is the input you can control or that drives the change. For example, if you're looking at how hours worked affects total pay, hours worked is xx and total pay is yy.

Once you've identified your variables, pull out two key pieces from the scenario:

  • Slope (mm): the rate of change, or how much yy changes for each one-unit increase in xx. Think "miles per hour" or "dollars per item."
  • y-intercept (bb): the starting value of yy when x=0x = 0. This could be a base cost, an initial distance, or any value that exists before the independent variable kicks in.

Then plug both into the slope-intercept form:

y=mx+by = mx + b

For example, if a delivery service charges a $25 base fee plus $0.50 per mile, the model is y=0.50x+25y = 0.50x + 25, where xx is miles driven and yy is total cost.

Linear models from real-world scenarios, Graph Linear Functions Using Slope and y-Intercept | Intermediate Algebra

Data analysis for linear functions

When you're given a data set instead of a word problem, you need to build the model from the numbers. Here's the process:

  1. Identify your variables. Decide which is independent (xx) and which is dependent (yy). Time, quantity, or anything you'd naturally put "per" after usually goes on the x-axis.

  2. Plot the data. Create a scatter plot with xx on the horizontal axis and yy on the vertical axis. This lets you see the overall pattern and spot any outliers.

  3. Check for linearity. If the points roughly follow a straight line, a linear model is appropriate. If they curve, you're looking at something non-linear (exponential, quadratic, etc.).

  4. Calculate the slope. Pick two points from the data, preferably ones that are far apart to reduce error. Use the slope formula:

m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}

For instance, using the points (2,4)(2, 4) and (6,12)(6, 12): m=12462=84=2m = \frac{12 - 4}{6 - 2} = \frac{8}{4} = 2.

  1. Find the y-intercept. If the line crosses the y-axis in your plot, you can read bb directly. Otherwise, substitute your slope and one known point into y=mx+by = mx + b and solve for bb. Using the point (2,4)(2, 4) with m=2m = 2: 4=2(2)+b4 = 2(2) + b, so b=0b = 0.

  2. Write the model. Combine your slope and y-intercept: y=2x+0y = 2x + 0, or simply y=2xy = 2x.

Linear models from real-world scenarios, OpenAlgebra.com: Free Algebra Study Guide & Video Tutorials: Graph using the y-intercept and Slope

Interpretation of linear model features

A model is only useful if you can explain what it means in context. Each part of y=mx+by = mx + b tells you something specific.

Slope interpretation

  • The slope describes the rate of change: how much yy increases (or decreases) for every one-unit increase in xx.
  • A positive slope means yy increases as xx increases. A negative slope means yy decreases as xx increases.
  • Always attach units. Saying "the slope is 2" is incomplete. Saying "the slope is 2 miles per hour" tells you something real.

y-intercept interpretation

  • The y-intercept is the value of yy when x=0x = 0. In context, it's the starting point before the independent variable has any effect.
  • Example: In y=0.50x+25y = 0.50x + 25, the y-intercept of 25 means the base cost is $25 before any miles are driven.
  • Watch out: sometimes x=0x = 0 doesn't make sense in the real scenario (like "zero years of age" for adult salary data). In those cases, the y-intercept is mathematically necessary for the equation but may not have a meaningful real-world interpretation.

x-intercept interpretation

  • The x-intercept is where y=0y = 0. Find it by setting y=0y = 0 and solving for xx.
  • For y=2x+6y = 2x + 6: 0=2x+60 = 2x + 6, so x=3x = -3. Whether that value makes sense depends on context. A negative number of hours or items, for instance, has no real-world meaning.

Predictions and limitations

  • Interpolation means predicting yy for an xx-value within the range of your data. These predictions tend to be reliable.
  • Extrapolation means predicting beyond your data range. These predictions are riskier because you're assuming the linear trend continues, and it may not.

Analyzing relationships and model fit

Building a model is one thing; knowing whether it's any good is another.

Correlation measures the strength and direction of a linear relationship between two variables.

  • Strong positive correlation: as xx increases, yy consistently increases.
  • Strong negative correlation: as xx increases, yy consistently decreases.
  • Weak correlation: no clear pattern between xx and yy, meaning a linear model probably isn't the right fit.

Correlation does not imply causation. Two variables can move together without one causing the other. Ice cream sales and drowning rates both rise in summer, but ice cream doesn't cause drowning. A hidden variable (hot weather) drives both.

Residuals are the differences between the actual yy-values in your data and the yy-values your model predicts. If your model predicts y=10y = 10 but the actual value is 1212, the residual is 22.

  • Small residuals scattered randomly above and below zero suggest a good fit.
  • Large residuals or a clear pattern in the residuals (like a curve) suggest the linear model isn't capturing the real relationship well.