Statistics for Adaptive and weighted optimization for efficient and robust learning