这些是我自己做题的思路,但是吧,本人能力和水平有限,存在理解有问题却不自知的情况,望大家帮忙指正,思路仅供参考哈
第一题
Consider the problem of predicting how well a student does in her second year of college/university, given how well she did in her first year.
Specifically, let x be equal to the number of “A” grades (including A-. A and A+ grades) that a student receives in their first year of college (freshmen year). We would like to predict the value of y, which we define as the number of “A” grades they get in their second year (sophomore year).
Here each row is one training example. Recall that in linear regression, our hypothesis is h_θ(x)=θ_0 +θ_1x, and we use m to denote the number of training examples.
For the training set given above (note that this training set may also be referenced in other questions in this quiz), wha