Question: Looking for help on this question dealing with R Question 5 As vou have seen in the production data and building height data! it is

Looking for help on this question dealing with "R"

Looking for help on this question dealing with "R" Question 5 As

Question 5 As vou have seen in the production data and building height data! it is not uncommon to consider a model which does not include the intercept term: Yr 2 Ext 'l' 9i 4&1) We will use the idea of least squares method to obtain an estimate of B. a} Suppose that a candidate value to approximate B is b. Using this notation, what is the predicted value of yi according to model (1}? b} The objective function should be the sum of the squares of the differences between the true yi and predicted value of 1-. Write down this objection function {2:ij as a function of ill c} {Bonus} Show that to minimize 12(1)], b should be chosen to be g = l1=1 xiyi 1r: 2. izlxi Note: This can be obtained bv taking derivative with respect to b. Alternativelv, vou mayr notice that (2(5) is esse ntiallvr a quadratic function of I). Use the result that the minimizer of a 2 z quadratic function (132 + CZ + d = (1(2' + i) + [d ) is z = i. 2:: 4a. 2a, d} Fit model {1} to the following data of stories and height of buildings, the same one as you have t: Height (in feet} seen in Quiz 1: Then use the estimated slope to predict the height ofa building having 4 stories

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!