By Michael Judge
Updated Aug 30, 2022
A trend line is a mathematical equation that captures the relationship between two variables. Derived from raw data collected through measurement or testing, the most common form is a linear (straight‑line) trend. Once you have the trend‑line equation, you can forecast the value of one variable for any given value of the other.
Confirm the equation is in the standard linear form:
y = m x + b
Here, x is the independent variable you control, and y is the dependent variable that responds to changes in x. The constants m (slope) and b (y‑intercept) are specific to your data set.
Replace the generic symbols with the actual names. For example, if the trend line links salt intake to blood pressure, the equation becomes:
Blood Pressure = m × Salt Intake + b
Decide which variable you want to forecast. Assign a numerical value to the predictor. To predict blood pressure, you would set a particular salt‑intake level.
Keep the predicted variable on one side of the equation. For blood‑pressure predictions the form remains:
Blood Pressure = m × Salt Intake + b
To solve for salt intake given a blood‑pressure target, rearrange to:
Salt Intake = (Blood Pressure – b) ÷ m
Insert the chosen value into the equation and compute. A calculator or spreadsheet makes this step quick and error‑free.
If the y‑intercept is zero, the equation simplifies to y = m x. The same method applies to polynomial or other complex trend lines, though solving may require algebraic manipulation or numerical tools.
Trend lines are invaluable for modeling data that rises or falls at a consistent rate over time. They enable precise forecasts such as:
By fitting a reliable trend line, you gain a tool that can be reused with new data sets to predict future outcomes.