Definition of Time Series Core

A time series is a sequence of data points collected or recorded at successive, equally spaced points in time. It is used to analyze patterns, trends, and relationships over time, enabling forecasting and decision-making.

📌 Example: Daily stock prices, monthly rainfall, yearly GDP, hourly website traffic, or weekly sales figures.

The key characteristic of time series data is the temporal ordering — the sequence matters, and observations are not independent.

Why Time Series Matters

Time series analysis helps us understand the past, monitor the present, and predict the future. It is foundational in fields like economics, finance, meteorology, epidemiology, and signal processing.

Components of Time Series Detailed

A time series is typically decomposed into four distinct components:

Trend

Long-term increase or decrease in the data over time. Reflects the general direction.

e.g. Population growth over decades.

Seasonal

Regular, predictable patterns that repeat within a fixed period (day, week, month, quarter, year).

e.g. Higher ice cream sales in summer.

Cyclical

Fluctuations that occur over longer, irregular periods — often tied to economic or business cycles.

e.g. Boom-and-bust cycles in the economy (5–10 years).

Irregular (Noise)

Unpredictable, random variations that cannot be attributed to trend, seasonal, or cyclical patterns.

e.g. Sudden market shocks, natural disasters.

Visual decomposition of a time series into Trend, Seasonal, Cyclical, and Irregular components.

Individual Component Plots

Each component isolated to highlight its distinct pattern.

Trend

Smooth long‑term movement

Seasonal

Regular periodic fluctuations

Cyclical

Longer, irregular cycles

Irregular

Random noise / residuals

Each component plotted on its own scale to show its unique behavior.

Time Series vs Cross‑Sectional vs Panel vs Longitudinal

Understanding the differences between these data structures is essential for choosing the right analytical approach.

FeatureTime SeriesCross‑SectionalPanelLongitudinal
DefinitionObservations of a single entity over timeObservations of many entities at one point in timeMultiple entities observed over timeSame individuals tracked repeatedly over time
Dimension1D (time)1D (entities)2D (entities × time)2D (individuals × time)
PurposeForecasting, trend analysisComparing groups, prevalenceCombines cross-section & timeChange within individuals
IndependenceDependent over timeIndependent observationsDependent within entityDependent within individual

📊 Examples

  • Time Series: Monthly sales of a single store (2015–2025)
  • Cross‑Sectional: Sales of 100 stores in January 2025
  • Panel: Sales of 100 stores for each month from 2015–2025
  • Longitudinal: Health metrics of 1,000 patients measured yearly

🔍 When to Use

  • Time Series: Forecasting, detecting trends
  • Cross‑Sectional: Surveys, A/B testing, prevalence studies
  • Panel: Econometrics, policy evaluation, fixed-effects models
  • Longitudinal: Clinical trials, developmental psychology

Key characteristics compared across data types.

Time Series Models vs Regression vs ANOVA

These three statistical approaches serve different purposes. Here's how they compare with practical examples.

AspectTime Series ModelRegression ModelANOVA
GoalForecast future values from pastModel relationship between variablesCompare means across groups
Data TypeSequential, time‑orderedIndependent observationsCategorical predictor, continuous response
Key AssumptionStationarity / autocorrelationIndependence, homoscedasticityNormality, homogeneity of variance
ExampleARIMA forecasting stock pricesPredicting house price from size & locationTesting if 3 fertilizers give different yields
OutputForecasted values + intervalsCoefficients, R², p‑valuesF‑statistic, group means, p‑values
📈 Time Series Model — ARIMA
Forecast next month's sales using past sales data, accounting for trend and seasonality.
yt = c + φ₁yt−1 + … + θ₁εt−1 + εt
📉 Regression — Linear
Predict a student's GPA based on study hours, attendance, and prior grades.
y = β₀ + β₁x₁ + β₂x₂ + … + ε
🔬 ANOVA — One‑Way
Compare the average test scores of students taught using three different teaching methods.
F = MSbetween / MSwithin

Key Insight:
Time series = time dependency
Regression = association
ANOVA = group differences

Conceptual comparison of model outputs.

Stationarity & Autocorrelation Advanced

Stationarity is a fundamental concept in time series analysis. A time series is stationary if its statistical properties — mean, variance, and autocorrelation — are constant over time. Most forecasting models assume stationarity.

✅ Stationary Series

  • Constant mean over time
  • Constant variance over time
  • Covariance depends only on lag, not time
  • No trend or seasonal patterns
e.g. White noise, temperature after removing seasonality.

❌ Non-Stationary Series

  • Changing mean (trend)
  • Changing variance
  • Seasonal patterns
  • Unit root (random walk)
e.g. Stock prices, GDP, population growth.

How to Check for Stationarity

  • Visual: Plot the series — look for trends, seasonality, changing variance.
  • ACF Plot: For a stationary series, autocorrelations decay quickly.
  • Statistical Tests: Augmented Dickey-Fuller (ADF) test, KPSS test.

Autocorrelation Function (ACF) & Partial ACF

ACF measures the correlation between a series and its lagged values. PACF measures the correlation after removing the effects of intermediate lags.

ACF (blue) and PACF (orange) for a simulated AR(1) process. The dashed lines represent the 95% confidence interval.

📚 Resources — Books, Notes & Lectures

All materials are managed securely on the server. Files are uploaded via WinSCP and are read-only for website visitors.

Backend-Controlled Library

To add or update files, use WinSCP to place files in the /resources/ directory on the server.

Categories can be assigned by editing the metadata.json file.

0 files available

Available Files

0 items

Loading files...

Books

Upload full textbooks or reference PDFs.

Notes

Lecture summaries, cheat sheets, handouts.

Lectures

Slides, transcripts, or recorded sessions.