Beta impurity model 1 | ScratchStats