Calculating the matrix inverse

Assignment Help Other Subject
Reference no: EM133640088

Scientific Computing

Instruction:

You may use MATLAB or Python for writing your programs. You are allowed to use the library function for calculating the matrix inverse, but are not allowed to use any library functions for calculating the pseudo or Moore-Penrose inverse.

Upload all your programs to the homework dropbox (do not put this in a word document or a pdf file. I'll should be able to run your programs for evaluation)

Learning Objective: To understand that there may exist a unique solution for a square matrix system of equations (using matrix inverse) and there exists a unique least squares solution to a rectangular matrix system of equations when there are more number of training data than the number of unknown model parameters to be estimated.

Homework Problem:

1. Write a program to determine a unique polynomial function y(x) that passes through all the given data {(x1, y1), . . . , (xn, yn)}, for an arbitrary choice of n. Confirm that your estimates of the model parameters agree with the data by plotting the model predicted values of yi for various values of xi.

Data Generation : To evaluate your algorithms (programs), generate test data

{(xi, yi)}i=1n that has a cubic relationship as follows:

(a) Let the underlying relationship between variables xi (independent) and yi (dependent) be cubic. i.e. yi = β0 + β1xi + β2x2 + β3x3.

(b) Choose any non-zero values for the model parameters β0, β1, β2 and β3.

(c) Generate exactly 4 unique data points from the cubic model: {(xi, yi)}4i=1, where yi = β0 + β1xi + β2x2 + β3x3. For example, choosei xi = {-2, 0, 2, 4} ; β0 = 3; β1 = -1; β2 = -3 and β3 = 1 and estimate the model predicted values yi. i.e. these data points lie exactly on the cubic model. (ancillary question: how should one choose {xi}4i=1 for simulating the data governed by the model?)

Model validation

(a) Plot the data {(xi, yi)}4 i=1 used for estimating the model parameters {βi, i = 0, . . . , 3}

(b) Once the model parameters are estimated, estimate yˆi for {xi = -2, -1.9, -1.8, . . . , -0.1, 0, 0.1, . . . , 3.8, 3.9, 4.0}

(c) In the same figure, plot the data {(xi, y^i)} predicted by the model in the previous step.

(d) Write your observations from the plot as well as by comparing your parameter estimates with the true model parameters.

Question 1: Write a program to determine a polynomial function y(x) that passes through all the given data {(x1, y1), . . . , (xn, yn)} in a least squared error sense as discussed in class (for an arbitrary choice of n). Confirm that your estimates of the model parameters agree with the data by plotting the model predicted values of yi for various values of xi

Data Generation : To evaluate your algorithms (programs), generate test data {(xi, yi)}ni=1 that has a cubic relationship as follows:

a) Same as in the first problem.
b) Same as in the first problem.
c) Same as in the first problem.
d) Add random variations to each of the data points as follows:

yi = β0 + β1xi + β2x2 + β3x3 + ∈i, where the random variable ∈i follows a normal distribution with 0 mean and σ standard deviation. i.e. ∈i ∼ Normal(0, σ2). You can choose any variance σ, e.g. σ = 2. Hint: In Matlab, you can use eps = normrnd(mu, sigma, n) to draw n random ∈i from a normal distribution with mean mu = 0 and standard deviation sigma.

Model validation:

(a) Plot the data {(xi, yi)}4i=1 used for estimating the model parameters {βi, i = 0, . . . , 3}

(b) Once the model parameters are estimated, estimate yˆi for {xi = -2, -1.9, -1.8, . . . , -0.1, 0, 0.1, . . . , 3.8, 3.9, 4.0}

(c) In the same figure, plot the data {(xi, yˆi)} predicted by the model in the previous step.

(d) Write your observations from the plot as well as by comparing your parameter estimates with the true model parameters.

Reference no: EM133640088

Questions Cloud

Discuss the pricing strategy you plan to use : How you will use the sales cycle to approach it as you establish your consulting business. Discuss the pricing strategy you plan to use.
Discuss how you foresee using technology in your classroom : Discuss how you foresee using technology in your classroom to teach this particular age group and/or content area.
Performance Appraisal Role-Play : Performance Appraisal Role-Play The ability to provide comprehensive feedback is a skill that is required of anyone who supervises others in the workplace.
Are you concerned that automation may increase unemployment : Are you concerned that automation may increase unemployment or underemployment in the United States and around the world? Why or why not?
Calculating the matrix inverse : EECE 7220 Scientific Computing, The University of Memphis - calculating the matrix inverse, but are not allowed to use any library functions
How closely process parallels decision making process steps : The 7-step decision process Clearly state the decision that needs to be made. Analyze how closely your process parallels the Decision Making Process steps.
Implementing global cultural diversity initiative : What customer outcomes can the company expect to achieve as a result of implementing a global cultural diversity initiative?
How information is used to formulate marketing objectives : Explain how this information is used to formulate marketing objectives, strategies, and tactics that align to the organization's mission and vision statements.
Does company you work for have remote work policy : Does the company you work for have a remote work policy? If so, how effective is it? If not, do you feel a policy could be put in place? Explain.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd