Statistics for Optimal Online Tuning of an Adaptive Controller