the decision pattern.TDP.

Simple Regression for Demand Guide: Reading Slope, R-Squared, and Prediction Intervals Without Overreaching

How to fit and interpret a one-variable demand regression, and the limits on what it can tell you about prices outside the range observed.

The short answer

The slope of a simple regression is the change in units per unit change in price, R-squared is the share of variation explained, and a prediction interval is wider than a confidence interval for the mean; in the example, each extra dollar cuts weekly sales by about 2.9 units, R-squared is 0.98, and a forecast at a price of 15 is 107 units, with a 95% interval of 102 to 112.

Key takeaways

  • Primary measure: Slope with Confidence Interval, R-Squared, and Prediction Interval Width.
  • Healthy: Slope reported with its interval, fit checked on residuals, and forecasts limited to the observed range.
  • Watch closely: R-squared reported alone as proof that price drives demand.
  • Act now: A line fitted through a handful of points and extrapolated to set prices well outside the data.
  • The line shows about 2.9 fewer units per extra dollar with an R-squared of 0.98, but the data has only eight points and covers prices of 10 to 24, so predictions beyond that range, such as at 26, are not reliable.

How to fit and interpret a one-variable demand regression, and the limits on what it can tell you about prices outside the range observed. Key terms used below: regression analysis, correlation, prediction interval, price elasticity of demand. Related guides: Willingness-to-Pay Research: Move from Price Perceptions to a Commercial Test and A/B Test Sample Size: Choose the Effect, Power and Stopping Rule Before Launch.

What decision this guide supports

Analysts often fit a straight line to sales and price data to estimate how demand responds. The method is simple and widely used, and it can yield useful numbers, but it is easy to read too much into the output.

A regression gives a slope, which says how much the outcome changes for a unit change in the driver on average in the data, an intercept, and measures of fit and uncertainty. These do not show that the driver causes the change, and they apply only to the range of data used.

Two intervals are often confused. A confidence interval describes uncertainty about the average response at a given price, while a prediction interval describes uncertainty about a single future observation, and it is wider.

Key terms

Slope
The average change in the outcome for a one-unit increase in the driver.
R-squared
The share of variation in the outcome that the model explains.
Confidence interval
A range for an unknown parameter or average that reflects sampling error.
Prediction interval
A range for a single new observation, which is wider than a confidence interval.

How to calculate it

The slope b equals the sum of products of deviations of x and y from their means, divided by the sum of squared deviations of x. The intercept equals the mean of y minus b times the mean of x. R-squared equals the explained share of the total variation in y. The standard error of the regression equals the square root of the residual sum of squares divided by n minus 2. The 95% prediction interval at a point x0 equals the predicted value plus or minus a t-value times the standard error times the square root of one plus one over n plus the squared distance of x0 from the mean divided by the sum of squared deviations.

Benchmark matrix and working thresholds

The table summarizes the main options or components and what to watch in each.

Price (dollars) 10 12 14 16 18 20 22 24
Weekly units 120 118 109 104 96 95 85 80
Fitted units 121.5 115.6 109.7 103.8 97.9 92.0 86.1 80.2

Working thresholds

Treat these as starting heuristics to calibrate against your own data, not universal standards.

  • Healthy: Slope reported with its interval, fit checked on residuals, and forecasts limited to the observed range.
  • Watch closely: R-squared reported alone as proof that price drives demand.
  • Act now: A line fitted through a handful of points and extrapolated to set prices well outside the data.

Worked scenario

The figures below are an illustrative composite, not a named company or an audited case. Replace them with your own data.

Illustrative composite: a retailer records weekly sales of a product at eight different prices between 10 and 24 dollars. The mean price is 17 and the mean sales are 100.9 units. The fitted line is units equal to 150.96 minus 2.946 times price. Each extra dollar of price is associated with about 2.9 fewer units a week, and the 95% confidence interval for the slope, using the standard error of 0.149 and a t-value of 2.447 for 6 degrees of freedom, runs from minus 3.31 to minus 2.58. R-squared is 0.985, so the line explains about 98% of the variation in these eight weeks. At a price of 15 dollars the fitted value is 106.8 units, and the 95% prediction interval for a single week is about 101.7 to 111.8. At the mean price, the elasticity implied by the line is minus 2.946 times 17 divided by 100.9, or about minus 0.50, which suggests demand is not very sensitive within this range. A price of 26 dollars would give a fitted value of 74.4 units, but it lies outside the data, so the line may not hold there. With eight points, in one store, over a short period, the result should be treated as a starting hypothesis and checked with a controlled price test.

What the scenario shows

The line shows about 2.9 fewer units per extra dollar with an R-squared of 0.98, but the data has only eight points and covers prices of 10 to 24, so predictions beyond that range, such as at 26, are not reliable.

How to read the results

  • If the slope interval excludes zero: There is a relationship in the data, but check for confounders before treating it as causal.
  • If R-squared is low: Other drivers matter, and the line is of limited use for forecasting.
  • If prediction intervals are wide: Single-period forecasts are uncertain, so plan with ranges.

Common failure modes

  1. Reading R-squared as causation: A high fit does not show that price caused the change, as other factors may move with price.
  2. Extrapolating beyond the data: Relationships are often not linear and can change outside the observed range.
  3. Confusing confidence and prediction intervals: The interval for one week's sales is wider than the interval for the average.
  4. Ignoring omitted drivers: Promotions, seasons, and competitor prices can bias the slope when left out.

Putting it into practice

  • Plot and clean the data: Look at the scatter, check for outliers, and note events that affect sales.
  • Fit and check the model: Estimate the line, examine residuals, and report slope, intervals, and fit.
  • Validate with an experiment: Test a price change in a controlled way before making large decisions based on the line.

Sensitivity and limits

  • Sample size: Compare fits from 8, 20, and 50 observations.
  • Outliers: Check the slope when the highest and lowest price points are removed.
  • Added drivers: Compare the slope with and without controls for promotion and season.

A one-variable linear model ignores other drivers and assumes a constant slope. Observational price data often reflects deliberate decisions, such as discounts during slow periods, which can distort the estimated relationship.

Where this fits in a wider decision

Use simple regression for a first look at relationships and to produce ranges, then confirm with experiments or a model with more drivers. Always show intervals and the range of the data.

Your checklist

  • Confirm you have avoided this trap: Reading R-squared as causation.
  • Confirm you have avoided this trap: Extrapolating beyond the data.
  • Confirm you have avoided this trap: Confusing confidence and prediction intervals.
  • Confirm you have avoided this trap: Ignoring omitted drivers.

Steps to follow

  1. Plot and clean the data

    Look at the scatter, check for outliers, and note events that affect sales.

  2. Fit and check the model

    Estimate the line, examine residuals, and report slope, intervals, and fit.

  3. Validate with an experiment

    Test a price change in a controlled way before making large decisions based on the line.

Common questions

How do I interpret the slope in a demand regression?

It is the average change in units for a one-dollar change in price within the range of data, not a guarantee of what will happen if you change price.

What is the difference between a confidence interval and a prediction interval?

A confidence interval covers the average outcome at a given price, and a prediction interval covers a single future observation and is wider.

Related topics

  • simple linear regression demand
  • regression price and sales
  • r squared interpretation
  • prediction interval vs confidence interval
  • demand regression example
  • slope of demand curve
  • extrapolation risk regression

Sources & further reading

  1. NIST/SEMATECH e-Handbook of Statistical Methods

    National Institute of Standards and Technology

    Statistical methods guidance on regression, residual analysis, and intervals.

  2. U.S. Census Bureau Manufacturing and Trade Inventories and Sales

    U.S. Census Bureau

    Aggregate sales data useful for context and benchmarking.

  3. ESOMAR Codes and Guidelines

    ESOMAR

    Ethical and methodological standards for market and opinion research.

Browse more guides
One platform. Two tools.

Research the question.
Build the case.

Use Research Reports to understand the opportunity. Use Executive Editor to develop the recommendation, examine the assumptions and prepare a decision paper.

Research Reports

Explore markets, competitors, customers, brand perception or a product idea. Each one is a complete Standard report.

AI-assisted desk research · One-time report purchaseExplore Research Reports

Executive Editor

Write your case, connect evidence and calculations, review proposed changes and publish a saved version when you are ready.

Use your TDP account · No report purchase requiredExplore Executive Editor