Question

2. [20| Consider the car stopping distance example we studied in Section 2.2, with the model 2 where d is the stopping distance, v is the velocity of the car before braking, tr is the response time, and k is a coefficient related to the ratio of the braking force and the mass fo the car. (a) [5] Fit the model (i.e, determine the parameters t and k) to the data in the first column and the last column of Table 2.4 (on Page 75 in the text, for your convenience, a CSV file containing the data has been posted on CourseSpaces), using the least aquare method. (You will need to use software such as MATLAB or R). Make a plot to compare your predicted stopping distance with the observed distance. (b) 5] Fit the same data to the model T=tr + ku where d/v. Make a plot to compare your predicted stopping dis- tance with the observed distance. (c) [5| Table 2.4 also shows that the variance of the stopping distance increases with the velocity v, which violates the implicit assumption of least square method. Propose a method to consider different vari ances with each v, and fit model 1. Make a plot to compare your predicted stopping distance with the observed distance. Note that your result does not improve the sum of squared residue (otherwise your answer would be identical to Paart (a). In what aspect do you consider this method as an in mprovement to the result in Part (a)?(d) 5 Suggest an improvement to the model, and fit your model to data, and show that it is an improvement. Make a plot to compare your predicted stopping distance with both the observed distance and your predictions in Part (a).

Speed Distance Standard Deviation 20 25 30 35 40 45 142.5 50 55209.5 60 65 292.5 70 75 80 56 73.5 91.5 116 4.5 5.5 10.5 13 16.5 20 24.5 29 35 42 173 248 343 401 464

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Using the software Solution of first two parts is provided as below:

clc
clear all
v=[20:5:80];
d=[42 56 73.5 91.5 116 142.5 173 209.5 248 292.5 343 401 464];
X=v;
Y=d./v;
C=polyfit(X,Y,1);
k=C(1)
tr=C(2)

plot(v,d,'*',v,k*v.*v+tr*v,'r');
figure;
k=C(1)
tr=C(2)
plot(X,Y,'*',X,k*X+tr,'r')

Add a comment
Know the answer?
Add Answer to:
2. [20| Consider the car stopping distance example we studied in Section 2.2, with the model...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Can someone show me an example on how to fit a model using least square method...

    Can someone show me an example on how to fit a model using least square method in R, and make a plot to compare the observed and predicted value? 2. [20] Consider the car stopping distance example we studied in Section 2.2, with the model where d is the stopping distance, v is the velocity of the car before braking, tr is the response time, and k is a coefficient related to the ratio of the braking force and the...

  • 4. Consider the Galápagos data and model analyzed in this chapter. The purpose of this question...

    4. Consider the Galápagos data and model analyzed in this chapter. The purpose of this question is to reproduce the details of the GLM fitting of this data (a) Fit a Poisson model to the species response with the five geographic variables as predictors. Do not use the endemics variable. Report the values of the coef ficients and the deviance (b) For a Poisson GLM, derive η, dn/d, V(μ) and the weights to be used in an iteratively fit GLM....

  • Question 2: Suppose that we wish to fit a regression model for which the true regression...

    Question 2: Suppose that we wish to fit a regression model for which the true regression line passes through the origin (0,0). The appropriate model is Y = Bx + €. Assume that we have n pairs of data (x1.yı) ... (Xn,yn). a) From first principle, derive the least square estimate of B. (write the loss function then take first derivative W.r.t coefficient etc) b) Assume that e is normally distributed what is the distribution of Y? Explain your answer...

  • Excel Lab 2: Regression and Goal Seek In this lab, you will use Excel to determine...

    Excel Lab 2: Regression and Goal Seek In this lab, you will use Excel to determine the equation of the model which best fits a set of ordered pairs obtained from data sets. You will enter data, graph the data, find the equation for the regression model, and then use that equation to make predictions for the dependent variable. You will use the goal seek to make predictions for the independent variable. Then you will consider how accurate your predictions...

  • (I did this homework in completion but professor was not happy with answers whatsoever, need additional...

    (I did this homework in completion but professor was not happy with answers whatsoever, need additional answers and especially improvement to 1.b help!! photos not attaching? mean by severai steps. inis is a View Feedback homework and will need you to work, in one two View Feedback or various steps. Unfortunately, I cannot read your screen shot of what you did on excel. As I have said in numerous messages announcements etc, I cannot аcсept pictures. You need to write...

  • In cell C6, insert a Scatter Chart for the Returns Completed versus Return Price data from...

    In cell C6, insert a Scatter Chart for the Returns Completed versus Return Price data from the Data worksheet. You may be used to seeing Price placed on the Y-axis from other economics courses, but in this problem we are using price as the independent variable. Inserting Chart Select the Scatter chart from the provided chart options in the Charts group of the Insert tab of the Ribbon. Selecting Data Series Then choose Select Data in the Design tab on...

  • Read the article below and in your own words, (1-2 sentences) what is the "true direction"...

    Read the article below and in your own words, (1-2 sentences) what is the "true direction" or right way to interpret nature, according to Bacon? True Directions Concerning the Interpretation of Nature (1620) Francis Bacon Those who have taken it on themselves to lay down the law of nature as something that has already been discovered and understood, whether they have spoken in simple confidence or in a spirit of professional posturing, have done great harm to philosophy and the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT