Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Time Series Analysis with Python Cookbook

You're reading from   Time Series Analysis with Python Cookbook Practical recipes for exploratory data analysis, data preparation, forecasting, and model evaluation

Arrow left icon
Product type Paperback
Published in Jan 2026
Publisher
ISBN-13 9781805124283
Length 98 pages
Edition 2nd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Tarek A. Atwan Tarek A. Atwan
Author Profile Icon Tarek A. Atwan
Tarek A. Atwan
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

1. Time Series Analysis with Python Cookbook, Second Edition: Practical recipes for exploratory data analysis, data preparation, forecasting, and model evaluation
2. Chapter 1: Getting Started with Time Series Analysis FREE CHAPTER 3. Chapter 2: Reading Time Series Data from Files 4. Chapter 3: Reading Time Series Data from Databases 5. Chapter 4: Persisting Time Series Data to Files 6. Chapter 5: Persisting Time Series Data to Databases 7. Chapter 6: Working with Date and Time in Python 8. Chapter 7: Handling Missing Data 9. Chapter 8: Outlier Detection Using Statistical Methods 10. Chapter 9: Exploratory Data Analysis and Diagnosis 11. Chapter 10: Building Univariate Time Series Models Using Statistical Methods 12. Chapter 11: Additional Statistical Modeling Techniques for Time Series 13. Chapter 12: Forecasting Using Supervised Machine Learning

Multi-step forecasting with scikit-learn

In the previous recipe, One-step forecasting with scikit-learn, you implemented a one-step forecast. In this approach, a sequence of values from the past 10 periods ( where is used to predict the next period, referred to as . This is known as one-step forecasting, as shown in Figure 12.2.For example, in the case of monthly energy consumption data, to forecast for December 2021, you would provide data for the past 10 months (February to November 2021). This approach works well for monthly or quarterly data, but what about more granular data, such as daily or hourly? In the case of daily temperature data, this setup requires you to provide temperature values for the past 10 days to obtain a one-day forecast. This may not be an efficient approach because you would have to wait for the next day to observe a new value to generate another one-day forecast.But what if you need to predict more than one future step? For example, what if you want to forecast...

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Time Series Analysis with Python Cookbook
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon