Refined Error Bounds for Several Learning Algorithms