
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Master time series analysis and forecasting with python, covering exponential smoothing and cutting-edge models like LinkedIn, Silver Kite, Prophet, and Amazon Cronos for real-world predictions.
Discover the 2026 update to master time series analysis and forecasting with Python, featuring crisper videos, an AI assistant, and a six-part structure with time series graveyard and new exercises.
Explore version one of the time series assistant, review its architecture and core functionalities, and learn its capabilities and limits for time series analysis.
Diogo introduces his analytics-focused background, including management science and data-driven business work, and invites you to connect, learn, and apply insights from a restaurant analytics startup.
Master time series analysis and forecasting in Python by exploring data, identifying seasonality, and applying models from exponential smoothing to ARIMA, while practicing with real data and a capstone project.
Explore time series data with Python, learn to spot patterns and trends, and turn numbers and dates into visual stories. Preview forecasting concepts with real-world examples and simple, hands-on coding.
Explore time series data with the Bitcoin daily price dataset (2014–2023) to reveal volatility, trends, autocorrelation, and seasonality for forecasting and real-world applications, including weather forecasting and economics.
Master the time series index by converting dates to date-time objects and setting them as the dataframe index, using pandas, matplotlib, and statsmodels for efficient analysis, plotting, and resampling.
learn to use exploratory data analysis to understand time series by computing seven-day rolling averages, plotting close prices, and performing monthly resampling for mean and index max.
Compute percentage changes of closing prices with pandas to derive daily returns and reveal volatility. Identify days with more than 10% change using absolute values, noting the 97 volatile days.
Learn to enhance data visualization by adding titles and plotting daily closing price with a 30-day rolling volume on a dual-axis chart to reveal correlations.
Learn practical data manipulation for time series: identify missing values, apply backward and forward fill, interpolate, and compute 7-day closing averages and 30-day rolling volume with pandas.
Explore time series feature engineering by extracting date features from the index, year, month, day, day of week, weekend, and add lagged variables for forecasting.
Learn seasonal decomposition of time series into trend, seasonality, and error terms. Distinguish additive from multiplicative seasonality using visualization and model performance in Python.
Visualize seasonality in time series using month plots and quarter plots from Statsmodels, compare actual monthly values to their averages, and explore resampled monthly data.
Examine seasonal decomposition of a time series by separating trend, seasonal cycles, and noise, using seasonal decompose for monthly data with period 12 and additive or multiplicative seasonality.
Explore autocorrelation by comparing a time series with its lagged values to reveal how past information helps predict the future.
Explore autocorrelation and partial autocorrelation with statsmodels, visualizing lagged relationships in time series data. Interpret these plots to understand information added by specific lags and seasonal patterns for future forecasting.
Explore the partial autocorrelation function (pacf) to isolate direct relationships between current values and past observations, removing intermediate effects, and contrast with the autocorrelation function.
Analyze partial autocorrelation with Python using Bitcoin adjusted close to reveal that the day before holds unique information. Learn to identify informative lags with pacf and relate them to acf.
Explore time series forecasting of stock prices by modeling errors with relevant regressors, assessing data relevance, and understanding external factors like events, economic conditions, and sentiment.
Review how we transformed raw time series data into stories by analyzing trends, applying Python libraries, and visualizing seasonality and autocorrelation to forecast stock prices.
Analyze how forecasts miss the mark through cases like fidget spinners, LTCM, Google Flu Trends, and the Hindenburg omen, and learn the limits of models.
Load the department sales data into a pandas DataFrame, parse and format dates, set the date index, and configure weekly frequency to ready the data for time series analysis.
Plot the weekly sales from the data frame, set a title and figure size, and mark holidays with vertical red dashed lines to reveal their relationship to sales.
Conduct exploratory data analysis on weekly sales using acf and pacf with 60 lags and perform multiplicative seasonal decomposition with a 52-week period to reveal trend, seasonality, and residuals.
Learn to turn raw time series data into insight using Python, with real data, real questions, and real decisions, by slicing data, spotting patterns, and testing ideas.
Learn to load a time series dataset with pandas, inspect the dataframe, explore state holiday values using value counts, and binarize holidays to a 0/1 indicator in Colab.
Learn to explore retail data by counting stores, subsampling ten stores with a fixed random state, and compute mean sales per store, then identify each store's all-time high day.
Set date column as index to enable date time handling, group by day of week and store to compute mean sales, and visualize weekday patterns with a line plot.
Standardize weekday sales with z-scores to enable apples-to-apples store comparisons. Group by store and day of week and analyze mean standardized sales to reveal Sunday seasonality and other patterns.
Filter the data for day seven and visualize store sales with matplotlib. Notice Sundays can introduce noise in standardization.
Remove day-of-week seven observations for store 353 to clean the data, then standardize sales by store and analyze intra-week seasonality with a visual intro-week plot.
Analyze the impact of promotions by comparing average sales on promotion days versus non promotion days, then compute per store promo uplift and identify top and bottom performers.
Learn exponential smoothing and Holt-Winters in Python, covering simple, double, and triple methods through a case study, measure forecast errors, handle weekly vs daily data, and assess pros and cons.
Explore a Telco Wave case study to forecast weekly customer complaints, analyze data and hidden patterns, and align the workforce with customer needs to reduce complaints and boost profits.
Set up exponential smoothing with holt-winters, prep weekly customer complaints data, rename the series to y, clean commas, convert to integer, and plot to reveal trend and multiplicative seasonality.
Analyze seasonality in weekly data, resample to monthly with month end, and assess multiplicative versus additive seasonal models using Holt-Winters, guided by autocorrelation insights.
Split time series data into training and test sets by removing the last periods and using an 80/20 split for unbiased evaluation, with two to three training periods.
Split the time series into training and test sets for a 13-week horizon, select the usable Y, and apply simple double and triple exponential smoothing against the business goal.
Explore how simple exponential smoothing blends the current level with recent observations via alpha to forecast and smooth spikes in time series data.
Explore simple exponential smoothing with statsmodels to forecast time series by updating the level using a smoothing coefficient, fitting to training data, and generating forecasts.
Apply double exponential smoothing to capture both level and trend in sales data. Use alpha and beta to weight recent data and trend changes, noting no seasonality.
Build a double exponential smoothing model in Python to predict and visualize time series, using statsmodels with additive trend and no seasonality.
Explore triple exponential smoothing, aka Holt-Winters, for time series with level, trend, and seasonality. Learn how alpha, beta, and gamma weight the components to improve forecasting and handle seasonal patterns.
Apply Holt-Winters triple exponential smoothing with multiplicative seasonality to forecast time series weekly data, using a 52-week seasonal period and evaluate forecast errors in Python.
Learn to measure forecast accuracy with mean absolute error, RMSE, and MAPE. Explore their tradeoffs, including interpretability, outlier handling, and when to compute them in Python.
Analyze model outcomes by computing RMSE, MAE, and MAPE using sklearn.metrics, comparing true versus predicted values, and formatting results in a reusable model assessment function for time series evaluation.
Learn to predict the future with a Holt-Winters model. Compare additive and multiplicative seasonality, tune parameters, test on 13-week forecasts, and plot training data against the forecast.
Load bitcoin price data and prepare daily data with a date index and adjusted close. Fit a Holt-Winters model, test seasonal periods of 7 and 365, and discuss crypto volatility.
Explore Holt-Winters, a simple forecast method for trend and seasonality that relies on recent data with level, trend, and seasonal components, but supports only one seasonal factor and no regressors.
Study the capstone air miles time series by setting monthly frequency, visualizing data, forecasting the next 12 months with holt-winters, and evaluating errors with MAE, RMSE, and MAPE.
Learn to prepare monthly time series data in Python, visualize trends and seasonality, perform multiplicative seasonal decomposition, assess ACF and PACF, and set up training and test sets.
Complete task three: set the last 12 months as the test set and the training data. Build the Holt-Winters time series model with exponential smoothing and multiplicative seasonality.
Learn to forecast 12 periods with an exponential smoothing (holt-winters) model, assess accuracy with metrics, visualize training, test, and future predictions, and explore EDA and frequency as building blocks.
Explore the foundational ARIMA, SARIMA, and SARIMAX models and their use in time series forecasting. Apply cross-validation, parameter tuning, and external factors in real-world data examples with statsmodels.
Forecast daily revenues for a chocolate shop using past sales data to uncover patterns, seasonal trends, and holidays, then plan inventory and staffing with ARIMA models and external regressors.
Set up the arima workflow in python, preprocess data, parse dates, and configure daily frequency. Explore seasonality and autocorrelation to guide data-driven parameter selection, with multiplicative decomposition insights.
Master arima concepts including autoregressive, integrated and moving average components, seasonality, and exogenous regressors, and learn how past values and past errors forecast time series.
Explore the autoregressive component of Arima, where the past values and lagged data predict the future, with examples like coffee consumption and chocolate revenues.
Explore the integrated component of ARIMA by applying differencing to convert nonstationary data into stationary signals, and learn how the augmented Dickey-Fuller test checks stationarity to improve predictions.
Assess stationarity with the augmented Dickey-Fuller test, interpret the p-value against 0.05 for the null of a unit root, and apply differencing to obtain a stationary time series.
The moving average component of ARIMA learns from previous prediction errors to smooth data, adapt quickly to recent changes, and improve forecasts by incorporating past mistakes.
Explore ARIMA modeling in python with a train–test split, nonseasonal order, and forecasting using endogenous and exogenous inputs like discount and coupon rates for 30 days.
Explore ARIMA in practice: use past values t-1, t-2, t-3, a constant, and forecasting errors with differencing and a rolling forecasting approach, building toward sarima.
Explore SARIMA, building on ARIMA, by adding a seasonal component to capture seasonality, using PDQ and seasonal m to separate seasonal and non-seasonal data for cleaner forecasts.
Build a sarima model, select initial parameters, and test seasonal orders (7 and 365 days). Assess predictions and model performance, noting computational limits and the potential of external variables.
Explore how SARIMA combines ARIMA components, seasonal lags at t-7 and t-14, and past forecast errors to generate a final forecast.
Master time series analysis with SARIMAX, which combines SARIMA with exogenous variables to incorporate external factors like temperature and holidays for better forecasts.
Learn SARIMAX with exogenous regressors, clean data by removing percentage symbols, and forecast using discount rate and coupon rate. Emphasize cross-validation and parameter tuning.
Explore building a sarimax-style forecast by combining non-seasonal arima components, seasonal terms, and exogenous variables like discount and coupon, resulting in a six-component forecast; then master cross-validation and parameter tuning.
Master cross-validation for time series by testing across different seasonalities with rolling and sliding forecasts. Extend and trim training data to build robust forecasts and assess model performance.
Learn to implement time series cross-validation with a time series split, set up train and test windows (last 30 days), apply ARIMAX, and evaluate with RMSE, MAE, and Mop.
Tune parameters to maximize forecast accuracy by systematically testing autoregressive models with different lags, using a reusable template and automated error tracking in Python.
Explore parameter tuning for time series models by building an eight-combination parameter grid, applying time-series cross-validation with RMSE, and optimizing forecasting performance.
Explore parameter tuning for time series analysis using grid search and cross validation with sarima models (p, d, q), compute rmse, and store results for robust forecasting.
Explore parameter tuning results for a time series model by transforming the RMSE grid into a data frame, identifying the best params, and preparing for future forecasting with lagged features.
Discover how to handle future data in time series forecasting by identifying future regressors, coordinating with finance and marketing teams, and building exogenous inputs for models like N-Beats and TFT.
Isolate the target and features, load and format future regressors, apply best parameters, adjust units by multiplying by 100, and prepare to predict future discount and coupon rates.
Build and tune a sarimax model, perform cross-validation and parameter tuning, fit and print the summary, then generate future predictions and plot the results.
Explore SARIMAX pros and cons, compare Holt-Winters, and use the PMD removal library for quick cross-validation, noting short-term strength, long-term limits, and single seasonality.
Master modern time series forecasting with Prophet and Silver Kite. Set up the Python environment, model seasonality and holidays, and tune parameters for accurate forecasts.
Learn time series analysis and forecasting with Python, from your first datetime index to deep learning and generative AI.
Forecasting is fundamental in business: demand forecasting, revenue and cost estimates all start with one. In this course you code every model line by line in Python, from classical statistical models to machine learning and deep learning, and learn why each one works, with intuition and visuals instead of heavy maths.
What you will learn
Time series analysis: datetime index, exploratory data analysis, seasonal decomposition, autocorrelation and partial autocorrelation
Exponential smoothing and Holt-Winters: trend and seasonality, error metrics (MAE, RMSE, MAPE), training and test sets
ARIMA, SARIMA and SARIMAX: stationarity, external variables, cross-validation for time series and parameter tuning
Facebook Prophet: holidays, regressors, feature engineering and tuning, on a bike sharing demand case
Intermittent time series: forecasting data full of zeros with AutoARIMA and the Darts library
Deep learning for forecasting: LSTM, Temporal Fusion Transformers (TFT) and N-BEATS, for one series and for many
Generative AI for forecasting: Amazon Chronos and Chronos-2
Modern forecasting tools: Amazon AutoGluon and Google TSMixer
Time series classification with InceptionTime
Practice
Case studies from customer complaints to daily revenues and electricity pricing, capstone projects (Holt-Winters air miles, Prophet, multiple series with TFT and a fully automated forecasting model), quizzes, and an AI course assistant for your questions. An appendix teaches Python and Pandas for data analysis, in case you are new to them.
Who it is for: business analysts, data scientists, financial analysts, marketers and operations managers who want to forecast demand and performance.
Updates: August 2026: Introduction to Time Series, Exponential Smoothing and Amazon Chronos remade, Time Series AI Assistant remade. September 2025: Darts sections re-recorded, Intermittent Time Series and Classification sections and new projects added. Earlier: AutoGluon, TSMixer, Chronos, N-BEATS, TFT, Silverkite and LSTM launched; course remade in August 2024.
Ready to predict the future? Join me.