Statistics for Using Machine Learning to Estimate the Photometric Redshift of Galaxies