Tutorials › Regression Analysis (Undergraduate) › Quadratic Shapes in Applied Examples

Polynomial Regression · Tutorial 425 of 991

Quadratic Shapes in Applied Examples

Use the quadratic coefficients, vertex, and predictor range to interpret applied fitted curves without confusing curvature with increasing or decreasing behavior.

Intermediate 9 min read

What You'll Learn

  • Identify upward- and downward-opening quadratic fits from the squared-term coefficient
  • Calculate a fitted curve’s vertex and interpret it in context
  • Determine whether a quadratic fit is increasing or decreasing over a specified predictor range
  • Distinguish curvature from the direction of change in an applied example
  • Recognize when a mathematical turning point is outside the data range and should not be treated as an observed pattern

Reading a Quadratic Shape in Context

A quadratic regression curve can describe patterns that a straight line cannot: an outcome may fall and then rise, or rise and then fall. But the sign of the squared-term coefficient alone does not tell us whether the outcome is increasing or decreasing throughout the predictor values actually observed. To interpret a fitted quadratic well, we need its curvature, its turning point, and the range of the predictor represented by the data.

The goal here is to translate those mathematical features into a cautious description of an applied pattern. A curve that bends upward does not necessarily increase throughout the data range, and a curve that bends downward does not necessarily decrease throughout it. The vertex may lie within the observed range, at an endpoint, or beyond the range altogether.

The Model and Its Shape

For a quantitative response \(Y\) and predictor \(X\), a quadratic regression model specifies a conditional mean that is a quadratic function of the predictor:

$$ \mathrm{E}(Y\mid X=x)=\beta_0+\beta_1x+\beta_2x^2 $$

Here \(\beta_0\), \(\beta_1\), and \(\beta_2\) are population coefficients. A fitted model uses estimates \(b_0\), \(b_1\), and \(b_2\), giving the fitted value \(\hat{y}\) at predictor value \(x\):

$$ \hat{y}=b_0+b_1x+b_2x^2 $$

For interpreting this fitted curve as an estimate of the conditional mean, the model assumes that the conditional mean is adequately represented by a quadratic over the predictor range being discussed and that the errors have mean zero at each predictor value. The examples below are hypothetical fitted patterns; they are not evidence that a particular real process follows a quadratic model. In practice, the observed predictor range and the pattern of residuals matter when deciding whether the model is a reasonable description. The shape discussion itself does not require normally distributed errors, and a curve should not be interpreted as proof of a causal relationship.

Definition: The coefficient \(b_2\) determines the fitted curve’s curvature. If \(b_2>0\), the curve opens upward and has a minimum at its vertex. If \(b_2<0\), it opens downward and has a maximum at its vertex. If \(b_2=0\), the fitted equation has no quadratic curvature and is linear (or constant).

For \(b_2\ne 0\), the vertex has predictor coordinate \(x_v=-b_1/(2b_2)\). It is the location of the quadratic’s minimum when \(b_2>0\), and its maximum when \(b_2<0\). The fitted response at the vertex is \(\hat{y}_v=b_0+b_1x_v+b_2x_v^2\). Whether the curve rises or falls at a particular value of \(x\) depends on the slope there, not just on the sign of \(b_2\).

Why the Vertex and Slope Give the Shape

The vertex formula follows by rewriting the fitted equation in a form that displays its turning point. Completing the square gives:

$$ \begin{aligned} \hat{y} &=b_2\left(x^2+\frac{b_1}{b_2}x\right)+b_0\\ &=b_2\left(x+\frac{b_1}{2b_2}\right)^2+b_0-\frac{b_1^2}{4b_2}\\ &=b_2(x-x_v)^2+\hat{y}_v, \qquad x_v=-\frac{b_1}{2b_2} \end{aligned} $$

Since the squared quantity \((x-x_v)^2\) is smallest at \(x=x_v\), multiplying it by a positive \(b_2\) gives a minimum there; multiplying by a negative \(b_2\) gives a maximum. The slope of the fitted curve at any \(x\) is:

$$ \frac{d\hat{y}}{dx}=b_1+2b_2x $$

This slope is zero at \(x_v\), negative on one side of the vertex, and positive on the other. Consequently, to describe behavior over an observed interval, compare the vertex with that interval or check the slope across it. A vertex outside the observed interval means the fitted curve can be monotone within that interval even though it is curved.

Worked Example: Upward Curvature in Energy Demand

Suppose a hypothetical set of daily observations covers outdoor temperatures from 0°C to 30°C. A fitted quadratic for a building’s daily heating-and-cooling energy use is:

$$ \hat{y}=50-6x+0.2x^2 $$

Here \(x\) is outdoor temperature in degrees Celsius and \(\hat{y}\) is predicted energy use in kilowatt-hours per day. The squared-term coefficient is positive, \(b_2=0.2\), so the fitted curve opens upward. Its vertex is:

$$ x_v=-\frac{b_1}{2b_2} =-\frac{-6}{2(0.2)} =\frac{6}{0.4} =15\text{°C} $$

The fitted energy use at the vertex is:

$$ \hat{y}_v=50-6(15)+0.2(15^2) =50-90+45 =5\text{ kWh per day} $$

The derivative is \(-6+0.4x\). It is negative for \(x<15\) and positive for \(x>15\), so the curve decreases up to 15°C and increases above 15°C. The predicted values at the ends of the stated range are \(\hat{y}(0)=50\) and \(\hat{y}(30)=50-180+180=50\) kWh per day. In this hypothetical setting, the U-shaped pattern could represent higher demand on colder days for heating and on warmer days for cooling, with a minimum near 15°C. The interpretation is limited to the 0°C-to-30°C range; it does not establish how demand behaves at temperatures outside it or that temperature alone causes the pattern.

Worked Example: Downward Curvature and a Peak

Imagine a hypothetical experiment recording plant growth after different fertilizer application rates, \(x\), measured in units per plot. The observed rates range from 0 to 8 units, and a fitted quadratic for growth in centimetres is:

$$ \hat{y}=18+4x-0.5x^2 $$

The squared-term coefficient is \(b_2=-0.5\), so the curve opens downward and has a maximum at its vertex. The predictor value at that vertex is:

$$ x_v=-\frac{4}{2(-0.5)} =-\frac{4}{-1} =4\text{ units per plot} $$

At 4 units, predicted growth is:

$$ \hat{y}_v=18+4(4)-0.5(4^2) =18+16-8 =26\text{ cm} $$

The slope is \(4-x\). It is positive when \(x<4\) and negative when \(x>4\), so the fitted growth increases up to 4 units and decreases after that, within the stated range. For example, \(\hat{y}(2)=18+8-2=24\) cm and \(\hat{y}(6)=18+24-18=24\) cm. The fitted curve therefore describes a peak in predicted growth at 4 units, not a claim that every plant’s growth will be maximized there. It also does not justify recommending that rate without considering the study design, uncertainty, and other relevant outcomes.

Worked Example: A Monotone Curve with Downward Curvature

Suppose a hypothetical data set relates an applied dose \(x\), from 0 to 5 milligrams, to a numerical measure of symptom relief. A fitted curve is:

$$ \hat{y}=2+5x-0.3x^2 $$

The negative squared-term coefficient means the curve opens downward, but that fact alone does not say the curve decreases over the observed range. Its vertex is:

$$ x_v=-\frac{5}{2(-0.3)} =\frac{5}{0.6} \approx 8.333\text{ mg} $$

This maximum lies beyond the observed range of 0 to 5 mg. The slope is \(5-0.6x\). For every \(x\) in the observed interval, it remains positive: at the right endpoint it is \(5-0.6(5)=2>0\), and it is even larger at smaller values of \(x\). Thus the fitted curve increases throughout the observed range while bending downward; its rate of increase gradually lessens. For example, \(\hat{y}(0)=2\), while \(\hat{y}(5)=2+25-0.3(25)=19.5\). The model’s predicted peak at about 8.333 mg is an extrapolation beyond the observed doses, not an observed maximum or a basis for a dosing recommendation.

Use the Data Range to Qualify the Interpretation

A quadratic has one vertex when \(b_2\ne 0\), but an applied interpretation should focus first on the predictor values represented by the data. The vertex can be outside that range, and the model’s shape there may be mathematically clear while empirically unsupported. A prediction at an unobserved value is not automatically invalid, but it relies more heavily on the assumed quadratic form.

When describing a fit, distinguish these statements:

FeatureWhat it tells youWhat it does not tell you by itself
\(b_2>0\)The curve opens upward and has a minimum at its vertex.That the outcome increases throughout the observed range.
\(b_2<0\)The curve opens downward and has a maximum at its vertex.That the outcome decreases throughout the observed range.
Vertex inside the observed rangeThe fitted curve changes direction within that range.That the turning point is estimated precisely or is practically important.
Vertex outside the observed rangeThe curve may be monotone over the observed range.That its turning point beyond the data is supported by observations.

The units also help keep an interpretation concrete. If \(x\) is measured in milligrams and \(Y\) in a score, then \(x_v\) is measured in milligrams and \(\hat{y}_v\) in score units. The coefficients have corresponding units: \(b_1\) is in score units per milligram, while \(b_2\) is in score units per milligram squared. The coefficient \(b_1\) is the slope at \(x=0\), not the slope everywhere on a quadratic curve.

A Practical Reading Sequence

For an applied fitted quadratic, a short sequence helps prevent overinterpretation:

1
Name the quantities and units.
Identify the response, predictor, and predictor range represented by the data.
2
Read the curvature.
Use the sign of \(b_2\) to determine whether the fitted curve opens upward or downward.
3
Locate the vertex.
Calculate \(x_v=-b_1/(2b_2)\) and, when useful, substitute it into the fitted equation to find \(\hat{y}_v\).
4
Check direction over the observed interval.
Compare the vertex with the data range or evaluate \(b_1+2b_2x\) across that range.
5
State a qualified interpretation.
Describe the fitted pattern in context and avoid treating an unsupported extrapolation or association as a causal conclusion.

Common Mistake: Treating Curvature as Direction

A common mistake is to say, “The squared coefficient is negative, so the response decreases as \(x\) increases.” That reasoning confuses a downward-opening curve with a curve that is always decreasing. A downward-opening quadratic increases to its maximum and decreases after it. If the maximum lies beyond the observed data range, the curve can increase throughout the range being studied, as in the dose example.

The correction is to use both the coefficient signs and the data range. The squared-term coefficient identifies the direction of curvature; the vertex or slope identifies whether the fitted response is increasing or decreasing at the predictor values of interest. Finally, describe the result as a pattern in fitted values or estimated conditional means, not as a guarantee about individual outcomes.

Check Your Understanding

Use the coefficient signs, vertex, and predictor range to answer each question.

  1. A fitted curve has \(b_2=0.4\). What does this coefficient establish about the curve, and what additional information is needed to tell whether the curve increases throughout the observed range?
  2. For \(\hat{y}=10+6x-x^2\), calculate the vertex predictor value and state whether it is a maximum or minimum.
  3. A downward-opening quadratic has its vertex at \(x=12\), while observed predictor values range from 1 to 7. What is the fitted curve’s direction over the observed range?
  4. Why should a vertex outside the observed predictor range be interpreted cautiously?
  5. In a model where \(x\) is measured in hours and \(Y\) in dollars, what are the units of the vertex predictor value and the fitted response at the vertex?