liveBook · Manning

Time series analysis

As explained in Statistics Every Programmer Needs

Time series analysis is the analysis of observations ordered over time to identify temporal patterns, dependence, or trends.

Time series analysis examines observations ordered over time, preserving temporal order to identify trends, seasonality, cycles, noise, and dependence on earlier values. Its practical purpose is forecasting future observations from historical data. section 7.0 section 7.1

Common forecasting approaches include:

  • ARIMA combines autoregression, differencing, and moving averages to model temporal dependencies, trends, autocorrelation, and nonstationarity. section 7.1
  • Exponential smoothing weights recent observations more heavily, with simple, double, and Holt–Winters methods addressing progressively richer trend and seasonal structure. section 7.0 section 7.1
  • Model selection depends on the data’s characteristics: ARIMA suits complex temporal dependence, while exponential smoothing highlights underlying trends and seasonal patterns. section 7.1

Forecasting closing stock prices

A practical workflow imports and plots closing prices, fits ARIMA and exponential-smoothing models to the same series, compares their forecasts, and interprets results cautiously. Stock prices provide a difficult test because abrupt changes, rapidly incorporated information, nonlinear dynamics, and unpredictable public opinion can limit forecast accuracy. section 7.0 section 7.2

How Statistics Every Programmer Needs covers it

How deep it goes
Defines temporal structure and introduces ARIMA, exponential smoothing, model comparison, and forecasting limitations without detailed derivations.
Examples
Uses public-company closing stock prices and compares ARIMA with exponential smoothing while noting financial-market unpredictability.
What you can do after
Apply foundational ARIMA and exponential-smoothing techniques to forecast temporal data and make informed decisions.
How it connects
Connects temporal dependence with forecasting, ARIMA, exponential smoothing, trends, seasonality, cyclic behavior, and nonstationarity.

Also explained in

Compare how 4 books explain time series analysis →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Statistics Every Programmer Needs. The section links point to the parts of the book it draws on.