Statistics for Forecasting and Optimization in Modern Cosmology