4.1 Multiple features(variables)
notation
n = number of feature
x(i) = input (features) of ith training example
xj(i) = value of features j in ith training example
hypothesis:
previously: hθ(x)=θ0+θ1x
Now: hθ(x)=θ0+θ1x1+θ2x2+⋯+θnxn=θTx
for convenience of notation,define x0=1
X=⎝⎜⎜⎜⎜⎛x0x1x2…xn⎠⎟⎟⎟⎟⎞∈Rn+1θ=⎝⎜⎜⎜⎜⎛θ0θ1θ2…θn⎠⎟⎟⎟⎟⎞∈Rn+1
conclusion:
multivariate linear regression
4.2 Gradient Descent for multiple variables
hypothesis: