liveBook · Manning

Independent variable

As explained in Financial AI in Practice

A measurable input variable or derived attribute supplied to a statistical or machine-learning model.

To predict tomorrow’s SPY direction, a model needs inputs that describe market conditions. An independent variable is one such input: a measured value or derived feature supplied to the model, distinct from the direction it is trying to predict. Useful inputs expose an economic signal; a more complex algorithm cannot compensate for weak raw prices. section 10.4

Build inputs around the decision and the data available to support it:

  • For market direction, derive momentum, volatility, and volume indicators across ETF assets, then add rolling correlations and cross-asset spreads. The illustrated pipeline expands 40 price-and-volume series into approximately 208 features. section 10.4.2
  • For fraud detection, use short-window activity counts, deviations from a user’s behavior, shared-device links, and session or device-trust signals. Real-time decisions require timely feature pipelines. section 7.4.2
  • For credit decisions, calculate recent application activity through streaming pipelines and validate critical features for missing values or distribution shifts. Apply masking and other data controls across environments. section 4.3.1
Table 10.3 Feature categories for institutional-grade strategies
Category
Purpose
Examples
Quant insight
Cross-Asset Signals
Capture regime shifts
SPY-TLT correlation, CBOE Volatility Index (VIX)-equity spreads
Relationships break during crises.
Momentum Cascades
Multiple time frame trends
5d versus 20d momentum divergence
Short-term reversals cause long-term persistence.
Volatility Regimes
Risk environment
VIX term structure, realized volatility clustering
Volatility predicts volatility and affects correlations.
Economic Proxies
Macro factor exposure
Dollar strength versus emerging markets (EM), commodity momentum
ETFs are used as real-time economic sensors.

The feature-category table links candidate market inputs to the regimes, trends, and economic relationships they are intended to capture. section 10.4.2

Transaction features for a graph model

A transaction-fraud graph can give each transaction three numerical inputs: amount divided by 1,000, hour divided by 24, and weekday divided by 6. Shared user or device IDs define connections separately. A graph neural network combines each transaction’s features with information from connected transactions to score normal versus fraudulent activity. section 9.4.2

Inputs need not be purely numerical market or transaction records: structured, evidence-backed news analysis can produce quantifiable policy-tone, supply-risk, and novelty features. Keep their evidence auditable, and use evaluation, guardrails, and human oversight rather than treating generated signals as risk-free. section 11.5

How Financial AI in Practice covers it

How deep it goes
Works through feature categories and construction pipelines, including numerical graph inputs, rather than a formal statistical definition.
Examples
Uses ETF momentum and cross-asset relationships, short-window fraud activity, and transaction amount and time.
What it assumes
Assumes familiarity with financial records and model inputs; shows how to derive indicators and transaction features from those records.
What you can do after
Build it from scratch using ETF indicators and cross-asset relationships, or construct transaction node features for a fraud graph.
How it connects
Connects feature engineering to target variables, technical indicators, graph neural networks, data drift, and retrieval-augmented generation.

Also explained in

Compare how 4 books explain independent variable →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Financial AI in Practice. The section links point to the parts of the book it draws on.