Writing2026
Precision Is a Resource: How Much Arithmetic Does a Covariance Matrix Deserve?
The thesis of this article fits in two sentences. When we solve linear systems with a sample covariance matrix, as we do whenever we build a minimum-variance portfolio, a risk model or a regression on correlated signals, the floating-point precision we need is set by how much data we have and by how we use the answer, not by the size or the conditioning of the problem. For a single estimate the data are forgiving. For a portfolio re-estimated and traded every day they are not.
Both halves are measured below, on synthetic markets. For minimum-variance weights estimated once from observations, the ratio of rounding error to estimation error behaves like , where is the unit roundoff. In a Gaussian five-factor model with , the median of lies between 2.0 and 3.2 across two portfolio sizes, five sample lengths and three floating-point formats, and the textbook condition number largely drops out of the ratio. When the same weights are re-estimated daily on a rolling window, consecutive estimates share almost all their data, so their statistical errors are nearly identical, while their rounding errors are not. The rounding noise then appears as spurious turnover, and its share of true turnover grows like , not . In the same synthetic market binary16 adds about half again to daily turnover at four years of history; binary32 adds about one part in ten thousand.
The practical consequence is simple. Binary32 is ample for covariance linear algebra in every configuration measured here. Binary64 carries more than 30 bits, nine or more decimal orders of magnitude, beyond what either criterion can use for daily data. The 16-bit formats are adequate only for estimates used once. There are, however, good reasons to keep binary64 that this accuracy argument does not touch, and they are listed near the end.
Why ask now?
Why should anyone revisit a question that seemed settled in 1985? The IEEE 754 standard made binary64 the unremarkable default of scientific computing, and for good reason: it was cheap insurance. Very few people working in quantitative finance chose double precision; it was simply what double meant.
What has changed is that the formats are no longer interchangeable. The 2008 revision of IEEE 754 added a 16-bit binary format, the bfloat16 format has spread with machine-learning accelerators, and halving the bits halves the storage and memory traffic of a matrix. Whether that buys speed depends on the hardware and the library, and it is not automatic. On the machine used for this article, an Apple M4 Pro running numpy 2.0.2 with Apple’s Accelerate library, binary32 matrix multiplication was 1.8 to 4.0 times faster than binary64 for from 100 to 4,000, LU solves ran at the same speed (0.92 to 1.00 times), and Cholesky factorization in binary32 was slower than in binary64 (0.64 to 0.93 times). This article therefore makes only the accuracy argument. How many bits does the answer deserve? Whether a given machine delivers those bits faster is a separate question, answered by a benchmark on that machine.
Numerical analysts have also given us better tools to answer the accuracy question. Classical rounding error bounds grow like and are, as Wilkinson already observed, wildly pessimistic. Higham and Mary (2019) proved that, under a model in which rounding errors are independent with zero mean, the constant can be replaced by one growing like , with high probability. Connolly, Higham and Mary (2021) showed that stochastic rounding satisfies a weaker form of that model without further assumptions. Carson and Higham (2018) showed how to factorize a matrix in low precision and still obtain a working-precision answer by refining in higher precision.
What is missing is an answer to the user’s question: how much precision does my problem deserve? The numerical analyst answers in terms of . For estimated matrices this is, for the most part, the wrong question.
Two errors, one answer
Let be the true covariance matrix of asset returns and the sample covariance from observations. The minimum-variance weights are
What we would like is . What we can estimate is . What we actually compute, in a floating-point format with unit roundoff , is a third vector . There are therefore two errors, and they have different origins:
The first is the price of finite data and has nothing to do with computers. The second is the price of finite arithmetic and has nothing to do with data. For an estimate that is used once, the sensible requirement for the second is that it be small compared with the first. Driving the numerical error down to when the statistical error is buys nothing: no decision changes, no risk number changes. We return later to the cases where this criterion is the wrong one.
Why the condition number (largely) cancels
Both errors are perturbations of the same matrix, and to first order they reach the weights through the same linear map.
Proposition 1 (shared first-order operator). Let be symmetric positive definite, and . For a symmetric perturbation with ,
Proof. From we get . Differentiating gives , and substituting proves the claim.
Apply this with . The statistical error corresponds to , since the truth is a perturbation of the estimate. A backward stable solver produces the exact solution of a nearby problem , so the numerical error corresponds to , the backward error. The ratio we care about is therefore, to first order,
The operator contains , which is where the condition number lives. A textbook bound applies to the numerator and declares the numerical error to be of order . But the statistical error passes through the same operator. If the two perturbations were equally “generic” with respect to , the amplification would cancel exactly and the ratio would depend only on the sizes of the perturbations.
They are not equally generic, and this can be measured. Write the first-order error in the eigenbasis of ; its components are . Two quantities summarize where a perturbation lands: the share of the squared error that comes from the bottom tenth of the eigenvalues, and the amplification , which equals one in the worst case. The table compares the sampling error, the rounding error of a binary16 Cholesky factorization () and a random symmetric Gaussian matrix, for and 50 samples per row (median, with interquartile range for the last column).
| bottom-decile share: sampling | rounding | random | amplification ratio, rounding / sampling | |
|---|---|---|---|---|
| 0.05 | 0.45 | 0.43 | 0.48 | 2.18 (1.68–2.84) |
| 0.2 | 0.68 | 0.51 | 0.49 | 1.69 (1.24–1.98) |
| 0.5 | 0.91 | 0.73 | 0.73 | 1.07 (0.89–1.31) |
| 0.8 | 1.00 | 0.94 | 0.93 | 0.54 (0.41–0.75) |
Empirical observation (synthetic Gaussian factor model). Rounding errors behave like a random perturbation: their bottom-decile share matches the random matrix at every . Sampling errors do not. As grows they concentrate in the directions of the smallest eigenvalues, which are exactly the eigenvalues that the Marchenko–Pastur law (Marchenko and Pastur, 1967) pushes towards zero. The cancellation is therefore partial: for rounding errors are amplified up to about twice as much as sampling errors, relative to their size, and that factor is absorbed into the constant below. As approaches one the balance reverses and the residual amplification is no longer constant. This is where the regularity reported next breaks down.
The experiment
The test is deliberately plain. We take a five-factor model with a dominant market factor, assets and daily scaling. We draw Gaussian returns of length from 100 to 16,000, form the sample covariance, compute and in binary64, then compute by Cholesky factorization and two triangular solves in emulated bfloat16 (), binary16 () and binary32 (). Every arithmetic result is rounded to the target significand; the exponent range is not emulated here (that is done later). Each row uses 50 independent samples. The code has no dependencies beyond numpy and is published with this article.
Fig. 1 — Statistical error falls like ; numerical error does not depend on . Lines are medians and bands interquartile ranges over 50 samples. Where the gold line crosses a black line, that precision stops being adequate for a single estimate.
The table divides the error ratio by . If the scaling holds, the normalized ratio should be roughly constant. Entries are medians over 50 samples, with the interquartile range for binary16.
| statistical error | , bf16 | , binary16 (IQR) | , binary32 | ||||
|---|---|---|---|---|---|---|---|
| 50 | 1,000 | 0.05 | 0.204 | 2.42 | 2.22 (1.92–2.84) | 2.08 | |
| 50 | 4,000 | 0.013 | 0.098 | 2.15 | 2.24 (1.76–2.50) | 2.22 | |
| 50 | 16,000 | 0.003 | 0.049 | 2.03 | 2.09 (1.74–2.54) | 1.98 | |
| 50 | 250 | 0.2 | 0.449 | 2.40 | 2.43 (2.10–2.83) | 2.33 | |
| 200 | 1,000 | 0.2 | 0.421 | 3.16 | 2.92 (2.63–3.30) | 2.92 | |
| 200 | 4,000 | 0.05 | 0.192 | 2.63 | 2.64 (2.43–2.85) | 2.60 | |
| 200 | 16,000 | 0.013 | 0.094 | 2.48 | 2.52 (2.30–2.88) | 2.54 | |
| 50 | 100 | 0.5 | 0.935 | 3.52 | 3.28 (2.84–4.42) | 3.55 | |
| 200 | 400 | 0.5 | 0.851 | 5.23 | 4.36 (3.86–5.02) | 4.41 | |
| 200 | 250 | 0.8 | 1.699 | breakdown | 10.76 (9.38–13.33) | 10.31 |
For , across a factor of four in , a factor of sixteen in , a factor of seven in and five orders of magnitude in , the median of stays between 1.98 and 3.16. Two further regularities appear in the same rows: the statistical error lies between 0.84 and 0.93 times in every configuration, and the numerical error lies between 1.8 and 2.9 times . The cancels, and what remains is .
Should the scaling be or , which the statistical error suggests? Over the 21 format-configuration pairs with , the coefficient of variation of is 0.13 with and 0.16 with ; including it is 0.29 against 0.45. The simpler form fits better, and we keep it.
At the constant has risen to between 3.3 and 5.2, and at it is about 10, with bfloat16 Cholesky breaking down in all 50 samples. This is the regime of the alignment table, in which the weights are in any case dominated by estimation error: the statistical error is 0.85 to 1.7.
Conjecture 1 (precision–sample law). For minimum-variance weights computed by a backward stable Cholesky solve from a sample covariance of observations of assets, with bounded away from one, the ratio of numerical to statistical error satisfies
with a constant that depends on the factor structure and on but not on . The evidence is the synthetic experiment above; it supports constants of 2 to 3.2 for and shows the constant growing beyond that.
What would a proof need? It would need a probabilistic forward error analysis for the statistic , in the direction that weights, together with a description of how sampling errors are distributed over the eigenvectors of . The second is random matrix theory; the alignment table shows why it cannot be skipped. The first is, as far as I know, open.
Heavier tails, regime changes and shrinkage
Does the constant survive less convenient data and a better estimator? We reran the configuration , with three return distributions (Gaussian; multivariate Student-t with 4 degrees of freedom, scaled to the same covariance; and a two-state regime-switching volatility model with volatility multipliers 0.7 and 1.8 and daily persistence 0.98, scaled so that the unconditional covariance is unchanged) and two estimators (the sample covariance and the Ledoit–Wolf shrinkage estimator towards a scaled identity). Entries are medians over 50 samples with the interquartile range of for binary16; is the Ledoit–Wolf shrinkage intensity.
| estimator | returns | statistical error | , binary16 (IQR) | |||
|---|---|---|---|---|---|---|
| sample | Gaussian | 1,000 | 0.286 | 447 | 2.56 (2.23–2.85) | — |
| sample | Gaussian | 4,000 | 0.133 | 374 | 2.45 (2.26–2.91) | — |
| sample | Student-t, 4 dof | 1,000 | 0.391 | 566 | 2.13 (1.93–2.46) | — |
| sample | Student-t, 4 dof | 4,000 | 0.224 | 415 | 1.56 (1.34–1.85) | — |
| sample | regime switching | 1,000 | 0.363 | 506 | 2.19 (1.81–2.49) | — |
| sample | regime switching | 4,000 | 0.168 | 383 | 1.88 (1.68–2.24) | — |
| Ledoit–Wolf | Gaussian | 1,000 | 0.271 | 378 | 2.38 (2.00–2.77) | 0.010 |
| Ledoit–Wolf | Gaussian | 4,000 | 0.131 | 360 | 2.41 (2.13–2.71) | 0.002 |
| Ledoit–Wolf | Student-t, 4 dof | 1,000 | 0.344 | 298 | 1.77 (1.51–2.02) | 0.032 |
| Ledoit–Wolf | Student-t, 4 dof | 4,000 | 0.216 | 338 | 1.41 (1.21–1.68) | 0.010 |
| Ledoit–Wolf | regime switching | 1,000 | 0.326 | 377 | 2.03 (1.80–2.35) | 0.015 |
| Ledoit–Wolf | regime switching | 4,000 | 0.163 | 359 | 2.02 (1.79–2.28) | 0.004 |
Empirical observation (synthetic). Heavy tails and regime switching raise the statistical error, by up to 68% here, while leaving the numerical error essentially unchanged, so they lower (to between 1.4 and 2.2). That strengthens the conclusion rather than weakening it. Shrinkage answers the question the first version of this article left open, for these configurations: the Ledoit–Wolf intensity is small at (between 0.002 and 0.032), it lowers the condition number by between 4% and 47%, and it moves by at most about 17% in either direction. Heavier shrinkage, which is what large calls for, was not tested.
A budget in bits for a single estimate
If the scaling holds, choosing a precision for an estimate that will be used once becomes arithmetic. Suppose we want the numerical error to be at most a fraction of the statistical error. With for a -bit significand and , the upper end of the range measured for , we need
| history (daily) | bits for | bits for | |
|---|---|---|---|
| 1 year | 250 | 9.0 | 12.3 |
| 4 years | 1,000 | 10.0 | 13.3 |
| 16 years | 4,000 | 11.0 | 14.3 |
| 64 years | 16,000 | 12.0 | 15.3 |
Binary16, with 11 bits, is adequate at the 10% level up to about sixteen years of daily data. Bfloat16, with 8 bits, is not adequate at the 10% level for any history in the table. Binary32, with 24 bits, stays within 1% of the statistical error up to of about . The most demanding entry needs 15.3 bits, so binary64’s 53 bits are about 38 bits, roughly 11 decimal orders of magnitude, more than a single estimate can use, and 29 bits (about 8.7 decimal orders) more than binary32.
That is the forgiving half of the thesis. The next section is the other half.
The answer is used every day: rolling re-estimation and turnover
A risk model or a minimum-variance portfolio is rarely estimated once. It is re-estimated every day on a rolling window, and every change in the weights is a trade. Two estimates on consecutive days share of their observations, so their statistical errors are almost the same and the true day-to-day change in is small. Rounding errors have no such memory: the computation on day is a fresh computation, and its rounding errors are, for practical purposes, independent of those on day . A precision that is harmless for the level of the weights can therefore be harmful for their changes.
The experiment: assets with and , and with ; weights recomputed every day for 250 days (100 days for ) in binary64, binary32, binary16 and bfloat16; 50 independent markets. We measure the one-way turnover averaged over days, the true turnover of the binary64 weights, and the numerical component, which is the turnover of the difference .
| true turnover | binary16: numerical / true (IQR) | binary16: extra turnover | bfloat16: numerical / true | binary32: numerical / true | ||
|---|---|---|---|---|---|---|
| 50 | 250 | 5.6% | 0.32 (0.28–0.35) | +6.8% | 2.4 | |
| 50 | 1,000 | 1.1% | 1.00 (0.94–1.13) | +48% | 6.8 | |
| 100 | 1,000 | 1.8% | 1.15 (1.06–1.23) | +60% | 8.0 |
Fig. 2 — The numerical share of daily turnover is proportional to over five orders of magnitude, and larger for longer windows. Medians and interquartile ranges over 50 markets.
Empirical observation (synthetic). The numerical share of turnover is close to with between 1.75 and 2.6 in all nine format-configuration pairs, from binary32 to bfloat16. Two facts explain the form of this law, heuristically. The numerical part of the daily change is the difference of two nearly independent rounding errors, so its size is about times the numerical error of the level, which by the previous sections is of order ; in the data the ratio is 1.38 to 1.42 for binary32 and binary16 (1.19 to 1.36 for bfloat16, where the errors are no longer small). The true daily change is of order , because the window moves by one observation in ; between and it fell from 5.6% to 1.1%. The ratio of the two grows like .
The extra turnover is smaller than the numerical share, because the two components are nearly orthogonal and add roughly in quadrature: a numerical share raises turnover by about , which predicts 4.9%, 41% and 52% for the three binary16 rows against the measured 6.8%, 48% and 60%. A 10% increase in turnover therefore corresponds to a numerical share of about 0.46.
The bit budget for a daily-rebalanced portfolio follows from , with :
| history (daily) | bits for numerical share | ||
|---|---|---|---|
| 1 year | 250 | 12.7 | 16.0 |
| 4 years | 1,000 | 14.7 | 18.0 |
| 16 years | 4,000 | 16.7 | 20.0 |
| 64 years | 16,000 | 18.7 | 22.0 |
The turnover criterion is stricter than the single-estimate criterion by four to seven bits, and it rules out both 16-bit formats for daily rebalancing at every history length in the table. Binary32 satisfies it with room to spare: by the same formula its numerical share stays below 1% up to and below 10% up to . Against the most demanding entry, 22 bits, binary64 still carries 31 surplus bits, about nine decimal orders of magnitude.
Conditioning decides existence, not accuracy
Does the condition number then play no role? It plays one, but a different one. A low-precision Cholesky factorization can fail. When is large, rounding can make a pivot non-positive and the factorization breaks down. A classical sufficient condition due to Demmel guarantees success when a modest multiple of is below one, where is the matrix scaled to unit diagonal (Higham 2002, ch. 10). In our experiments bfloat16 broke down in all 50 samples with , , where . Binary16 survived there with , which shows how conservative the sufficient condition is.
So conditioning determines whether you can factorize at all in a given precision. Once the factorization exists, even a poor low-precision factor can be turned into an accurate solve. In classical iterative refinement we keep the low-precision factor , compute residuals in binary64, solve with the cheap factor, and update . Carson and Higham (2018) analyse this, and its three-precision generalizations, in detail. Informally, each step multiplies the error by a factor of order , where is the factorization precision, until the error reaches the accuracy the residual precision allows.
Fig. 3 — Refinement with a low-precision Cholesky factor and binary64 residuals (, ). The contraction factor per step is about to times .
Figure 3 shows the textbook picture with real numbers. A binary32 factor gives binary64 accuracy within two to four steps at every condition number we tried, up to . A binary16 factor with contracts the error by a factor of about per step. A bfloat16 factor with , which by the usual rule should not work at all, still contracts by about per step. Binary16 with contracts by about . At the iteration diverges, as it must.
Refinement is also the remedy for the turnover problem, if a low-precision factorization is wanted for other reasons: a refined solve has the accuracy of the residual precision, and its day-to-day rounding noise is correspondingly small.
The exponent range: a format is more than its significand
All the experiments so far emulate only the significand. A real binary16 number also has a small exponent range: the largest finite value is 65,504, the smallest normal number is about , and below that numbers become subnormal and lose precision. Bfloat16 has the exponent range of binary32 and does not have this problem. We repeated the single-estimate experiment (, , 50 samples) with full emulation of subnormals, underflow and overflow, for two universes: one with typical daily variances (between and in this model) and a low-volatility universe with all volatilities divided by ten (variances between and ). Entries are the number of failed samples (breakdown, overflow or non-finite weights) and the median numerical error of the rest.
| universe | scaling | binary16, significand only | binary16, full format | bfloat16, full format |
|---|---|---|---|---|
| typical | raw daily covariance | 0 failed; | 0 failed; | 0 failed; |
| typical | returns in basis points | 0 failed; | 50 failed | 0 failed; |
| typical | correlation matrix | 0 failed; | 0 failed; | 0 failed; |
| low volatility | raw daily covariance | 0 failed; | 50 failed | 0 failed; |
| low volatility | returns in basis points | 0 failed; | 0 failed; | 0 failed; |
| low volatility | correlation matrix | 0 failed; | 0 failed; | 0 failed; |
Empirical observation (synthetic). The failures are overflows, and they come from the solution, not the matrix. The minimum-variance system has a solution of size about : in the typical universe its entries reach , which fits in binary16; in the low-volatility universe they reach , which does not. Rescaling returns to basis points multiplies the covariance by , which repairs the low-volatility case and breaks the typical one, because covariances of up to no longer fit. Basis points move the problem rather than solve it. The robust remedy is to work with the correlation matrix: with the diagonal of , solve and set , doing the scaling in higher precision. It never failed, and its error equals that of the significand-only emulation. When nothing overflows, subnormals cost little: the raw typical case lost about 20% of accuracy, from to .
A different regime: long sums
Not every computation in finance is a linear solve. Many are accumulations: a profit-and-loss series summed over years, a Monte Carlo estimator averaged over millions of paths, an exponentially weighted statistic updated tick by tick. Here the relevant count is the number of operations, not the sample size, and round-to-nearest has a failure mode that no amount of data fixes.
Accumulate positive increments of size about in a format with an 11-bit significand. Once the running sum exceeds roughly , each new increment is smaller than half the spacing of the floating-point numbers near , and round-to-nearest returns unchanged. The sum stagnates: in our runs it stalls near 4 while the true sum climbs to 262, an error of 98.5% at (Figure 4).
Stochastic rounding rounds up to the next representable number with probability equal to its fractional distance from the number below, so . Connolly, Higham and Mary (2021) showed that this makes the rounding errors mean independent and that backward error bounds then hold without further assumptions. For accumulations of positive terms the following bound is short to prove.
Theorem 2 (stochastic rounding does not drift). Let be representable numbers with exact partial sums and total . Let and with a -bit significand, and put . Then and
where the remainder comes only from the at most steps at which the sum enters a new binade, and satisfies . In particular the relative root-mean-square error is at most , independently of .
Proof. Write and , so that . Let be the history up to step . Stochastic rounding gives , so the errors form a martingale difference sequence. Hence , and since cross terms vanish, .
Let be the spacing of -bit numbers at , so that , and let be the distance from down to the nearest representable number. Rounding up has probability , so . If lies on the grid of spacing , which is the case unless has just crossed into a coarser binade, then . Therefore . Taking expectations, and using unbiasedness, , so
by the identity . At the at most binade crossings we use only . Since by what has already been shown, .
The variance of a stochastic rounding is not of order but of order : it is proportional to the increment, because a small increment is rounded up only rarely. The variances add up to a multiple of , which is of order , instead of growing with .
Theorem 2 is an upper bound, and it should be read as one. It does not say what the error is; it says what the root-mean-square error cannot exceed. Nor does it make stochastic rounding accurate. Its guarantee is of order , which for binary16 is , about 45 times the unit roundoff . Stochastic rounding prevents stagnation. It does not deliver working precision.
Fig. 4 — Summing increments of about with an 11-bit significand; medians and interquartile ranges over 100 runs. Round-to-nearest stagnates; stochastic rounding stays below its bound but far above the unit roundoff; compensated and pairwise summation stay at working precision.
Figure 4 adds the two classical remedies, both computed with every operation rounded to the same 11-bit significand. Over 100 runs, the relative error of stochastic rounding had a median between and and a root-mean-square value between and , within the bound of Theorem 2 at every . Kahan’s compensated summation (Kahan, 1965) had a median error between and , below the unit roundoff, and pairwise summation (Higham, 1993) between and . At stochastic rounding was 46 times less accurate than Kahan summation. Where a low-precision accumulator cannot be avoided, compensated or pairwise summation is the first remedy, and stochastic rounding is for hardware or algorithms where those are not available.
When the error criterion is the wrong criterion
Everything above compares rounding error with estimation error, or with true turnover. For several common computations that comparison is not the relevant one, and binary64, sometimes more, remains the right choice.
- Reproducibility and audit. A backtest, a risk report or a regulatory calculation may have to reproduce bit for bit, or within a stated tolerance, across machines, library versions and years. Lower precision does not make results less reproducible in principle, but it makes every source of non-reproducibility (summation order, threading, fused multiply–add) larger by the ratio of the unit roundoffs, which is between binary32 and binary64.
- Finite-difference sensitivities and Greeks. A central difference with step has truncation error of order and rounding error of order ; the best achievable relative accuracy is of order . That is about in binary32 and in binary16, before any further amplification. Second differences, as for gamma, fare worse.
- Differences of nearly equal quantities. Marginal risk contributions, the risk of a proposed trade, or the comparison of two portfolios that differ in a few names are differences between large, almost equal numbers. The relevant scale is the difference, not the level, and the statistical errors of the two terms largely cancel while their rounding errors do not. This is the turnover argument again, in another form.
- Long chained computations. Simulations, recursions and iterative calibrations accumulate rounding error with the number of steps, not with the amount of data (the previous section is one example). Their precision budget is set by the chain length.
For these, the question is not “is the rounding error small compared with the estimation error?” but “is it small compared with the quantity that is actually used?” The answer can easily be no in binary32.
What changes on Monday
If you build risk models or portfolios, four things follow, all subject to the evidence being synthetic.
First, for covariance linear algebra whose result is used once, such as a one-off risk estimate or a research study, binary32 is ample, and 16-bit formats are adequate only with correlation scaling, small, and a history short enough for the single-estimate budget.
Second, for anything re-estimated and traded daily, neither 16-bit format is adequate without refinement: in our synthetic markets binary16 added 7% to 60% to turnover and bfloat16 more than doubled it. Binary32 added about one part in ten thousand. If the hardware favours a low-precision factorization, refine the solve with residuals in at least binary32.
Third, keep binary64, or better, where the error criterion is the wrong criterion: reproducible backtests and audits, finite-difference sensitivities, differences of nearly equal quantities, and long chained computations. For covariance linear algebra outside those cases, binary32 is a defensible default; binary64 there buys reproducibility and comfort rather than accuracy.
Fourth, treat accumulations separately. A sum over millions of terms is not protected by statistics. Use pairwise or compensated summation.
What this does not show
All laws in this article are empirical observations on synthetic markets: Gaussian, Student-t and regime-switching returns generated from a five-factor model with known covariance. They have not been measured on real return data, where non-stationarity also changes what “true” covariance means.
The rolling-window experiment covers , two window lengths and one market structure. The form is supported over five orders of magnitude of , but its constant may depend on and on the factor structure in ways three configurations cannot reveal, and turnover in practice is filtered by trading rules that we did not model.
Conjecture 1 is supported for . It fails, as the alignment measurements say it should, as approaches one, and it is unproven.
Only one shrinkage estimator was tested, at the small intensities it chooses when . Mean–variance portfolios, which add the much larger estimation error of expected returns (the effect Michaud, 1989, called the optimization enigma), were not studied.
The speed measurements come from one CPU and one library. They show that low precision is not automatically faster, not that it never is; GPUs and other libraries were not tested.
References
- Carson, E. and Higham, N. J. (2018). Accelerating the solution of linear systems by iterative refinement in three precisions. SIAM Journal on Scientific Computing, 40(2), A817–A847.
- Connolly, M. P., Higham, N. J. and Mary, T. (2021). Stochastic rounding and its probabilistic backward error analysis. SIAM Journal on Scientific Computing, 43(1), A566–A585.
- Higham, N. J. (1993). The accuracy of floating point summation. SIAM Journal on Scientific Computing, 14(4), 783–799.
- Higham, N. J. (2002). Accuracy and Stability of Numerical Algorithms, 2nd ed. SIAM.
- Higham, N. J. and Mary, T. (2019). A new approach to probabilistic rounding error analysis. SIAM Journal on Scientific Computing, 41(5), A2815–A2835.
- IEEE (2008). IEEE Standard for Floating-Point Arithmetic, IEEE Std 754-2008.
- Kahan, W. (1965). Further remarks on reducing truncation errors. Communications of the ACM, 8(1), 40.
- Ledoit, O. and Wolf, M. (2004). A well-conditioned estimator for large-dimensional covariance matrices. Journal of Multivariate Analysis, 88(2), 365–411.
- Marchenko, V. A. and Pastur, L. A. (1967). Distribution of eigenvalues for some sets of random matrices. Mathematics of the USSR-Sbornik, 1(4), 457–483.
- Michaud, R. O. (1989). The Markowitz optimization enigma: is “optimized” optimal? Financial Analysts Journal, 45(1), 31–42.
- Wilkinson, J. H. (1963). Rounding Errors in Algebraic Processes. Prentice-Hall.
Code and data. All numbers and figures in this article come from experiments.py (Python 3.9, numpy 2.0), which runs in under two minutes on a laptop (about 20 seconds more with the optional timing benchmark) and writes results.json. Seeds are fixed; every stochastic experiment uses at least 50 samples, and the summation experiment 100.
Revised 11 November 2026. This version replaces 12-sample tables with 50-sample medians and interquartile ranges, corrects the statement of how much precision binary64 carries beyond what the data can use, and adds the sections on rolling re-estimation and turnover, robustness, the exponent range, and the cases where binary64 should be kept. It also adds compensated and pairwise summation to the summation experiment and replaces implied speed claims with a measured benchmark.
Tags — floating point, rounding error analysis, mixed precision, stochastic rounding, covariance estimation, portfolio optimization, turnover