跳到正文
DEV Community· crabcheng·· 50 分鐘前AI 評分68

AI 十秒外推銷售數據,但這不等於預測

AI Can Extrapolate Your Sales Data in Ten Seconds. That Is Not a Forecast.

AI 導讀

AI 可在十秒內把歷史銷售趨勢外推,但這不等於預測,因為預測還要判斷模式會否改變。外推前應確認資料涵蓋至少兩個完整週期(每月 36 個月、每季 12 季)、定義前後一致,並已移除或標記離羣值;只符合兩項時,結果應降為參考範圍,三項皆不符合則應拒絕外推。假設應列明變數、範圍、時間窗口和負責監察者;信賴區間反映歷史波動而非業務風險,未發生的政策或衝擊則應另作情境分析。

正文

Drop three years of monthly sales into a chat window, ask "forecast next year," and you get a smooth upward curve in ten seconds.

Would you sign a purchasing budget against it?

Two follow-up questions usually end the conversation:

  1. If a new regulation lands next March, will that curve tell you in advance? No.
  2. Can you explain how the curve was produced? Usually not — which means when it drifts, you can only say "it was wrong" after the fact.

If you can't answer those, the missing piece isn't a better model. It's the boundary around what you're asking for.

Extrapolation is arithmetic. Forecasting is judgment.

Most of what people call "AI forecasting" at work is actually extrapolation: extending a past trend forward on the assumption that the past pattern keeps holding.

Forecasting requires answering a second question: will the pattern change?

  • Extrapolation → arithmetic. AI is excellent at it and finishes in milliseconds.
  • Forecasting → judgment. AI has no meeting notes from next March and doesn't know your industry is about to switch standards.

So the division of labor is clean: let AI do the arithmetic, and write down the judgment yourself. What you write down is called an assumption — and an assumption is not a disclaimer. It's a sentence that can be proven false by facts.

The 28% that turned out to be 9%

A restaurant supply chain team ran this in late 2023: extrapolate 2024 flour purchasing volume from store count growth. AI returned +28%. The year actually came in at +9%.

The post-mortem found nothing wrong with the arithmetic. AI used new store openings as the driver. Real purchasing volume was pinned by declining per-store usage at existing locations. Two variables moving in opposite directions, and the model only saw one.

That's not a math error. Nobody wrote "per-store usage stays flat" down as an assumption, so nobody tested it.

Three tests before you let AI extrapolate anything

Miss one, and the honest move is to admit this round shouldn't be extrapolated.

1. The history must cover at least two complete cycles.
Monthly data: 36 months minimum. Quarterly: 12 quarters minimum. Two cycles, not two data points — with a single peak-and-trough you cannot separate seasonality from coincidence.

A school uniform wholesaler had only one autumn peak (2023) and AI projected 2024 autumn would double. It had learned a one-off back-to-school bulk order as if it were a pattern.

2. Definitions must not have changed over the timeline.
This is the most commonly missed failure. Finance teams hit it constantly: in 2022 a category was reclassified from admin expense to sales expense, the two tables got stitched together, and the trend line shows a fake inflection exactly at the merger month.

Before feeding anything to a model, mark the months where the definition changed — or cut the series and restart from the change point.

3. Outliers must be removed or explicitly flagged.
A few months of 2022 offline retail data are a cliff for anyone who looks. That's an event, not a trend. Feed those points into a linear fit and both slope and intercept get dragged.

All three satisfied → extrapolation is worth doing.
Two of three → downgrade the output to a "reference range," not a target.
None → refuse. Eight months of sales history produces a confidence interval so wide it has no decision value. Use year-over-year comparison plus human judgment instead.

Write the assumption so it can be proven wrong

The test is brutal: after writing the sentence, can you state what would make it false next year? If not, it's filler.

A usable assumption has three parts: variable, range, time window.

Bad: "Assume the market continues to grow steadily."

Good: "Assume East China monthly active customers stay within 2,800 ± 300 from Q1 to Q2 2026, with no single month below 2,400."

An HR version:

"Assume voluntary attrition stays between 1.8% and 2.5% per month through H1 2026, with no single month above 4% caused by organizational restructuring."

Why does that work? Next July you open the attrition report and immediately know whether the assumption held. If it held, the extrapolated hiring demand is usable as a reference. If it didn't, the model is void and you start over — no arguing about whose fault it was.

Practical note: put all assumptions in a table next to the result, not in an appendix. Three columns:

Assumption What it looks like if wrong Who watches it
East China MAU within 2,800 ± 300 Two consecutive months below 2,400 → re-run with new baseline Regional ops lead
No definitional change in cost categories A reclassification memo appears → split series at the change month Finance controller
No new regulation affecting lead times Policy draft published → move to scenario mode Compliance

That third column matters most. An assumption nobody watches is an assumption that doesn't exist.

What the confidence interval actually tells you

Here's where tools diverge, and it's worth being precise.

Spreadsheet route. Run a regression on the history (36 monthly points is a comfortable size), take slope and intercept, project forward, and use the built-in forecast sheet if your version has it — it draws the band for you. If your version doesn't, compute the interval yourself from the residuals.

The critical caveat: that band is derived from historical residuals. It says "if past volatility continues, the future probably lands here." It knows nothing about next year's policy change. Read it as a statistical volatility band, never as a business risk band.

Chat-model route. Good for fast multi-variable exploration, bad for the final number. A prompt that keeps it honest:

You are a data analyst. Here is 36 months of monthly sales (attached). Do only the following:
1. Fit a linear trend and report slope, intercept, R².
2. Project the next 4 quarters.
3. For each projected quarter, give a prediction interval and state the method used.
4. List every assumption your projection depends on, one sentence each.
5. Do NOT adjust for seasonality, policy, or "market conditions." If you think an adjustment is needed, say so instead of applying it.
6. Flag any month in the history that looks like an outlier, and say which ones you excluded and why.

Point 5 is the one people skip. Without it, the model silently applies its own judgment and you lose the ability to separate arithmetic from opinion.

Keep policy and shocks outside the model

The rule I use: anything that hasn't happened yet does not belong inside the extrapolation. New regulation, a competitor entering, a subsidy expiring — these are scenario switches, not data points.

Run the base extrapolation on clean history. Then, separately, write down: "If regulation X lands in March, base volume drops by roughly Y% for Z months, based on [comparable past event]." Now you have two artifacts — a baseline you can defend and a scenario you can update — instead of one curve pretending to know the future.

The uncomfortable summary

Extrapolation is cheap. Assumption-writing is the work.

  • Two full cycles, stable definitions, labeled outliers → otherwise don't extrapolate.
  • Every assumption gets a variable, a range, and a time window — and an owner.
  • The confidence interval is a volatility band, not a risk assessment.
  • Anything that hasn't happened yet goes outside the model, as a scenario.

The value isn't a more accurate number. It's that when the number turns out wrong, you can point at the assumption that broke — and fix the process instead of blaming the tool.


I wrote a longer Chinese version of this walkthrough — including the three prompt templates I actually use, the small-sample refusal rule, and a full failure-case teardown — here: 历史数据外推的边界:三件事AI算不准

If you've had an extrapolation blow up in a budget meeting, I'd genuinely like to hear which assumption failed.

來源:DEV Community · dev.to