Homework 6 Flashcards

1
Q

coeffs=polyfit (x, y, c)
(c - exponents)

A

gives you m and b at the c exponent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

absolute error

A

abs(y-yfit)
[max_error,max_loc]=max(abs_err)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SSE

A

sum((y-yfit).^2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SST

A

sum((y-mean(y)).^2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

rSquared

A

1(SSE/SST)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

polyval(ybestfit,x)

A

returns the value of ybestfit at x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

ybestfit(linear) =

A

coeffs(1)x + coeffs(2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ybestfit(polynomial) =

A

coeffs=polyfit(x,y,order)
xnew=linspace(min(x),max(x),300)
= polyval (coeffs,xnew)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly