Time Series
Last updated
Last updated
Predict sales behavior in the coming months. This is an application of Time Series. In essence, the technique relies on a date column and a metric, to analyze three factors:
Seasonality: peaks at certain cyclical moments (e.g. Christmas).
Trend: analyzes the speed of growth, decline or stagnation.
Amplitude: if there are rises and falls over time, it measures whether the distances between peaks and valleys have intensified or not.
Gaio can project the next months or days. Gaio uses the Facebook algorithm, Prophet, to perform calculations.
Various techniques and parameterizations are applied to the data, generating several projections and their errors are calculated. The model with the lowest error is chosen and the projections are saved in a table in Gaio.
To make projections, click the table that contains a date column and the metric you want to project. Under Tasks, click Time Series.
Define the name of the table to be generated with the projections.
Select the column that has the date that will be used for modeling and your sequence will be projected.
Measure : a numeric column must be entered in this location so that it can be projected. If the table is not aggregated, Gaio will add the values in this column automatically.
Frequency : you can choose whether projections are made daily or monthly.
Classification : This field is optional. If any column is entered, Gaio will build a series for each value. Example: salesperson. Gaio will calculate as many series as there are salespeople in the company.
Period : define how many periods (days or months) you want to be projected.
The result of executing the Time Series brings a set of columns according to the image below:
category : if a column has not been defined in the Classification item in the table configuration, this column will have the value nd in all rows. If you have defined, for example , State as the Classification column , for each State there will be a large set of rows in this generated table. For States with less than two lines, no series will be generated.
dt : column of dates in the historical table that also has future dates for projections.
real : historical values of the column chosen as Measure in Configuration.
type : receives the actual and forecast values , to separate the historical period from the projection period.
forecast: This column has values for all lines, historical and forecast . This is because the model makes projections for the entire past, where it can calculate how far from reality the projections are.
lower : lower limit of projections.
upper : upper limit of the projections.
It is generally desired to present the series and its projection graphically. In the Report task, there is an exclusive graph for Time Series .
To create a chart when only one series was projected (without a column in the Classification ), go to Reports, drag all the fields except the category and sort in ascending order by the dt column , the date. Then choose the graphic in the image below:
The result should be something similar to the graph below. The blue balls are the actual historical results. The green line is the model, which is applied to the past and future, generating projections.