Statistics for Designing an optimal LSST deep drilling program for cosmology with type Ia supernovae