QInfer / python-qinfer

Library for Bayesian inference via sequential Monte Carlo for quantum parameter estimation.
BSD 3-Clause "New" or "Revised" License
92 stars 31 forks source link

Liu-West resampling: Infinite error in covariance estimation #108

Closed cgranade closed 7 years ago

cgranade commented 7 years ago

When covariance matrices are dominated by uncertainty in a low-dimensional subspace, scipy.linalg.sqrtm can sometimes report infinite error even if n_ess is large. I suspect that this can be solved by replacing sqrtm with a eigendecomposition that uses the hermicity of the covariance matrix, but this should be tested for accuracy.

ihincks commented 7 years ago

I have run into this problem, too.

I seem to recall that SVD algorithms are generally more stable than eigendecomposition algorithms, but I can't find a solid source, just things like the last page of these notes. I don't know if it matters in this context.