liveBook · Manning

Curse of dimensionality

As explained in Build a Robo-Advisor with Python (From Scratch)

The curse of dimensionality is the rapid growth in computational and data requirements as the number of states, variables, or dimensions in a problem increases.

The curse of dimensionality describes how dynamic programming becomes difficult as financial planning models add wealth states, state variables, and possible actions. A dynamic program must evaluate every state–action combination, so computational requirements can grow rapidly. section 6.2.1

In a small goals-based investing problem, dynamic programming can finish in seconds because the state and action spaces are limited. More realistic wealth problems require more states and actions, including many highly unlikely paths that exact backward recursion still evaluates. section 6.2.1

The practical consequence is a trade-off between exact dynamic programming and simulation-based reinforcement learning:

  • Dynamic programming computes the value function by looping through every state and action and requires transition probabilities. section 6.2.1
  • Reinforcement learning moves forward through time and approximates the value function by simulating more likely paths rather than enumerating every possible path. section 6.2.1
  • Adding labor income, health expenses, taxes, housing decisions, bequests, or alternative utility functions can expand the planning model further. section 6.6

Goals-based investing

A dynamic program stores values for wealth states across time, evaluates each of 21 asset-allocation actions, and selects the action with the greatest expected value. Increasing the number of wealth states, actions, or financial variables multiplies this computation.

How Build a Robo-Advisor with Python (From Scratch) covers it

How deep it goes
Explains state-action enumeration and contrasts it with simulated paths, without deriving a general complexity formula.
Examples
Uses wealth-state grids, asset-allocation actions, transition probabilities, and simulated wealth paths as concrete examples.
What you can do after
Evaluate when simulation-based reinforcement learning may be preferable to exact dynamic programming in larger planning models.
How it connects
Connects dynamic programming, reinforcement learning, value functions, transition probabilities, and goals-based investing.

Also explained in

Compare how 7 books explain curse of dimensionality →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Robo-Advisor with Python (From Scratch). The section links point to the parts of the book it draws on.