Data Science

How do I handle missing data in time-series predictive models without biasing the final results?

SA Asked by Sarah Miller · 14-03-2024
0 upvotes 12,559 views 0 comments
The question

I'm currently working on a predictive analytics project involving seasonal sales data. I’ve noticed several gaps in my dataset due to system downtime. What are the best practices for handling missing values in time-series forecasting to ensure the model's accuracy doesn't plummet? Should I use simple mean imputation, or is something like Kalman Filter or forward fill better for maintaining trend integrity? 

3 answers

0
JE
Answered on 18-05-2024

For time-series predictive analytics, simple mean imputation is generally discouraged as it ignores the temporal dependencies of your data. Instead, consider using Linear Interpolation or Seasonal Adjustment if your data has clear cycles. If the gaps are small, Forward Fill (LOCF) is often effective. For more complex datasets with significant gaps, the Kalman Filter provides a robust mathematical framework to estimate missing states. Always validate your model using a "hold-out" set that includes these imputed values to ensure that your chosen method hasn't introduced artificial volatility or suppressed natural trends. 

0
D
Answered on 20-06-2024

This is a common hurdle! Are you seeing these gaps at random intervals, or is there a specific pattern to when the system downtime occurs? Knowing the "Missingness" type helps choose the tool. 

MI 26-06-2024

Most of the gaps are occurring during late-night batches, so they are somewhat systematic. I'm worried about losing the night-time baseline. If the data is Missing at Random (MAR), I’d suggest looking into MICE (Multivariate Imputation by Chained Equations). It accounts for relationships between multiple variables rather than just looking at the single time-series column in isolation.

0
LI
Answered on 10-07-2024

I usually stick to spline interpolation for sales data. It preserves the "curviness" of the sales cycles much better than a straight linear approach would.

SA 12-07-2024

I totally agree with Linda. In my experience with retail forecasting, spline interpolation prevents the sharp, unrealistic angles that linear methods create.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session