1. Consider some masurement data is given below. x_data = [-2.26 -2.01 -1.41 -0.62 0 0.52...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Consider some masurement data is given below. x_data = [-2.26 -2.01 -1.41 -0.62 0 0.52 1.07 1.21 1.86 2.63 2.88]; y_data = [-2.00 -3.91 -2.62 -3.15 0 1.56 2.42 1.97 1.37 1.86 1.00]; i) Find linear function in form of f(x) = ax + b which minimizes square error If (xdata) - Ydatal2 and calculate this error (Write analytical expression explicitly.). (10p) ii) Find second order polynomial function in form of f(x) = a₁ + a₁x + a₂x² which minimizes square error ||f(xdata) — Ydatall, and calculate this error (Write analytical expression explicitly.). (10p) iii) Consider part i). Pick up 100 value between -5 and 5 for both a and b. Calculate |lf (xdata) - Ydata||₂ for each (a, b) pair by computer code. Check that whether there is a value lower than the error found in i). Comment the result. (5p) iv) Plot the measurement data and the function found in i) in a same figure. (Consider "scatter, plot, hold on" commands for MATLAB). (5p) v) Plot the measurement data and the function found in ii) in a same figure. (Consider "scatter, plot, hold on" commands for MATLAB). (5p) vi) Let [A1]11x2[b, a]2x1 = [b]11x1 the matrix equation constructed by the data and given model in i). Show that (ATA)-¹ATb gives same result found in i). (Use computer code) (5p) vii) Let [A1]11x3[ao, a1, a2l3x1 = [b]11x1 the matrix constructed by the data and given model in ii). Show that (ATA)-1ATb gives same result found in ii). (Use computer code) (5p) 1. Consider some masurement data is given below. x_data = [-2.26 -2.01 -1.41 -0.62 0 0.52 1.07 1.21 1.86 2.63 2.88]; y_data = [-2.00 -3.91 -2.62 -3.15 0 1.56 2.42 1.97 1.37 1.86 1.00]; i) Find linear function in form of f(x) = ax + b which minimizes square error If (xdata) - Ydatal2 and calculate this error (Write analytical expression explicitly.). (10p) ii) Find second order polynomial function in form of f(x) = a₁ + a₁x + a₂x² which minimizes square error ||f(xdata) — Ydatall, and calculate this error (Write analytical expression explicitly.). (10p) iii) Consider part i). Pick up 100 value between -5 and 5 for both a and b. Calculate |lf (xdata) - Ydata||₂ for each (a, b) pair by computer code. Check that whether there is a value lower than the error found in i). Comment the result. (5p) iv) Plot the measurement data and the function found in i) in a same figure. (Consider "scatter, plot, hold on" commands for MATLAB). (5p) v) Plot the measurement data and the function found in ii) in a same figure. (Consider "scatter, plot, hold on" commands for MATLAB). (5p) vi) Let [A1]11x2[b, a]2x1 = [b]11x1 the matrix equation constructed by the data and given model in i). Show that (ATA)-¹ATb gives same result found in i). (Use computer code) (5p) vii) Let [A1]11x3[ao, a1, a2l3x1 = [b]11x1 the matrix constructed by the data and given model in ii). Show that (ATA)-1ATb gives same result found in ii). (Use computer code) (5p)
Expert Answer:
Answer rating: 100% (QA)
i To find the linear function in the form of fx ax b that minimizes the square error we need to minimize the squared difference between the predicted values fxdata and the actual values Ydata Lets den... View the full answer
Related Book For
Understanding Basic Statistics
ISBN: 9781111827021
6th Edition
Authors: Charles Henry Brase, Corrinne Pellillo Brase
Posted Date:
Students also viewed these mathematics questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
A researcher wanted to find out if there was difference between older movie goers and younger movie goers with respect to their estimates of a successful actors income. The researcher first...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-4. Ivan and Irene paid the following in 2012 (all by check or can otherwise be...
-
In a 1994 study, 164 pregnant, HIV-positive women were randomly assigned to receive the drug AZT during pregnancy and 160 such women were randomly assigned to a control group that received a placebo....
-
FIFO method, spoilage. Refer to the information in Exercise 18-24. If you want to use Excel to solve this exercise, go to the Excel Lab at www.prenhall.com/horngren/cos113e and download the template...
-
7 5 points 8 Proctor & Gamble reports total dollar amount of assets as $119,307. This means the actual total dollar amount of assets at the end of the year is: $119,307,000,000 $119,307,000 $119,307...
-
What is SE?
-
Yorks outstanding stock consists of 80,000 shares of noncumulative 7.5% preferred stock with a $ 5 par value and also 200,000 shares of common stock with a $ 1 par value. During its first four years...
-
Description : Analyze the behavior of the object (the rubber ball) in the interaction between the selected step (the first slope/ramp) and the next step (the second slope/ramp). Qualitatively...
-
Nancy Nanny opened a child-care facility on January 1, Year 1. Use the Chart of Accounts below to complete the requirements on the following pages for Nancy Nanny Child Care. NANCY NANNY CHILD...
-
A penny is placed on an LP record that is slowly accelerating up to 78 revolutions per minute. It is found that if the penny is placed at 0.080 m or greater from the centre, then the penny slides off...
-
Being a financially literate Lasallian student, if you could wake up tomorrow and received two (2) million pesos from your parent, siblings, and relatives as their graduation gift, what will you do...
-
Consider the following two projects: Year 0 Cash Project Flow -100 -73 A B Year 1 Year 2 Cash Cash Flow Flow 40 50 30 30 Year 3 Cash Flow 60 30 Year 4 Cash Flow N/A 30 Discount Rate .15 .15 a. What...
-
Display all the leading measures like - the number of claims, the amount claimed, amount claimed on the property, and the amount claimed on the vehicle. 2. Identify the correlation between the...
-
Pick at least two variables in the spreadsheet to "flex" by 5% up and down (for variables that cover more than one year please remember to change all years). Move these variables up 5% and recorded...
-
(a) Find R E SO(3) corresponding to the ZXZ roll-pitch-roll angles a = 90, B = 180, 7 = 45 (that is, given a moving frame originally at the identity configuration, rotate this frame about the fixed...
-
The following balances were extracted from Superfuture Sdn Bhd (SSB) for the year ended 31 December 2022. Purchases of raw materials Returns of raw materials Opening inventory of raw materials...
-
Discuss the concept of the looking-glass self. how do you think others perceive you? do you think most people perceive you correctly?
-
The following data represent baseball batting averages for a random sample of National League players near the end of the baseball season. The data are from the baseball statistics section of the...
-
Refer to the Minitab printout regarding prehistoric pottery. (a) Minitab calls the explanatory variable the predictor variable. Which is the predictor variable, the diameter of the pot or the height?...
-
Consider the following two events for an individual: A = owns a cell phone B = owns a laptop computer Translate each event into words. (a) Ac (b) A and B (c) A or B (d) A | B (e) B | A
-
a. Nonlinearity in mass b. Nonlinearity in damping c. Linear equation d. Nonlinearity in spring \(\ddot{x}+f \frac{\dot{x}}{|\dot{x}|}+\omega_{n}^{2} x=0\)
-
a. Nonlinearity in mass b. Nonlinearity in damping c. Linear equation d. Nonlinearity in spring \(\ddot{x}+\omega_{0}^{2}\left(x-\frac{x^{3}}{6} ight)=0\)
-
Prove that, for the system considered in Section 13.5.1, the minimum value of \(\omega^{2}\) for which the amplitude of subharmonic oscillations \(A\) will have a real value is given by...
Study smarter with the SolutionInn App