Bayesian statistics and experiments on stochastic variables