0Pricing
Data Science Academy · Lektion

Eine erste Prognose-Baseline

Naive Prognosen und gleitende Mittelwerte

Eine erste Prognose-Baseline ist eine kostenlose Data Science Academy-Lektion auf CoddyKit. Dies ist Lektion 4 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Data Science Academy-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Data Science Academy-Kurs umfasst insgesamt 4 Lektionen.

Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.

Always Start Simple

Before fancy models, you need a baseline: a dead-simple forecast that anything fancier must beat to earn its place. 🪜

The Naive Forecast

The simplest baseline is the naive forecast: predict that tomorrow equals today. Surprisingly hard to beat for steady data.

forecast = sales.iloc[-1]

Carrying the Last Value

A naive forecast just repeats the most recent observation forward. No trend, no season, just the latest known point.

The Seasonal Naive

For cyclical data, predict the value from one full season ago. This seasonal naive respects repeating patterns cheaply.

forecast = sales.shift(12)

Moving-Average Forecast

Another baseline averages the last few points. A moving average smooths out noise and projects that level ahead.

forecast = sales.tail(7).mean()

Split Before You Forecast

Keep the last chunk of time as a test set. Never shuffle it: time order must be preserved so the future stays unseen.

train, test = sales[:-30], sales[-30:]

Measure the Error

Compare predictions to the held-out truth with an error metric. MAE reports the average size of your mistakes in real units.

from sklearn.metrics import mean_absolute_error

The Number to Beat

Your baseline's error becomes the benchmark. Any model that scores worse is not worth its extra complexity.

Plot Truth Versus Forecast

Always plot the prediction over the real test values. Your eyes catch lag and bias that a single number can hide.

When Naive Wins

If a complex model cannot beat naive, trust the simple one. Simplicity that performs is a feature, not a failure.

Where to Go Next

With a baseline set, you are ready for real models like ARIMA or Prophet, each judged against this honest starting point.

Quick Check

What does a simple naive forecast predict for the next time step?

Recap: Earn the Complexity

You built naive, seasonal, and moving-average baselines, then measured error so future models must prove they are better.

Häufig gestellte Fragen

Ist die Lektion „Eine erste Prognose-Baseline“ kostenlos?

Ja — der vollständige Text von „Eine erste Prognose-Baseline“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Data Science Academy-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Data Science Academy-Kurs umfasst insgesamt 4 Lektionen.

Was lerne ich in „Eine erste Prognose-Baseline“?

Naive Prognosen und gleitende Mittelwerte Du übst Data Science Academy mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.

Brauche ich Erfahrung, um Data Science Academy zu starten?

Keine Vorkenntnisse erforderlich. Data Science Academy auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 4 von 4.

Wie lange dauert die Lektion „Eine erste Prognose-Baseline“?

Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.

Kann ich in dieser Data Science Academy-Lektion Code schreiben und ausführen?

Ja. Jede Data Science Academy-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.

Alle Lektionen in diesem Kurs

  1. Trend, Saisonalität und Rauschen
  2. Gleitende Fenster und Lags
  3. Stationarität und Differenzbildung
  4. Eine erste Prognose-Baseline
← Zurück zu Data Science Academy