Introduction to Time Series Forecasting With Python

Introduction to Time Series Forecasting With Python

Discover How to Prepare Data and Develop Models to Predict the Future

Introduction to Time Series Forecasting With Python-400

$37 USD

Time series forecasting is different from other machine learning problems.

The key difference is the fixed sequence of observations and the constraints and additional structure this provides.

In this mega Ebook written in the friendly Machine Learning Mastery style that you’re used to, finally cut through the math and specialized methods for time series forecasting.

Using clear explanations, standard Python libraries and step-by-step tutorials you will discover how to load and prepare data, evaluate model skill, and implement forecasting models for time series data.

Technical Details About the Book

  • PDF format Ebook.
  • 8 parts, 34 chapters, 367 pages.
  • 28 step-by-step tutorial lessons.
  • 3 end-to-end projects.
  • 181 Python (.py) files.

Clear and Complete Examples.
No Math. Nothing Hidden.

Click to jump straight to the packages.

Time Series Problems are Important

Time series forecasting is an important area of machine learning that is often neglected.

It is important because there are so many prediction problems that involve a time component. These problems are neglected because it is this time component that makes time series problems more difficult to handle.

You can’t just fire a machine learning algorithm at a time series dataset.

  • Time series data must be transformed into a supervised learning problem.
  • Time series data has temporal structure like trends and seasonality that must be handled.
  • Time series data has a forecast horizon.

There are a few conceptual steps you must make before you can start developing forecasting models.

There are also specialized terminology and algorithms to consider and use when working with time series data.

It can feel overwhelming for a beginner and standard machine learning libraries like scikit-learn do not make it easy to get started.

Introducing: “Time Series Forecasting With Python

This is the book I wish I had when I was getting started with univariate time series forecasting.

It is designed for the practical and hands-on way you prefer to learn.

The goal of this book is to:

Show you how to get results on univariate time series forecasting problems using the Python ecosystem.

It is a cookbook designed for immediate use.

This book was developed using five principles.

They are:

  • Application: The focus is on the application of forecasting rather than the theory.
  • Lessons: The book is broken down into short lessons, each focused on a specific topic.
  • Value: Lessons focus on the most used and most useful aspects of a forecasting project.
  • Results: Each lesson provides a path to a usable and reproducible result.
  • Speed: Each lesson is designed to provide the shortest path to a result.

These principles shape the structure and organization of the book.

What You Will Know and Be Able to Do (Reading Outcomes)

If you choose to work through all of the lessons and projects of this book, you can set some reasonable expectations on your new found capabilities.

They are:

  • Time Series Foundations: You will be able to identify time series forecasting problems as distinct from other predictive modeling problems and how time series can be framed as supervised learning.
  • Transform Data For Modeling: You will be able to transform, rescale, smooth and engineer features from time series data in order to best expose the underlying inherent properties of the problem (the signal) to learning algorithms for forecasting.
  • Harness Temporal Structure: You will be able to analyze time series data and understand the temporal structure inherent in it such as trends and seasonality and how these structures may be addressed, removed and harnessed when forecasting.
  • Evaluate Models: You will be able to devise a model test harness for a univariate forecasting problem and estimate the baseline skill and expected model performance on unseen data with various performance measures.
  • Apply Classical Methods: You will be able to select, apply and interpret the results from classical linear methods such as Autoregression, Moving Average and ARIMA models on univariate time series forecasting problems.

You will be a capable predictive modeler for univariate time series forecasting problems using the Python ecosystem.

Time Series Forecasting With Python‘ is for Python Developers…

This book makes some assumptions about you.

They are:

  • You’re a Developer: This is a book for developers. You are a developer of some sort. You know how to read and write code. You know how to develop and debug a program.
  • You know Python: This is a book for Python people. You know the Python program- ming language, or you’re a skilled enough developer that you can pick it up as you go along.
  • You know some Machine Learning: This is a book for novice machine learning practitioners. You know some basic practical machine learning, or you can figure it out quickly.

No mathematical prerequisites are needed.
No scikit-learn prerequisites are needed.

This is a playbook, a cookbook, a field guide, not a textbook for academics.

Time Series Forecasting for Beginners

It is an introductory book for time series forecasting.

As such, it focuses on univariate (one variable) data, rather than more complex multivariate problems. It also focuses on using powerful linear methods like ARIMA, rather than more exotic methods.

Everything You Need to Know to Develop Time Series Forecasting Models

You Will Get:
28 Lessons on Python Best Practices for Time Series Forecasting and
3 Project Tutorials that Tie it All Together

This Ebook was written around two themes designed to get you started and using Python for applied time series forecasting effectively and quickly.

These two parts are Lessons and Projects:

  • Lessons: Learn how the sub-tasks of time series forecasting projects map onto Python and the best practice way of working through each task.
  • Projects: Tie together all of the knowledge from the lessons by working through case study predictive modeling problems.

1. Lessons

Here is an overview of the 28 step-by-step lessons you will complete:

Each lesson was designed to be completed in about 30 minutes by the average developer.

Part I. Fundamentals

  • Python Environment
  • What is Time Series Forecasting?
  • Time Series as Supervised Learning

Part II. Data Preparation

  • Load and Explore Time Series Data
  • Data Visualization
  • Resampling and Interpolation
  • Power Transforms
  • Moving Average Smoothing

Part III. Temporal Structure

  • A Gentle Introduction to White Noise
  • A Gentle Introduction to the Random Walk
  • Decompose Time Series Data
  • Use and Remove Trends
  • Use and Remove Seasonality
  • Stationarity in Time Series Data

Part IV. Evaluate Models

  • Backtest Forecast Models
  • Forecasting Performance Measures
  • Persistence Model for Forecasting
  • Visualize Residual Forecast Errors
  • Reframe Time Series Forecasting Problems

Part V. Forecast Models

  • A Gentle Introduction to the Box-Jenkins Method
  • Autoregression Models for Forecasting
  • Moving Average Models for Forecasting
  • ARIMA Model for Forecasting
  • Autocorrelation and Partial Autocorrelation
  • Grid Search ARIMA Model Hyperparameters
  • Save Models and Make Predictions
  • Forecast Confidence Intervals

2. Projects

Here is an overview of the 3 end-to-end projects you will complete:

  • Project 1: Monthly Armed Robberies in Boston.
  • Project 2: Annual Water Usage in Baltimore.
  • Project 3: Monthly Sales of French Champagne.

Each project was designed to be completed in about 60 minutes by the average developer.

Table of Contents for Introduction to Time Series Forecasting With Python

Table of Contents for Introduction to Time Series Forecasting With Python

Take a Sneak Peek Inside The Ebook

Click image to Enlarge.

Introduction to Time Series Forecasting With Python Sample Page 1

Introduction to Time Series Forecasting With Python Sample Page 2

Introduction to Time Series Forecasting With Python Sample Page 3

BONUS: Time Series Forecasting Code Recipes
…you also get 181 fully working time series forecasting scripts

Sample Code Recipes

Each recipe presented in the book is standalone, meaning that you can copy and paste it into your project and use it immediately.

  • You get one Python script (.py) for each example provided in the book.
  • You get the datasets used throughout the book.

Your Time Series Code Recipe Library covers the following topics:

  • Loading data from CSV files.
  • Feature engineering.
  • Power transforms like log and sqrt.
  • Upsampling and downsampling data.
  • Interpolating missing values.
  • Moving average smoothing
  • Stationarity statistical tests.
  • Walk-forward model validation.
  • Performance measures like RMSE.
  • Naive forecast model.
  • Data visualization like line plots and ACF.
  • AR forecast models.
  • MA forecast models
  • ARIMA forecast models.
  • Grid search model parameters
  • Save forecast models to file.
  • Calculate confidence intervals.

This means that you can follow along and compare your answers to a known working implementation of each example in the provided Python files.

This helps a lot to speed up your progress when working through the details of a specific task.

Python Technical Details

This section provides some technical details about the book.

  • Python Version: You can use Python 2 or 3.
  • SciPy: You will use NumPy, Pandas and scikit-learn.
  • Statsmodels: You can use Statsmodels 0.6 or 0.8.
  • Operating System: You can use Windows, Linux or Mac OS X.
  • Editor: You can use a text editor and run example from the command line.
Bonus Python Code Provided With Introduction to Time Series Forecasting With Python

Bonus Python Code Provided With Introduction to Time Series Forecasting With Python

About The Author

Jason BrownleeHi, I'm Jason Brownlee.

I live in Australia with my wife and son and love to write and code.

I have a computer science background as well as a Masters and Ph.D. degree in Artificial Intelligence.

I’ve written books on algorithms, won and ranked in the top 10% in machine learning competitions, consulted for startups and spent a long time working on systems for forecasting tropical cyclones. (yes I have written tons of code that runs operationally)

I get a lot of satisfaction helping developers get started and get really good at machine learning.

I teach an unconventional top-down and results-first approach to machine learning where we start by working through tutorials and problems, then later wade into theory as we need it.

I'm here to help if you ever have any questions. I want you to be awesome at machine learning.

Download Your Sample Chapter

Download PDFDo you want to take a closer look at the book? Download a free sample chapter PDF.

Enter your email address and your sample chapter will be sent to your inbox.

>> Click Here to Download Your Sample Chapter


You're Not Alone in Choosing Machine Learning Mastery
Trusted by Over 10,000 Practitioners

...including employees from companies like:


cisco  google  oracle  adobe

apple microsoft paypal  intel


...students and faculty from universities like:


berkeley  princeton  yale cmu

stanford  harvard  mit  nyu


and many thousands more...

Absolutely No Risk with...
100% Money Back Guarantee

Plus, as you should expect of any great product on the market, every Machine Learning Mastery Ebook
comes with the surest sign of confidence: my gold-standard 100% money-back guarantee.

Money Back Guarantee

100% Money-Back Guarantee

If you're not happy with your purchase of any of the Machine Learning Mastery Ebooks,
just email me within 90 days of buying, and I'll give you your money back ASAP.

No waiting. No questions asked. No risk.


Start Forecasting With Time Series Today!

Choose Your Package:

Basic Package

You will get:

  • Time Series Forecasting With Python

(including bonus source code)

Buy Now for $37

(a great deal!)

Time Series Bundle


You get the 2-book set:

  • Machine Learning Mastery With Python
  • Time Series Forecasting With Python

(includes all bonus source code)

Buy Now for $49

(that is a 33% discount)

Super Bundle

You get the complete 8-book set:

  • Master Machine Learning Algorithms
  • ML Algorithms From Scratch
  • Machine Learning Mastery With Weka
  • Machine Learning Mastery With R
  • Machine Learning Mastery With Python
  • Time Series Forecasting With Python
  • Deep Learning With Python
  • XGBoost With Python

(includes all bonus source code)

Buy Now for $217

(save a massive $89)

(1) Click the button.    (2) Enter your details.   (3) Download your package immediately.

credit cards

Secure Payment Processing With SSL Encryption

Secure Payment

Have more Questions?

Contact me for help.

Are you a Student?

Contact me for student discounts.

Want it for the Team?

Contact me for team discounts.

What Are Skills in Machine Learning Worth?

Your boss asks you:

Hey, can you build a predictive model for this?

Imagine you had the skills and confidence to say:
...and follow through.

I have been there. It feels great!

How much is that worth to you?

The industry is demanding skills in machine learning.
The market wants people that can deliver results, not write academic papers.

Business knows what these skills are worth and are paying sky-high starting salaries.

A Data Scientists Salary Begins at:
$100,000 to $150,000.
A Machine Learning Engineers Salary is Even Higher.

What Are Your Alternatives?

You made it this far.
You're ready to take action.

But, what are your alternatives? What options are there?

(1) A Theoretical Textbook for $100+'s boring, math-heavy and you'll probably never finish it.

(2) An On-site Boot Camp for $10,000+'s full of young kids, you must travel and it can take months.

(3) A Higher Degree for $100,000+'s expensive, takes years, and you'll be an academic.


For the Hands-On Skills You Get...
And the Speed of Results You See...
And the Low Price You Pay...

Machine Learning Mastery Ebooks are
Amazing Value!

And they work. That's why I offer the money-back guarantee.

You're A Professional

The field moves quickly, long can you wait?

You think you have all the time in the world, but...

  • New methods are devised and algorithms change.
  • New books get released and prices increase.
  • New graduates come along and jobs get filled.

Right Now is the Best Time to make your start.

Bottom-up is Slow and Frustrating,
...don't you want a faster way?

Can you really go on another day, week or month...

  • Scraping ideas and code from incomplete posts.
  • Skimming theory and insight from short videos.
  • Parsing Greek letters from academic textbooks.

Targeted Training is your Shortest Path to a result.

Professionals Use Training To Stay On Top Of Their Field
Get The Training You Need!

You don't want to fall behind or miss the opportunity.

Frequently Asked Questions

What programming language is used? All examples use the Python programming language version 2 or 3. It assumes you have a working Python environment.

Do I need to be a good programmer? Not at all. This Ebook requires that you have a programmers mindset of thinking in procedures and learning by doing. You do not need to be an excellent programmer to read and learn about machine learning algorithms.

How much math do I need to know? No background in statistics, probability or linear algebra is required. We do not derive any equations.

Is there a hard copy physical book? Not at this stage. Ebook only.

Will I get updates? Yes. You will be notified about updates to the book and code that you can download for free.

Is there any digital rights management (DRM)? No, there is no DRM.

How long will the Ebook take to complete? I recommend reading one or two chapters per day. You can finish in 2-3 weeks. On the other hand, if you are keen you could work through all of the material in a weekend.

What if I need help? The final chapter is titled “Getting More Help” and points to resources that you can use to get more help with machine learning in Python.

How much machine learning do I need to know? Only a little. You will be lead step-by-step through the process of working through a forecasting project.

Are there any additional downloads? Yes. In addition to the download for the Ebook itself, you will have access to Python recipes.