This document provides an introduction to random forest and gradient boosting methods, explaining the anatomy and functioning of decision trees, including their application in classification and regression tasks. It discusses the advantages and disadvantages of decision trees, the process of ensemble learning through bagging and boosting, and the practical applications of these methods in fields like banking and medicine. The document also details the pseudo code for both random forest and gradient boosting approaches.