Statistics for Characterisation and Optimization of Ultrashort Laser Pulses