AI FUNDAMENTALS AND EDUCATION · KOV AI KNOWLEDGE

Time-series forecasting for students: implementation decisions

A student time-series forecasting project involves more than selecting an algorithm and generating a prediction. You need to decide what question to answer, what data is suitable,

Discuss your project ↗

A student time-series forecasting project involves more than selecting an algorithm and generating a prediction. You need to decide what question to answer, what data is suitable, how far ahead to forecast, which method is appropriate, how to test it and how to explain the result.

These decisions shape the quality of the work. A simple method applied to a well-defined question can be more convincing than a complex model applied to unsuitable data. This guide provides a structured way to plan and implement a student project, understand the main trade-offs and communicate the choices you make.

1. Begin with a question, not an algorithm

First identify the real-world quantity you want to estimate over time. Examples include daily bicycle rentals, weekly electricity use, monthly visitor numbers, hourly website traffic or weekly product demand.

Turn the topic into a specific forecasting question:

  • What will the daily number of bicycle rentals be over the next seven days?
  • What will monthly electricity consumption look like for the next three months?
  • How many website visits should a service expect next week?
  • What is the likely weekly demand for a particular product?

A useful project statement identifies the target, time interval, forecast horizon and intended use. “Use AI to predict sales” is too broad. “Estimate weekly unit sales for the next four weeks from the available historical weekly series” is more testable.

Do not choose a method before you know what output the project requires.

2. Establish whether the task is a forecasting problem

Forecasting estimates future values from information available at the time a prediction is made. It differs from describing the past, explaining a relationship or assigning a category.

For example, reporting last month's electricity consumption is descriptive analysis; estimating next month's consumption is forecasting. Investigating why consumption increased is explanatory analysis. Predicting whether a customer will cancel a service is a classification problem, even if historical events are time-stamped.

A project may combine these tasks, but the methods and evaluation criteria should be clear. Make sure the target is genuinely future-oriented and that the information used to make each forecast would have been available at that time.

3. Define the target and its unit precisely

Write down exactly what is being forecast. A target should have a clear meaning and unit.

Examples include:

  • Number of orders per calendar day.
  • Energy consumption in kilowatt-hours per hour.
  • Revenue in a specified currency per month.
  • Average waiting time in minutes per day.
  • Number of active users per week.

Resolve details that can otherwise make results ambiguous. Does a sales series count orders or units? Are cancelled orders included? Does revenue mean gross or net revenue? Are days with no activity recorded as zero, or are they missing because a system did not report?

Document the target definition and any exclusions. A model cannot correct an unclear measurement definition.

4. Choose the time frequency and aggregation

The frequency should match both the data and the decision. Common choices include hourly, daily, weekly, monthly and quarterly observations.

Consider how often the source records information, how quickly the underlying process changes, how often a decision is made, whether enough history exists at the chosen frequency and whether aggregation hides important peaks.

Monthly totals may be appropriate for a high-level budget exercise but unsuitable for studying daily staffing needs. Hourly observations may reveal short peaks but also create more noise and data-quality work.

Do not convert data to a different frequency without documenting the rule. Summing hourly energy readings and averaging hourly temperatures are different operations because the measurements have different meanings.

5. Select a forecast horizon that can be evaluated

The forecast horizon is how far into the future a prediction extends. A one-step-ahead forecast estimates the next observation; a multi-step forecast estimates several future observations.

Choose a horizon that is relevant to the question, compatible with the available history, long enough to demonstrate the intended task and short enough to evaluate meaningfully within the project.

Forecasting one day ahead is not the same problem as forecasting six months ahead. Errors often grow with the horizon, and the most useful method may change as the horizon changes. State the horizon in the project proposal and report results separately by horizon when evaluating multiple future steps.

6. Inspect the data before committing to a method

Before modelling, create a data profile. Check:

  • Start and end dates and number of observations.
  • Expected and actual time intervals.
  • Missing timestamps and missing values.
  • Duplicate records.
  • Units and measurement definitions.
  • Extreme or unusual values.
  • Changes in collection methods.
  • Whether the history includes relevant seasonal cycles.

Plot the series. A time plot often reveals trends, recurring patterns, sudden changes and data problems more clearly than a table.

Do not assume every gap is a zero, or every unusual value is an error. Investigate what the observation represents before choosing a treatment.

7. Check whether you have enough historical data

The amount of history needed depends on frequency, forecast horizon, variability and the patterns being studied. There is no single observation count that guarantees a reliable forecast.

A dataset with only a few weeks of daily observations may be unsuitable for evaluating annual seasonality. A monthly series with several years of history may provide more useful evidence for a yearly pattern, though it still may not represent future changes.

Ask whether the history covers relevant seasonal cycles, represents important operating conditions, leaves enough observations for testing and contains rare events or structural changes that dominate the sample. When history is limited, state the limitation, use a simple baseline and avoid claiming that the results generalize broadly.

8. Establish a baseline before trying advanced methods

A baseline is a simple reference forecast. It helps answer whether a more complicated method actually improves on a straightforward alternative.

Useful baselines include:

Last-value forecast. Predict the next value using the most recent observed value. This is also called a naïve forecast.

Seasonal naïve forecast. Reuse the value from the corresponding previous season, such as the same day of the previous week, where that pattern is appropriate and available.

Historical average. Use a mean calculated from the permitted training period.

Drift forecast. Extend the average change observed across the training history, where a trend-based assumption is reasonable.

A baseline is not a throwaway exercise. If an advanced model cannot beat an appropriate baseline on a fair test, the added complexity may not be justified.

9. Choose a method that matches the evidence and learning objective

Students do not need to use the most sophisticated method available. The following options illustrate a progression.

MethodWhat it is useful forImportant limitation
Naïve forecastA simple reference for many seriesAssumes the latest value is informative
Seasonal naïveA stable repeating seasonal patternDepends on the seasonal pattern remaining relevant
Moving averageSmoothing short-term fluctuationsCan lag behind sudden changes
Exponential smoothingLevel, trend and some seasonal patternsDepends on suitable model assumptions
Regression with time featuresExploring trend, calendar and known explanatory featuresFeature availability and changing relationships matter
ARIMA-family methodsModelling temporal dependence and differencing patternsRequires careful specification and diagnostics
Machine-learning modelsMore complex relationships with suitable training dataCan overfit and require more data and tuning

This is not a universal ranking. The right method depends on the data, the question, the project constraints and the evaluation result. For a first project, compare one or two reasonable methods with a baseline rather than testing many algorithms without a clear reason.

10. Decide whether explanatory variables are necessary

Some forecasting tasks can be approached using the target's history alone. Others may benefit from additional information such as planned promotions, calendar effects, prices, weather forecasts or operating schedules.

Before adding a variable, ask whether there is a plausible reason it helps, whether it will be available when the forecast is generated, whether its historical quality is adequate, whether it introduces privacy or licensing concerns and whether the project can test its contribution.

A variable can be highly correlated with the target and still be unsuitable if its future value is unknown. Actual future weather observations, for example, cannot be used as though they were known when a real forecast is issued. A weather forecast available at that issue time would be a more realistic input.

11. Use chronological training, validation and testing

For forecasting, the order of observations matters. A random split can allow later information to influence a model that is supposed to predict the past.

A simple chronological design is:

  1. Training period: earlier observations used to fit the method.
  2. Validation period: a later period used to compare approaches or adjust settings.
  3. Test period: the most recent reserved period used for a final, independent evaluation.

The exact proportions depend on the available data and project design. The test period should represent the forecast task and contain enough observations to interpret results.

Do not repeatedly adjust the model after looking at test results and then continue presenting that same period as an untouched test set. Once it has informed model choices, it has become part of the development process.

For smaller datasets, rolling-origin evaluation can provide a more informative comparison. Generate a forecast from an initial training window, move the forecast origin forward and repeat. Each prediction must use only information available before its forecast origin. This reveals whether a method performs consistently across different periods rather than succeeding on one convenient split.

12. Prevent data leakage

Data leakage occurs when information unavailable at prediction time influences training or evaluation. Leakage can create impressive results that cannot be reproduced in real use.

Examples include:

  • Randomly splitting time-ordered observations when later periods can enter training.
  • Calculating a rolling average with future values included.
  • Using actual future weather instead of a weather forecast that would have been available.
  • Normalizing the complete dataset before splitting, when the transformation should be fitted on training data only.
  • Including fields generated after the event being forecast.

For every feature, ask: “Would I know this value at the moment I am supposed to make this forecast?” If not, it must not be used as though it were available.

Fit preprocessing steps using training data and apply the fitted transformations to validation, test and future data. Document assumptions about when source data becomes available.

13. Decide how to handle missing observations

Missing data can arise because a sensor stopped reporting, a business was closed, an observation was not recorded or the source system failed. Those situations do not necessarily mean the same thing.

Possible treatments include investigating and correcting a source-system problem, marking an unknown observation as missing, using an imputation method where justified, aggregating to a frequency suitable for the available data or excluding a period when the reason and impact are documented.

Do not automatically replace every missing value with zero. Zero is a meaningful measurement, not a generic substitute for unavailable information. Choose a treatment based on the data-generating process and explain how it may affect the forecast.

14. Treat outliers and unusual events carefully

An unusual observation may be a data error, a one-time event or a genuine extreme value. Examples include an instrument fault, a major promotion, a public holiday, a transport disruption or an exceptional demand spike.

Investigate the source and context before removing or changing an observation. If an event is genuine, it may be important to retain it, identify it or test how sensitive the method is to it.

A useful student report explains which observations were flagged, how they were investigated, whether they were changed or retained, why that treatment was selected and whether results change under an alternative treatment. This is more transparent than silently deleting inconvenient values.

15. Select metrics that answer the project question

Forecast evaluation compares predictions with actual observations. No single metric describes every aspect of forecast quality.

  • Mean Absolute Error (MAE): average absolute difference between forecasts and actual values, expressed in the target's units.
  • Mean Squared Error (MSE): average squared error, giving relatively greater weight to large errors.
  • Root Mean Squared Error (RMSE): square root of MSE, expressed in the target's units.
  • Mean Absolute Percentage Error (MAPE): average absolute percentage error; it is when actual values are zero and can behave poorly when actual values are close to zero.
  • Weighted Absolute Percentage Error (WAPE): total absolute error divided by total absolute actual values; its interpretation depends on the data and denominator.
  • Forecast bias: a measure of whether predictions tend to be systematically above or below actual values.

State the precise formula and convention used, including the sign of bias. Compare methods on the same observations and forecast horizons. Select metrics because they help answer the project's question, not because they produce the most attractive number.

16. Inspect errors, not only the overall score

After calculating metrics, plot or examine forecast errors over time. Look for errors that are consistently positive or negative, large misses around holidays or events, deterioration at longer horizons, repeated underestimation of peaks or different performance across locations and product groups.

An average metric may hide these weaknesses. Include an error plot or a small table of errors where it supports the explanation.

Do not treat every residual pattern as proof that one particular model is required. Use it as evidence for further investigation and describe the limits of the sample.

17. Decide how much complexity the project can support

More complex methods can require more data, computing resources, specialist knowledge and tuning. They can also be harder to explain and maintain.

Before using a complex machine-learning model, ask whether it solves a limitation of the baseline, whether enough data exists to train and evaluate it, whether results can be reproduced, whether major assumptions can be explained and whether the expected improvement justifies the added effort.

For a class assignment, a clear and defensible comparison is often more valuable than a large collection of models with little analysis. Complexity should follow evidence, not fashion.

18. Choose tools based on the work required

Students may use a spreadsheet, a programming language, a notebook environment or a specialist forecasting package. The tool should fit the project's data size, learning objectives, available support and institutional requirements.

A spreadsheet may be enough for a small, transparent exercise involving a time plot and simple baseline. A programming notebook may be more suitable when the project needs repeatable data preparation, model comparison, diagnostic charts or automated evaluation.

When evaluating a tool or hosted service, check whether it supports the required frequency and method, how it handles missing values and time zones, whether workflows can be reproduced, whether versions and dependencies can be recorded, whether data handling is appropriate, and whether costs, usage limits or API restrictions apply.

Do not upload confidential or personal data to an unapproved service. Verify current features and terms from the provider's official documentation before relying on them.

19. Make the project reproducible

A project should be understandable and repeatable by another student or reviewer who has appropriate access to the data.

Record the source, licence and retrieval date of the dataset; target definition, unit and frequency; cleaning and aggregation rules; training, validation and test periods; model settings and software versions; evaluation metrics and formulas; and limitations and known exceptions.

Use consistent file names and keep analysis code separate from original source data. Avoid placing credentials or restricted records in a public repository. Where data cannot be shared, describe the access restrictions and provide a safe example where possible.

Reproducibility does not mean publishing sensitive data. Protecting the source while documenting the method is an important part of sound project work.

20. Plan the forecast output for its intended reader

A forecast table alone may not communicate what a reader needs to know. A useful output identifies:

  • Forecast issue date or time.
  • Target and unit.
  • Forecast horizon.
  • Predicted values.
  • Uncertainty interval, when available and appropriately evaluated.
  • Important assumptions and data limitations.
  • Baseline or comparison method.

A chart should distinguish historical observations from forecasts. Label axes, units and forecast boundaries clearly. Avoid implying more certainty than the method supports.

If a forecast is used as an input to a decision, explain that it is an estimate and identify decisions that require human judgement.

21. A worked project-planning example

Suppose a student wants to forecast weekly visitor numbers for a public museum over the next four weeks.

Question. Estimate the number of visits in each of the next four weeks using historical weekly counts.

Target. Total recorded visits per week, with a documented definition of a visit.

Frequency and horizon. Weekly observations and a four-week horizon.

Data checks. Confirm that weeks use a consistent calendar convention, inspect missing periods and identify temporary closures or major events.

Baseline. Begin with a last-value or suitable seasonal-naïve forecast if the available history supports the seasonal comparison.

Candidate method. Compare a simple trend or seasonal method only if exploratory analysis indicates that the added structure is reasonable.

Evaluation. Use chronological training and test periods, and compare errors on the same four-week forecast task. Do not allow future visitor counts to influence features or model fitting.

Interpretation. Explain how closures, unusual events and changes in opening arrangements could affect future visits. Do not present the forecast as a confirmed attendance figure.

This project is specific enough to evaluate while leaving room for the student to justify different modelling choices based on the actual dataset.

22. Common implementation mistakes

MistakeWhy it mattersBetter decision
Choosing an algorithm before defining the targetThe method may not answer the intended questionSpecify target, unit, frequency and horizon first
Randomly splitting a time seriesFuture observations may influence trainingUse chronological evaluation
Skipping a baselineThere is no clear reference for improvementEvaluate a simple method first
Treating missing values as zeroMissing observations and true zero values differInvestigate the cause and document treatment
Using unavailable future featuresResults cannot be reproduced at forecast timeUse only information available at the forecast origin
Reporting one metric onlyBias or segment errors may be hiddenCombine suitable metrics with error inspection
Overcomplicating a small projectComplexity may exceed the available evidencePrefer the simplest defensible approach
Hiding limitationsReaders may over-trust the resultState assumptions, uncertainty and known weaknesses

23. A student implementation checklist

Before modelling

  • [ ] Write a specific forecasting question.
  • [ ] Define the target, unit, frequency and horizon.
  • [ ] Confirm that forecasting is the appropriate task.
  • [ ] Check data-source permissions and privacy requirements.
  • [ ] Inspect history length, missing values, duplicates and unusual events.
  • [ ] Plot the series and record initial observations.

During implementation

  • [ ] Establish a suitable baseline.
  • [ ] Select methods that fit the data and learning objective.
  • [ ] Use chronological validation and testing.
  • [ ] Prevent leakage in features and preprocessing.
  • [ ] Record model settings and software versions.
  • [ ] Compare performance on equivalent forecast periods.

Before submitting

  • [ ] Report clear metrics and explain their limitations.
  • [ ] Inspect forecast errors over time.
  • [ ] Include a labelled chart or table.
  • [ ] Explain the result in relation to the original question.
  • [ ] State limitations, assumptions and uncertainty.
  • [ ] Check that files and outputs do not disclose restricted information.
  • [ ] Make the workflow reproducible within permitted data-access rules.

24. A practical decision sequence

A useful order for making implementation decisions is:

  1. Purpose: What future quantity needs estimating, and why?
  2. Definition: What exactly is measured, in which unit and at what frequency?
  3. Evidence: Is the historical data suitable and sufficient for the intended horizon?
  4. Reference: What simple baseline provides a fair starting point?
  5. Method: Which candidate approach is justified by the observed patterns?
  6. Evaluation: How will the approach be tested without using future information?
  7. Interpretation: What do the errors, uncertainty and limitations mean?
  8. Delivery: How should results be presented, reproduced and protected?

Following this sequence helps students explain not just what they built, but why the implementation choices make sense.

How KOV can support a forecasting initiative

KOV can assess a proposed time-series forecasting use case, map relevant people, data and systems, identify feasible AI options and define a scoped implementation. Where appropriate, this may include workflow design, integration of approved tools, human review, monitoring and measurement against agreed business objectives.

For a student or educational setting, the useful starting point is a clearly defined problem, an appropriate dataset and a defensible evaluation plan. KOV's role is to help scope a practical approach where support is needed; it does not replace academic supervision or promise a particular forecast result.

Further verification and editorial notes

Before publication, add and verify authoritative references for time-series validation, forecasting metrics, data leakage, model selection and reproducible analytical workflows. Check product capabilities, provider features, prices, API access, regulations and platform policies against current official documentation. Cite primary sources and record the verification date.

This article is educational material. It is not a guarantee of forecast performance or a substitute for academic instruction, statistical review, or specialist advice for high-impact decisions.

PUT KNOWLEDGE INTO PRACTICE

Need help applying this to your business?

KOV can assess your current process, systems and requirements, then help define a practical AI strategy, integration or implementation plan.

Discuss this with KOV ↗