Use Matlab and write entier script Problem 2. Generate the estimate (linear estimate) for y_est, and plot(x...

70.2K

Verified Solution

Question

Mechanical Engineering

Use Matlab and write entier script

Problem 2.

Generate the estimate (linear estimate) for y_est, and plot(x ,y_est).

Use “hold on” and plot(x,y) and plot(x,y_est), so that you cansee the result of the line and how it fits the data.  Does it look like it did a pretty good job?

An estimate of the “residual error” is the sum of the squares ofthe difference between y and y_est.

This is often denoted as r2.

r2 = sum( (y – y_est) .^2)

or equivalently

r2 = sum( (y – y_est)’ * (y – y_est)’)

What is the residual error for the above problem?

Answer & Explanation Solved by verified expert
4.4 Ratings (951 Votes)
I didnt have data so I am    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students