Stochastic programming with a finite number of experiments