(c) Which of the comments corresponds to the code in the lines denoted with (1), (2), (3) and (5)? (1) design matrix for a linear model design matrix for a quadratic model matrix for polynomial interpolation matrix for spline interpolation (2) solve non-linear equation solve normal equation solve quadratic equation project X onto Y (3) draw model as a solid curve draw model as single dots (5) оо draw measurements as linear spline draw measurements as single dots draw model as a solid curve draw model as single dots draw measurements as linear spline dras measurements as single dots % read in data data = xm ут csvread('measurements.csv'); data(:,1); % 50 measurements for x data (:,2); % 50 measurements for y M = [ones (size (xm)), xm, xm.^2]; % b = (MM) (-1) *M'*y; % (1) (2) & display results. figure (1), clf, hold on prepare figure plot (xm, ym, ' . '); 응 (3) linspace (min (xm), max (xm),200); % define values for x & determine predicted model values y = plot (x, y,'-') & (4) (5) Please answer the following multiple choice questions in part a.), b.) and c.): (a) Which numerical method has been used in the above given example? polynomial interpolation numerical differentiation least-squares regression numerical integration (b) Choose the correct code that needs to be put into the line denoted with the number (4): (4) O О y y = 1+b(2) + b(3) ; 1 + x + x.^2 ; y = b (1) = b (1) y = b (2) *x + b (3) *x. ^2 ; + b (2) *x ;

College Algebra (MindTap Course List)
12th Edition
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:R. David Gustafson, Jeff Hughes
Chapter4: Polynomial And Rational Functions
Section4.6: Rational Functions
Problem 11SC: Find the mean hourly cost when the cell phone described above is used for 240 minutes.
icon
Related questions
Question
(c) Which of the comments corresponds to the code in the lines denoted with (1), (2), (3) and (5)?
(1)
design matrix for a linear model
design matrix for a quadratic model
matrix for polynomial interpolation
matrix for spline interpolation
(2)
solve non-linear equation
solve normal equation
solve quadratic equation
project X onto Y
(3)
draw model as a solid curve
draw model as single dots
(5)
оо
draw measurements as linear spline
draw measurements as single dots
draw model as a solid curve
draw model as single dots
draw measurements as linear spline
dras measurements as single dots
Transcribed Image Text:(c) Which of the comments corresponds to the code in the lines denoted with (1), (2), (3) and (5)? (1) design matrix for a linear model design matrix for a quadratic model matrix for polynomial interpolation matrix for spline interpolation (2) solve non-linear equation solve normal equation solve quadratic equation project X onto Y (3) draw model as a solid curve draw model as single dots (5) оо draw measurements as linear spline draw measurements as single dots draw model as a solid curve draw model as single dots draw measurements as linear spline dras measurements as single dots
% read in data
data =
xm
ут
csvread('measurements.csv');
data(:,1); % 50 measurements for x
data (:,2); % 50 measurements for y
M = [ones (size (xm)), xm, xm.^2]; %
b =
(MM) (-1) *M'*y; %
(1)
(2)
& display results.
figure (1), clf, hold on prepare figure
plot (xm, ym, ' . ');
응
(3)
linspace (min (xm), max (xm),200); % define values for x
& determine predicted model values
y =
plot (x, y,'-') &
(4)
(5)
Please answer the following multiple choice questions in part a.), b.) and c.):
(a) Which numerical method has been used in the above given example?
polynomial interpolation
numerical differentiation
least-squares regression
numerical integration
(b) Choose the correct code that needs to be put into the line denoted with the number (4):
(4) O
О
y
y
=
1+b(2) + b(3) ;
1 + x + x.^2 ;
y
=
b (1)
= b (1)
y
=
b (2) *x + b (3) *x. ^2 ;
+ b (2) *x ;
Transcribed Image Text:% read in data data = xm ут csvread('measurements.csv'); data(:,1); % 50 measurements for x data (:,2); % 50 measurements for y M = [ones (size (xm)), xm, xm.^2]; % b = (MM) (-1) *M'*y; % (1) (2) & display results. figure (1), clf, hold on prepare figure plot (xm, ym, ' . '); 응 (3) linspace (min (xm), max (xm),200); % define values for x & determine predicted model values y = plot (x, y,'-') & (4) (5) Please answer the following multiple choice questions in part a.), b.) and c.): (a) Which numerical method has been used in the above given example? polynomial interpolation numerical differentiation least-squares regression numerical integration (b) Choose the correct code that needs to be put into the line denoted with the number (4): (4) O О y y = 1+b(2) + b(3) ; 1 + x + x.^2 ; y = b (1) = b (1) y = b (2) *x + b (3) *x. ^2 ; + b (2) *x ;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
College Algebra (MindTap Course List)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning
College Algebra
College Algebra
Algebra
ISBN:
9781938168383
Author:
Jay Abramson
Publisher:
OpenStax