Statistics for Dual wavelength method of determining a relative position of a substrate and a template