Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Time Series Analysis with Python Cookbook
  • Table Of Contents Toc
Time Series Analysis with Python Cookbook

Time Series Analysis with Python Cookbook - Second Edition

By : Tarek A. Atwan
4 (1)
close
close
Time Series Analysis with Python Cookbook

Time Series Analysis with Python Cookbook

4 (1)
By: Tarek A. Atwan

Overview of this book

To use time series data to your advantage, you need to master data preparation, analysis, and forecasting. This fully refreshed second edition helps you unlock insights from time series data with new chapters on probabilistic models, signal processing techniques, and new content on transformers. You’ll work with the latest releases of popular libraries like Pandas, Polars, Sktime, stats models, stats forecast, Darts, and Prophet through up-to-date examples. You'll hit the ground running by ingesting time series data from various sources and formats and learn strategies for handling missing data, dealing with time zones and custom business days, and detecting anomalies using intuitive statistical methods. Through detailed instructions, you'll explore forecasting using classical statistical models such as Holt-Winters, SARIMA, and VAR, and learn practical techniques for handling non-stationary data using power transforms, ACF and PACF plots, and decomposing time series data with seasonal patterns. The recipes then level up to cover more advanced topics such as building ML and DL models using TensorFlow and PyTorch and applying probabilistic modeling techniques. In this part, you’ll also be able to evaluate, compare, and optimize models, finishing with a strong command of wrangling data with Python.
Table of Contents (18 chapters)
close
close
16
Other Books You May Enjoy
17
Index

Preface

A familiar association people make is between forecasting and financial data (such as predicting stock prices or market movements). In reality, forecasting is used in more industries than finance, leveraging historical data to make future predictions. More specifically, this book is about time-series analysis, a process to gain better insight from historical data, capture trends and cyclical patterns, and build production-ready forecasting models.

When working with data that contains observations that change over time and is recorded at specific intervals, you are dealing with time-series data. You will find time-series data in many domains, and the discipline of time-series analysis covers various use cases. For example, time-series analysis is used in science (forecasting weather, earthquakes, air quality, or species growth), finance (forecasting stock return, budget, sales, or volatility), government (forecasting inflation, unemployment rates, GDP, or population birth rate), medicine (tracking infectious disease transmission, monitoring electrocardiogram or blood glucose, or forecasting healthcare costs), engineering (predictive maintenance, production decline analysis, or traffic volume forecasting), business (inventory management, product demand planning, or resource planning), and much more. Time-series data is pretty much all around us, and you will most definitely encounter it in your work.

In this book, you will find practical end-to-end recipes that you can apply and use—less theory and more actionable results. This second edition will take you through the complete journey of time-series analysis. We cover the entire process, from environment setup to acquiring and ingesting time-series data from diverse sources (files, SQL, NoSQL, cloud storage, and data warehouses). You will learn how to explore the data through exploratory data analysis (EDA) techniques specific to time series, transform and manipulate the data, and train and evaluate a wide variety of models for forecasting.

This book and its corresponding GitHub repository covers concepts, techniques, and algorithms ranging from commonly used to more advanced and modern approaches. For example, you will learn how to train and validate models across a full spectrum of techniques covering statistical methods (e.g., ARIMA, SARIMA, Theta, Prophet, VAR, and GARCH), machine learning algorithms (e.g., scikit-learn, sktime, and ensemble methods such as XGBoost), deep learning architectures (e.g., RNN, LSTM, TCN, and N-HiTS), probabilistic modeling (e.g., quantile regression, Monte Carlo dropout, and conformal prediction) for forecasting, spectral (or frequency-domain) analysis (e.g., Fast Fourier transform (FFT), periodograms, and Welch’s method), and comprehensive outlier (anomaly) detection (using statistical, machine learning, and deep learning techniques).

Most importantly, the variety of datasets used in this book will give you a better insight into how these different models work and how you can pick the most appropriate approach to solve your specific problem. You will be introduced to a vast number of libraries, with enough depth and comparison for you to understand why and when to use them and how they work. The book covers statsmodels, scikit-learn, sktime, Darts, StatsForecast, NeuralForecast, TensorFlow, PyTorch, aeon, PyOD, Prophet, NeuralProphet, XGBoost, LightGBM, Optuna, arch, pmdarima, SciPy, TSFEL, Modin, Dask, Polars, pandas, hvPlot, Seaborn, and much more.

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
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon