Data Officer · Synthetic data demonstration
Exploring a
forecasting approach.
My historical Python study used public Census data to explore exponential smoothing. Here, invented index values demonstrate the approach.
Start with a source
Retrieve Statistics Canada’s livestock table, select Canada and dairy cows, and isolate the number of farms reporting.
Make time explicit
Index the observations by year, interpolate an annual series and separate a training period from a comparison period.
Fit and compare
Explore exponential smoothing with a multiplicative trend, plot the comparison and calculate error measures before extending the series.
The steps describe the historical study. The chart is a new synthetic example: its index values, sample periods and projection are not farm counts or estimates for any place or year.
Historical study source, not chart data: Statistics Canada, Table 32-10-0155-01 — Selected livestock and poultry, Census of Agriculture historical data.