Once data is organized as X, a linear model's prediction is nothing more than the matrix-vector multiplication from Chapter 4: ŷ = Xw.