The algorithm would be Bayesian inference using the aforementioned likelihood.<p>The example is a simple illustration of how to fix bias. If bias is unknown then treat it as another unknown variable and use bayesian inference to identify it. If this is unfamiliar, I&#x27;m actually publishing a blog post about it tomorrow (how to find the bias in your phone&#x27;s compass) which you might find helpful.