Econometrics bridge: Forecasting, classification, model combination, decision thresholds
Estimated time: 150 min
Lab: Open browser lab
Code: Python · R

Why this should feel familiar

The capstone combines the course into one deliberately small system: an autoregressive numeric signal, a text-derived score, a learned/selected weighting layer, and a policy-like action threshold. The purpose is architecture literacy, not investment advice.

Mathematical core

Let a numeric forecaster produce \(z_\text{ts}\), a text model produce \(z_\text{text}\), and a gate produce w in [0,1]. A combined score can be

\[ z=w z_{text}+(1-w)z_{ts}. \]

A deterministic action rule could be

\[ a=\begin{cases} +1 & z>\tau,\\ 0 & |z|\le\tau,\\ -1 & z<-\tau. \end{cases} \]

The important AI systems question is not merely whether each component has low loss. It is whether the complete pipeline has valid data boundaries, out-of-sample evaluation, calibrated outputs, stable routing, and a decision rule appropriate to its risk.

For a production setting, replace toy scores with separately validated models and evaluate the entire decision pipeline under temporal splits and realistic costs.

Plain-English translation

This final module makes the conceptual hierarchy explicit: model outputs are not decisions; a router is not an expert; a representation is not a probability; and low training loss is not operational validity.

What changes when we move from econometrics to AI?

The recurring shift is from a small, analyst-specified representation toward a larger learned representation. The underlying statistical questions do not disappear: What is the sample? What is conditioned on? What is estimated? What objective is optimized? Which observations were used to choose hyperparameters? How will uncertainty and distribution shift be handled?

AI terminology becomes much easier when these questions are kept explicit. Whenever you encounter a new architecture, identify four objects: inputs, parameterized transformation, training objective, and evaluation design.

Interactive browser lab

Adjust the time-series signal, text score, gate weight, and action threshold. Inspect how the final decision changes and identify fragile regions near the threshold.

Before changing a control, predict the direction of the effect. Then manipulate one control at a time. The goal is not merely to produce a pretty visualization; it is to connect a parameter change to a mathematical statement.

Python and R lab

The Python and R examples implement the same core object as the browser lab. The Python code intentionally favors NumPy and explicit matrix operations. The R code favors base R and explicit loops/matrix algebra. Once the mechanics are clear, the same ideas can be implemented with PyTorch, TensorFlow, JAX, torch for R, or other frameworks.

Check your understanding

  1. Identify the random variables, observed variables, and estimated parameters in this module.
  2. State the objective function or equilibrium condition.
  3. Name the closest concept you already knew from econometrics and one important difference.
  4. Predict one failure mode caused by poor data, poor optimization, or poor evaluation.

Learner output

Submit a two-page architecture note that labels every estimated quantity, every validation boundary, and every place where a human or governance control would be needed.