Statistics for A novel approach for detecting and recognizing mathematical symbols