A Computational Complexity Viewpoint on the Stability of Relative Frequency and on Stochastic Independence