Project overview

FORECASTING & PLANNING · SC-13

R Shiny Forecasting & Scenario Planning Application

An interactive R application for decomposition, forecasting and business what-if scenarios.

Starting point

Aggregate accuracy can hide weak planning performance and lead to the wrong stock, capacity or financial action.

01 · BUSINESS PROBLEM

A forecast only matters at the horizon where a decision is made.

Aggregate accuracy can hide weak planning performance and lead to the wrong stock, capacity or financial action.

01

Hidden bias

Average error can look acceptable while direction is systematically wrong.

02

Wrong horizon

A model can be useful short term and weak for longer planning.

03

No decision link

Accuracy without an operating action creates little value.

02 · DECISION LOGIC

Evaluate the model where the business uses it.

Forecast quality is separated by horizon and compared with simple baselines.

Decision sequence

Each stage answers a different operating question

1MNear term

Immediate operating signal.

3MShort range

Planning before uncertainty compounds.

6MMedium range

Model degradation becomes visible.

9MLong range

Usefulness is judged as its own decision.

Decision rule — Model complexity only matters if it changes a planning decision.

03 · WHAT CHANGED

From forecast quality to planning action.

The system connects prediction, backtesting, scenario assumptions and the decision layer.

01

Benchmark against simple statistical baselines.

02

Evaluate error and bias by horizon.

03

Expose scenarios and planning assumptions.

04

Translate outputs into stock, capacity or financial decisions.

04 · ARCHITECTURE

A modular path from input to decision.

Inputs → preparation → core logic → validation → decision output

SC-13 · SYSTEM ARCHITECTURE

Inputs → preparation → core logic → validation → decision output

Public portfolio implementation

Inputs

01

Source signals

Capture the operating inputs required by the system. [R]

02

Preparation layer

Normalize context and create a stable analytical contract. [Shiny]

Core system

03

Core engine

Run the main analytical or automation logic. [forecast]

04

Decision logic

Apply the rule, model or orchestration logic that changes the decision. [fable]

Validation

05

Validation

Test outputs against explicit quality criteria. [ggplot2]

06

Controls

Keep approvals, thresholds or constraints visible. [dplyr]

Decision output

07

Decision output

Expose the result in a form the user can act on. [DBI]

08

Monitoring

Record outcomes, exceptions and evidence for iteration. [PostgreSQL]

Integration boundaries

R

Defined responsibility inside the system; replaceable if another tool fits the requirement better.

Shiny

Defined responsibility inside the system; replaceable if another tool fits the requirement better.

forecast

Defined responsibility inside the system; replaceable if another tool fits the requirement better.

05 · EVIDENCE & ECONOMICS

Measure what changes the decision.

Public implementation, inspectable technical proof and decision-focused validation.

Model evaluation

WAPE

8.1%

Representative public example.

Scenarios

3

Representative public example.

Periods

24

Representative public example.

Planning coverage

Models compared

5

Representative public example.

Drivers

6

Representative public example.

Reference economics

€1.5M

Reference scenario

4%

Illustrative improvement

€60k

Decision value

06 · TECHNICAL PROOF

Review the code behind the project.

Tools used

R01
Shiny02
forecast03
fable04
ggplot205
dplyr06

BUSINESS CONCLUSION

Forecasting creates value when it changes the plan.

The useful output is not the prediction itself; it is a better decision made with explicit uncertainty.

Tell us about a similar problem