Jae Wilson @DataCrew
Domo

🧪🚀 Basic Forecasting in Magic ETL 🚀🧪

October 3, 2022

Why do we do Forecasting?  To predict the future.

FOLLOW-UP QUESTION (that we always forget to ask).

🔮🎴 How good are we at predicting the future? 🔮🎴

Free YouTube Full Tutorial
** note, my video won't show you how to make a "good" forecast, or "performance tune" your forecast.  Instead it focuses on how you should consider structuring your data in Domo.  Which forecasting model you use is up to you, you could try rolling 90, rolling 30, naive etc.  

How do you know which forecast to use?  Check out the segment where I talk about Cost Equations.

CRITICAL CONCEPTS

Unit of Analysis

Forecasting applies “crazy math” to a dataset to predict “the next row of data”

  • The INPUT must be at the same granularity as the OUTPUT

Aggregate your Data to the same granularity.  If the data is at the transactional level, use a GROUP BY tile. 

CATEGORICAL DATA vs. NUMERIC DATA

The model does not understand “concepts” or “categories”.

  • The model reduces the world to numbers.  (even categories get converted to numbers)
  • Some Data models support ORDERED columns // many do not.
  • Some columns are discrete (bucketed) others are not.
  • Some columns have boundaries or exist on a scale (temperature, percentage) others do not (sales price, distance)

Generate one Forecast Tile for each categorical variable combination (ex. Stores and items)
You MUST GROUP BY | 

Increase the Accountability of your Forecast Model

  1. Use multiple flows (Offset = 7, 14 or 21) to capture the historical forecast

  2. JOIN actuals onto the predictions so you can calculate absolute error or a cost equation to ascertain "how bad" your prediction was.

  3. Consider comparing previous forecasts (with the WINDOW function) | 
    GOOD LUCK!
    I've covered some best practices before in this video
    https://www.youtube.com/watch?v=lhj9zcwai98

And actually have an entire channel about Data Science
https://www.youtube.com/watch?v=_UGd0Ug9D5M&list=PLUy_qbtzH0S6HKLlz_MG_gRH2VKhi36sW

Questions?  Join the Domo Slack Community
https://join.slack.com/t/domousergroup/shared_invite/zt-1fo623tm8-dUAf6Aq6vNOG1ad79BueyA

Want to view the ETL? Jump into the Domo-Dojo sandbox
https://domo-dojo.domo.com/datacenter/dataflows/102/graph

Related

More posts on similar topics.

Got a project in mind?

hire me →

Getting value from the content but not ready to hire?

let's call it professional development

☕ buy me a coffee →

Want a practitioner take on Domo and AI, every month?

free, no spam, unsubscribe anytime

📰 subscribe to the digest →