Medium: Probabilistic Justification for using specific Loss function in different types of Machine Learning Algorithms (Part 1)