Fix calc information ratio and calc prob mom so that floating-point rounding residue from subtracting…
Fix calc information ratio and calc prob mom so that floating-point rounding residue from subtracting…: a task in UltraTerminal (Harbor dataset). Problem: When a return series beats a benchmark by a constant amount c , computing (r + c) - r does not yield exactly c in floating point. The residue…
The task
**Problem:** When a return series beats a benchmark by a constant amount `c`, computing `(r + c) - r` does not yield exactly `c` in floating point. The residue scales with the magnitude of `r`, so the standard deviation of the active returns ends up around 1e-19 rather than 0, and the information ratio explodes to…
Part of harness-hub/UltraTerminal.