This is a note to myself about how to support non-linear grids, not only linear grids, when redistributing probabilities. I have found good success wrangling probabilities on linear grids, but some of my problems are better represented by exponential grids. I remembered enough linear algebra to solve the linear grid problem, but got lost trying to solve the exponential grid problem. This is what Gemini told me…
When you transition from isolated expected values to full distributions with distinct, non-overlapping clusters of probability, the most robust approach is to handle the mapping and reduction locally. This ensures you maintain the shape, mass, and expected value of each individual cluster without bleeding probability across the entire grid.
Here is how you can translate these clusters to your exponential grid Y = \exp(0:\ln(N+1))-1, and subsequently reduce them.
1. Translating Clusters to the Exponential Grid
To translate clusters from your linear grid X to the exponential grid Y, you apply the adjacent-point projection method point-by-point rather than globally. This preserves the local expected value of every individual element in your clusters.
For every point x_k in a cluster on grid X that has a probability p_k > 0:
- Find the two adjacent points y_m and y_{m+1} on the exponential grid such that y_m \le x_k \le y_{m+1}.
- Split the probability p_k between these two points to preserve x_k’s expected value contribution:
q_{m+1} = p_k \frac{x_k - y_m}{y_{m+1} - y_m}
q_m = p_k - q_{m+1}
- Sum the overlapping probabilities on the Y grid. If a translated point from one cluster overlaps with another (which is possible depending on the resolution of Y), you simply add the assigned probabilities together at that grid node.
This step guarantees a feasible, non-negative distribution on the exponential grid that perfectly preserves both the total probability (1.0) and the global expected value, while keeping the structural “clusters” intact.
2. The Reduction Step for a Cluster
Once your probabilities are translated to the exponential grid Y, you might find that a cluster spans several consecutive grid nodes (e.g., from index a to index b).
To reduce this cluster to a “minimal basis” representation on the exponential grid, you compress the entire cluster down to its two local endpoints: y_a and y_b.
First, calculate the total mass and the expected value of this specific cluster:
- Cluster Probability (p_c): \sum_{i=a}^{b} q_i
- Cluster Value (V_c): \sum_{i=a}^{b} q_i y_i
Next, set up the linear system for the new reduced probabilities, q_a' and q_b', at the endpoints of the cluster:
\begin{bmatrix} 1 & 1 \\ y_a & y_b \end{bmatrix} \begin{bmatrix} q_a' \\ q_b' \end{bmatrix} = \begin{bmatrix} p_c \\ V_c \end{bmatrix}
Solving this system yields the reduction formulas:
q_b' = \frac{V_c - p_c y_a}{y_b - y_a}
q_a' = p_c - q_b'
Why this is Always Feasible
In your previous global example, feasibility was an issue if the expected value escaped the grid bounds. For local cluster reduction, it is mathematically guaranteed to be feasible (no negative probabilities).
Because V_c is the expected value strictly derived from the points between y_a and y_b, the “center of mass” of the cluster (\frac{V_c}{p_c}) will always fall strictly between y_a and y_b:
y_a \le \frac{V_c}{p_c} \le y_b
If you multiply that inequality by p_c, you get:
p_c y_a \le V_c \le p_c y_b
Because V_c is guaranteed to be greater than or equal to p_c y_a, the numerator in the q_b' equation (V_c - p_c y_a) will always be positive, guaranteeing that both q_a' and q_b' are valid, non-negative probabilities.
You can apply this exact reduction step independently to the run of probabilities at i:i+3 and the run at j:j+4, compressing each into just two non-zero grid points on the exponential grid.









