Statistics for Energy efficient path planning: the effectiveness of Q-learning algorithm in saving energy