---
title: Prompt Portfolios
url: https://www.emergentmind.com/topics/prompt-portfolios
type: topic
---

# Prompt Portfolios

A prompt portfolio is a class of investment strategies derived from the theory of functionally generated portfolios, which use smooth generating functions applied to the vector of market weights. Within rank-based stochastic models that describe the evolution of market capitalizations via interacting diffusion processes, prompt portfolios enable precise pathwise performance attribution over finite and asymptotic horizons. Central to this framework are explicit “master formulas” relating the portfolio’s relative value process to the underlying dynamics of market weights, permitting quantitative short- and medium-term risk estimates through hydrodynamic limits and fluctuation theorems [1802.03593].

## 1. Functionally Generated Portfolios: Definitions and Formulation

Let $\mu(t) = (\mu_1(t), \ldots, \mu_n(t))$ denote the vector of market weight processes, constrained by $\mu_i(t) \geq 0$ and $\sum_i \mu_i(t) = 1$. A smooth generating function $G : \Delta^n \rightarrow (0,\infty)$ on the open unit simplex $\Delta^n = \{ x \in (0,1)^n \mid \sum_i x_i = 1 \}$ defines two principal classes:

- **Multiplicatively generated portfolios**: Given by
  $$
  \pi_i^{G, \times}(t) = \left( \frac{\partial}{\partial x_i} \log G(\mu(t)) + 1 - \sum_j \mu_j(t) \frac{\partial}{\partial x_j}\log G(\mu(t)) \right) \mu_i(t)
  $$
  with relative value
  $$
  \log V^{G, \times}(t) = \log \frac{G(\mu(t))}{G(\mu(0))} - \frac{1}{2} \sum_{i,j=1}^n \int_0^t \frac{\partial^2}{\partial x_i \partial x_j}\log G(\mu(s))\,d[\mu_i, \mu_j](s)
  $$

- **Additively generated portfolios**: For a concave extension $\widetilde{G}$,
  $$
  \pi_i^{\widetilde{G}, +}(t) = \left( \frac{\partial}{\partial x_i} \widetilde{G}(\mu(t)) - \sum_j \mu_j(t)\frac{\partial}{\partial x_j}\widetilde{G}(\mu(t)) \right) + \mu_i(t)
  $$
  with normalized relative value
  $$
  V^{\widetilde{G}, +}(t) = 1 + \widetilde{G}(\mu(t)) - \widetilde{G}(\mu(0)) - \frac{1}{2} \sum_{i,j=1}^n \int_0^t \partial^2_{x_ix_j} \widetilde{G}(\mu(s))\,d[\mu_i, \mu_j](s)
  $$

Both constructions yield a portfolio whose trajectory, relative to the market, depends solely on the market weight path $\mu(\cdot)$ and the generating function, excluding additional stochastic integration.

## 2. Rank-Based Stochastic Models and Macroscopic Observables

Market capitalizations are modeled as log-capitalizations $X^n_i(t)$ governed by SDEs of the form
$$
dX^n_i(t) = b( F_{\rho^n(t)}(X^n_i(t)) )\,dt + \sigma( F_{\rho^n(t)}(X^n_i(t)) )\,dB_i(t),\quad i=1,\ldots,n
$$
where $\rho^n(t) = \frac{1}{n}\sum_{i=1}^n \delta_{X^n_i(t)}$ is the empirical measure and $F_\rho(x) = \rho((-\infty, x])$. Under mild exponential tail assumptions on the initial data, as $n\to\infty$, two regimes emerge:

- **Hydrodynamic limit**: $\rho^n(\cdot)\Rightarrow \rho(\cdot)$ deterministic, $F_\rho(t,x) = R(t,x)$ solving a nonlinear porous-medium PDE,
  $$
  R_t = -B(R)_x + \Sigma(R)_{xx}
  $$
  with $B(r) = \int_0^r b(a) da$, $\Sigma(r) = \int_0^r \tfrac12 \sigma(a)^2 da$.

- **Fluctuation regime**: $\sqrt{n}(F_{\rho^n}(t,x) - R(t,x)) \Rightarrow G(t,x)$, where $G$ satisfies a linear SPDE capturing stochastic fluctuations around the deterministic mean.

Macroscopic observables take the form $J( \langle f_1, \rho \rangle, \ldots, \langle f_k, \rho \rangle )$, covering quantities such as the Rényi diversity $D_p(t) = ( \sum_i \mu_i(t)^p )^{1/p}$ for $p\in(0,1)$ and the market entropy $H(t) = -\sum_i \mu_i(t)\log\mu_i(t)$.

## 3. Performance Fluctuations: Short- and Medium-Term Theorems

Fluctuations in the performance of functionally generated portfolios are characterized by central limit theorems (CLTs):

- **Finite-dimensional CLT for observables**: For any smooth $J$ and test functions $f_1,\ldots,f_k$,
  $$
  \sqrt{n}\left[ J(\langle f_1,\rho^n \rangle,\ldots) - J(\langle f_1, \rho \rangle,\ldots) \right] \Rightarrow -\sum_j J_{x_j}(\ldots) \int_\mathbb{R} f_j'(x) G(t, x) dx
  $$
  jointly in $t$ and $x$.

- **CLT for hitting times**: If $z(t) = J(\langle f_1,\rho \rangle, \ldots)$ crosses a level $a$ at time $\tau$ with $z'(\tau) \neq 0$,
  $$
  \sqrt{n}(\tau^n - \tau) \Rightarrow \frac{\sum_j J_{x_j}(\langle f_j, \rho \rangle) \int f_j'(x) G(\tau, x) dx }{z'(\tau)}
  $$
  where $\tau^n = \inf\{ t : J(\langle f_1,\rho^n \rangle, \ldots) = a\}$.

The main probabilistic arguments invoke Taylor expansions for non-Markovian observables, propagation of chaos, and empirical-measure fluctuation control via Wasserstein metrics.

## 4. Explicit Portfolio Examples

Two canonical portfolio classes result from specific generating functions:

| Portfolio Type | Generating Function $G(x)$ | Portfolio Weights |
|---|---|---|
| Diversity-weighted | $\|x\|_p = (\sum x_i^p )^{1/p}$ | $\pi_i^{(p)}(t) = \frac{x_i^p}{\sum_j x_j^p}$ |
| Entropy-based (universal) | $\exp(-\sum x_i \ln x_i)$ | $\pi_i^H(t) = ( -\log \mu_i(t) + 1 + \sum_j \mu_j(t)\log \mu_j(t) )\mu_i(t)$ |

The diversity-weighted portfolio yields an excess growth rate
$$
\gamma^{(p)}(t) = \frac{1-p}{2} \sum_{i<j} (\mu_i-\mu_j)^2\,d[ \log X_i, \log X_j ](t)
$$
while the entropy-based portfolio’s drift and variance are linked to the market entropy process and can be explicitly computed using the underlying SPDE/PDE for the macroscopic quantities.

## 5. Practical Implementation and Performance Quantification

The operational workflow for constructing prompt portfolios and assessing their performance comprises:

- **Parameter Estimation**: Fit the rank-based drift $b(\cdot)$ and diffusion $\sigma(\cdot)$ functions to empirical capitalization data, for example via Atlas model fits.
- **PDE/SPDE Solution**: Numerically solve the porous-medium PDE for $R(t,x)$ and corresponding Gaussian fluctuation SPDE.
- **Deterministic Path and Derivatives**: Evaluate the deterministic observable path $J(\rho(t))$ and its derivative $z'(t)$.
- **Variance Quantification**: Compute the limiting variance $\chi^2(t)$ using the covariance structure from the fluctuation SPDE.
- **Confidence Intervals**: Utilize the CLTs and concentration inequalities to derive explicit confidence intervals for relative outperformance over finite horizons. Non-asymptotic bounds on excess growth processes substantiate probability statements about reaching portfolio targets within a predefined timeframe.

In both construction and application, one seeks concave, symmetric generating functions that emphasize small-weight (lower-rank) stocks, as these tend to harvest volatility more effectively. The large-$n$ regime enables precise mapping from the choice of generating function to explicit risk and performance predictions.

## 6. Interpretation and Theoretical Significance

The functionally generated portfolio framework—especially as realized via rank-based models—enables rigorous, model-driven translation of macro-level market observables into actionable, pathwise portfolio rules. The dynamics of prompt portfolios are tractable through both deterministic (hydrodynamic limit) and stochastic (Gaussian fluctuation) perspectives, permitting closed-form approximations and rigorous confidence bounds for both the rate and the time to achieve excess return over the market. A significant theoretical implication is the existence of a well-defined pathway from model calibration, through PDE evaluation, to explicit short- and medium-term performance metrics, supporting both comparative portfolio analysis and robust risk estimation [1802.03593].

Source: https://www.emergentmind.com/topics/prompt-portfolios