Statistics for Direct optimal mapping for 21 cm cosmology: A demonstration with the hydrogen epoch of reionization array