Chapter 2 Linear regression