This lecture complements (and builds on top of) the lectures "Introduction to Pattern Recognition" and "Pattern Recognition". In this third edition, we focus on modeling of densities, and how to use these models for analyzing the data. Major topics of this lecture are regression, density estimation, manifold learning, hidden Markov models, conditional random fields, and random forests. The lecture is accompanied by exercises, where theoretical results are practically implemented and applied.