Owner: @David Rusu @Alexander Mozeika

Analysis and Derivations are in overleaf: https://www.overleaf.com/1481687363pbpfjjvjgpgb#63be11

Total Stake Inference

Definitions

For given initial estimate, $D_0$ we learn total stake by running the following process.

$$ \hat{D}{\ell+1}=\hat{D}\ell-h\left(\log\left(\frac{1}{1-f}\right) - \frac{\sum_t^T\sum_i^N{s_i(t)[\hat{D}_\ell]}}{T}\right) $$

In words, $\frac{\sum_t^T\sum_i^N{s_i(t)[\hat{D}_\ell]}}{T}$ gives the average number of leaders per slot observed over the course of an epoch of length $T$. We expect to see roughly $\log\left(\frac{1}{1-f}\right)$ leaders per slot., the difference $\log\left(\frac{1}{1-f}\right) - \frac{\sum_t^T\sum_i^Ns_i(t)}{T}$ gives us our “error” term in the inference algorithm. We then scale this error by $h$ to get our correction.