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 the complete time series workflow, from modern data engineering to advanced forecasting and anomaly detection

Arrow left icon
Product type Paperback
Published in Jan 2026
Publisher Packt
ISBN-13 9781805124283
Length 812 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 (18) Chapters Close

Preface 1. Reading Time Series Data from Files FREE CHAPTER 2. Reading Time Series Data from Databases 3. Persisting Time Series Data to Files 4. Persisting Time Series Data to Databases 5. Working with Date and Time in Python 6. Handling Missing Data 7. Outlier Detection Using Statistical Methods 8. Exploratory Data Analysis and Diagnosis 9. Building Univariate Time Series Models Using Statistical Methods 10. Additional Statistical Modeling Techniques for Time Series 11. Forecasting Using Supervised Machine Learning 12. Deep Learning for Time Series Forecasting 13. Outlier Detection Using Unsupervised Machine Learning 14. Advanced Techniques for Complex Time Series 15. Unlock Your Exclusive Benefits 16. Other Books You May Enjoy
17. Index

Outlier Detection Using Unsupervised Machine Learning

In Chapter 7, you explored parametric and non-parametric statistical techniques to spot potential outliers. These methods are simple and interpretable, yet quite effective.

Outlier detection remains challenging, mainly due to the ambiguity surrounding what constitutes an outlier in your specific data or the problem that you are trying to solve. This ambiguity arises because what is considered an outlier can vary depending on the context, such as the presence of trends, seasonality, or domain-specific patterns. For example, though commonly used, the statistical thresholds from Chapter 7 are somewhat arbitrary rather than definitive rules. This is why domain knowledge or access to Subject Matter Experts (SMEs) is vital to making the proper judgment when identifying time series outliers.

The following table summarizes the outlier detection techniques for different anomaly types that were discussed in Chapter 7:

...
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 €18.99/month. Cancel anytime
Modal Close icon
Modal Close icon