Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write it in matlab function [rmsvars lowndx] = a(filename) % [RMSVARS LOWNDX]=AFILENAME) finds the RMS errors of linear regression of the data in the

Please write it in matlab

function [rmsvars lowndx] = a(filename)

% [RMSVARS LOWNDX]=AFILENAME) finds the RMS errors of linear regression of the data in the file FILENAME by treating each column as a vector of dependent observations, using the other columns of the data as observations of independent varaibles. The individual RMS errors are returned in RMSVARS and the index of the smallest RMS error is returned in LOWNDX.

% INPUTS:

% FILENAME - character string, name of file to be processed; assume that the first row describes the data variables

% OUTPUTS:

% RMSVARS - 1xN array of RMS errors of linear regression

% LOWNDX - integer scalar, index into RMSVALS

% Read the test data from a CSV file; find the size of the data

% % STUDENT CODE GOES HERE: REMOVE THIS COMMENT

% % THEN READ THE FILE SPECIFIED BY THE INPUT ARGUMENT

% Compute the RMS errors for linear regression

% %

% % STUDENT CODE GOES HERE: REMOVE THE NEXT 2 LINES AND THIS COMMENT

% % THEN PERFORM THE COMPUTATIONS

% %

rmsvars = 0.1*(1:16);

lowndx = 1;

% Find the regression on your choice of standardized

% or unstandardized variables

% %

% % STUDENT CODE GOES HERE: REMOVE THIS COMMENT

% % THEN PERFORM THE COMPUTATIONS

% %

% Plot the results

% %

% % STUDENT CODE GOES HERE: REMOVE THIS COMMENT

% % THEN PLOT THE RESULTS

% %

end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions

Question

=+(5.42) E[n \N2] = a, Var[n 'N.] - B - x2 +H-P n

Answered: 1 week ago