This document is a comprehensive textbook on stochastic processes from a machine learning perspective, including topics like poisson-binomial processes, statistical inference, and applications in various fields. It provides readers with foundational knowledge, practical exercises, and original research developments, focusing on intuitive understanding and state-of-the-art methods. The material is supplemented with numerous resources such as source code, videos, and educational spreadsheets.