Thermal History, Statistical Modeling, And Machine Learning In Large-Scale Cosmology