poor attempt at importance sampling | ScratchStats