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), what is the value of m? In the box below, please enter your answer (which should be a number between 0 and 10).
1
point
2。
For this question, assume that we are
using the training set from Q1. Recall our definition of the
cost function was J(θ0,θ1)=12m∑mi=1(hθ(x(i))−y(i))2.
What is J(0,1)? In the box below,
please enter your answer (Simplify fractions to decimals when entering answer, and '.' as the decimal delimiter e.g., 1.5).
1
point
3。
Suppose we set θ0=−2,θ1=0.5 in the linear regression hypothesis from Q1. What is hθ(6)?
Linear Algebra
正确
1 / 1 分
4。
Let u and v be 3-dimensional vectors, where specifically
u=⎡⎣4−4−3⎤⎦
and
v=⎡⎣424⎤⎦
What is uTv?
(Hint: uT is a
1x3 dimensional matrix, and v can also be seen as a 3x1
matrix. The answer you want can be obtained by taking
the matrix product of uT and v.) Do not add brackets to your answer.