0 0 votes The closed form solution for linear regression is $\theta=\left(\mathbf{X}^T \mathbf{X}\right)^{-1} \mathbf{X}^T \mathbf{y}$. Suppose you have $N=35$ training examples and $M=5$ features (excluding the bias term). Once the bias term is now included, what are the dimensions of $\mathbf{X}, \mathbf{y}, \theta$ in the closed form equation? $\mathbf{X}$ is $35 \times 6, \mathbf{y}$ is $35 \times 1, \theta$ is $6 \times 1$$\mathbf{X}$ is $35 \times 6, \mathbf{y}$ is $35 \times 6, \theta$ is $6 \times 1$$\mathbf{X}$ is $35 \times 5, \mathbf{y}$ is $35 \times 1, \theta$ is $5 \times 1$$\mathbf{X}$ is $35 \times 5, \mathbf{y}$ is $35 \times 5, \theta$ is $5 \times 5$ Machine Learning goclasses goclasses-da-course machine-learning linear-regression + – GO Classes 199 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes In the closed-form solution θ=(X⊤X)−1X⊤y, we include a bias term, so total features become 6. Hence, X is 15×6, y is 15×1, and θ is 6×1. Correct option is A. Gayathri R answered Sep 3, 2025 Gayathri R comment Share Follow 0 reply Please log in or register to add a comment.