Regression Expectation CalculatorSix-Period Trend with Prediction Interval

What do these figures come to once the work is shown?

Least-squares line from six periods of driver and balance, the expected balance for the current driver, and a 90% or 95% prediction interval.

  • Runs in your browser
  • Nothing stored or sent
  • Free, no sign-up
Your figures
Example figuresIllustrative only. Type over them with your own.
Expected balance
$63,523
Least-squares prediction for the current driver
Slope (balance per unit of driver)
37.83
Intercept
$4,883
Drawn to one scale
Intercept$4,883
Expected balance$63,523
Difference (recorded less expected)$4,377
Prediction interval low$62,975
Prediction interval high$64,071
All results
MeasureResult
Slope (balance per unit of driver)37.83
Intercept$4,883
R squared99.93%
Expected balance$63,523
Difference (recorded less expected)$4,377
Prediction interval low$62,975
Prediction interval high$64,071
Investigate
Yes: recorded balance is outside the prediction interval
How this was worked out
Work shownrecomputed as you type
Slope b = sum((x - mean x)(y - mean y)) / sum((x - mean x)^2); intercept a = mean y - b x mean x
Expected = a + b x current driver
Standard error s = sqrt(SSE / (n - 2)), n = 6
Interval = expected +/- t x s x sqrt(1 + 1/n + (x0 - mean x)^2 / Sxx), t with 4 degrees of freedom: 2.132 (90%) or 2.776 (95%)

Illustrative arithmetic on the figures you enter. Check the result against your firm's methodology before relying on it.

The formulas

  • Slope b = sum((x - mean x)(y - mean y)) / sum((x - mean x)^2); intercept a = mean y - b x mean x
  • Expected = a + b x current driver
  • Standard error s = sqrt(SSE / (n - 2)), n = 6
  • Interval = expected +/- t x s x sqrt(1 + 1/n + (x0 - mean x)^2 / Sxx), t with 4 degrees of freedom: 2.132 (90%) or 2.776 (95%)

How it works

Regression turns past periods into an expectation with a measurable precision. The prediction interval is the range a new observation falls in at the chosen confidence if the relationship holds. A recorded balance outside the interval is a difference the model cannot explain.

Six points is a small base, which widens the interval. Use periods from before the period under audit, check the R squared, and look at the residuals for a trend. A driver that management controls, or that is itself unaudited, weakens the evidence.

Illustrative figures only. Check the result against your firm's methodology before relying on it.

Common questions

Can I use monthly data?

Yes. Six recent months against a seventh is a common setup, and monthly data usually gives a more precise expectation than annual data.

What R squared is good enough?

There is no fixed cutoff. A low R squared shows up as a wide interval, which is the number that matters.

Why is the interval wider than the standard error?

It covers both the scatter of a single observation and the uncertainty in the fitted line, which grows as the current driver moves away from the past average.

Formulas on this page are the standard definitions.

Runs in your browser. The figures you type are not sent to CORAA or stored. Check the result against your firm's methodology before relying on it.

Related audit calculators

For US CPA firms

Join the CORAA waitlist

CORAA AI drafts audit working papers from your client’s QuickBooks books and does the first pass: lead schedules, tie-out, memos, draft notes and letters. CORAA Network reviewers clear every finding. Your firm reviews and signs.

  • First audit free, so you can judge the quality on a real file
  • Flat fee by entity size; messy books included
  • We work only with CPA firms, never their clients
See how it works →

* required