Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do this in MATLAB. Code is there but I am not sure if it's related, thank you function r2 = CoeffDeter(fitted_fun,x_data,y_data) %% Calculations Sr

Please do this in MATLAB. Code is there but I am not sure if it's related, thank you

image text in transcribed

function r2 = CoeffDeter(fitted_fun,x_data,y_data)

%% Calculations Sr = sum((y_data-fitted_fun(x_data)).^2); % Total error between data points % and fitting model St = sum((y_data-mean(y_data)).^2); % total statistical error r2 = 1 - Sr/St; end

Problem 8. Multivariable linear regression analysis In this problem, we consider the linear regression analysis of two independent variables (two input variables). In the class example, we have considered the problem of regressing a set of data of house price as a function of the house area footage. The following set of data points records the house price as a function of the house area and lot size House Area (ft2 1474 1560 1584 1645 1712 1870 Lot Size (ft2) 10000 9500 2000 13000 13500 13000 House Price (USS) 150000 145000 160000 170000 190000 200000 Employ the following linear regression model where, x1 and x2 denote the variables of house area and lot size, respectively a) Employing the principle of least squares minimization, derive the linear regression equation to determine the unknown parameters ao, a11,a12. You may scan your handwrittern derivation and include in the homework file b) Predict the value of a house with area of 1,474 ft2 and lot size of 12,000 ft2

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

International Baccalaureate Computer Science HL And SL Option A Databases Part I Basic Concepts

Authors: H Sarah Shakibi PhD

1st Edition

1542457084, 978-1542457088

More Books

Students also viewed these Databases questions