This lecture covers the unified formulation of the generalized linear model, teacher-student perceptron, Bayes-optimal generalization, performance, and approximate message passing. It discusses the optimization of loss functions, free entropy, belief propagation, and the AMP algorithm.