A Random Matrix Bayesian framework for out-of-sample quadratic optimization