Question

In: Mechanical Engineering

The following data give the stopping distance d as a function of initial speed υ, for a certain

The following data give the stopping distance d as a function of initial speed υ, for a certain car model. Find a quadratic polynomial that fits the data. Determine the quality of the curve t by computing J, S, and r2.

Solutions

Expert Solution

 

Determine the quality of the curve fit by computing JS, and r2.

The following data gives the stopping distance as a function of initial speed v

 

 

 

 

To plot the above data set and to curve fit in MATLAB type the below code in script:

%enter the values of v

v = 20:10:70;

%enter the values of d

d = [45,80,130,185,250,330];

%give step increment for v

vf = 20:0.1:70;

%use ployfit command

p = polyfit(v,d,2);

df = polyval(p,vf);

J = sum((polyval(polyfit(v,d,2),v)-d).^2);

%use plot command

plot(vf,df,v,d,'*')

%give axis start values

axis([20 70 0 350])

%give y axis label

ylabel('d(ft)')

%give x axis label

xlabel('v(mi/hr)')

m = mean(d);

S = sum((d-m).^2);

r2 = 1-J/S;

J

S

r2

 

Now, RUN the code,

The plot display as follows:

 

 

And in command window results will prompt

 

 

 

 

The results are J = 10.1786 for the first through fourth-order polynomials. In addition, S = 57550 and r2 = 0.9998.

 


 

The results are J = 10.1786 for the first through fourth-order polynomials. In addition, S = 57550 and r2 = 0.9998.

Related Solutions

The relationship between the speed of a car and its stopping distance can be modelled by...
The relationship between the speed of a car and its stopping distance can be modelled by the function D= 0.0575v2, where D is the stopping distance, in metres, and v is the speed, in kilometres per hour. a) Express the speed, v, as a function of D, in the form of y = af[k(x-d)] + c b) Explain the meaning of the inverse function. c) Graph each relation on separate axes. Label axes and title each graph. d) State the...
The data in the following MINITAB output refer to an automobile’s stopping distance (in feet) at...
The data in the following MINITAB output refer to an automobile’s stopping distance (in feet) at different speeds. Data Display Row     Speed StopDist 1          25        63 2          25        56 3          30        84 4          35        107 5          45        153 6          45        164 7          55        204 8          55        220 9          65        285 10        65        303 Descriptive Statistics Variable          N         ...
To relate the stopping distance of a car to its speed, ten cars were tested at...
To relate the stopping distance of a car to its speed, ten cars were tested at five different speeds, two cars at each speed. The following data were obtained. Speed x (mph) 20 20 30 30 40 40 50 50 60 60 Stop. Dist. y (ft) 16.3 26.739.2 63.5 65.7 98.4 104.1 155.6 217.2 160.8 a) Fit a least-squares linear equation to these data. Plot the residuals against the speed. b) Comment on the goodness of the fit based on...
Choose the correct answer: 1- The stopping sight distance depends upon: a) design speed, driver perception...
Choose the correct answer: 1- The stopping sight distance depends upon: a) design speed, driver perception & reaction time, vehicle acceleration rate and road slope b) design speed, vehicle length, vehicle acceleration rate and road width c) vehicle length, vehicle width, vehicle speed and road slope d) wind speed, road slope, road curvature and side friction factor none of the above 2- The superelevation rate of a highway has a design speed of 100kph, radius of 393.7m and side friction...
Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a...
Using MATLAB: The velocity, v, and the distance, d, as a function of time, of a car that accelerates from rest at constant acceleration, a, are given by = a n d = 12 Determine v and d at every second for the first 10 seconds for a car with acceleration of = 15 ft/s2. Your output must have exactly the same format as the template table below. Note that dots have been added to the table below; you can...
A statistical program is recommended. ONE-SAMPLE T TEST : The following observations are on stopping distance...
A statistical program is recommended. ONE-SAMPLE T TEST : The following observations are on stopping distance (ft) of a particular truck at 20 mph under specified experimental conditions. 32.1 30.5 31.6 30.4 31.0 31.9 The report states that under these conditions, the maximum allowable stopping distance is 30. A normal probability plot validates the assumption that stopping distance is normally distributed. a) Determine the probability of a type II error when α = 0.01,σ = 0.65, and the actual value...
The table to the right gives size and distance data for the planets at a certain...
The table to the right gives size and distance data for the planets at a certain point in time. Calculate the scaled size and distance for each planet using a 1 to 10 billion scale model solar system. Planet Diameter Distance from Sun Mercury 4880 km 50.4 million km Venus 12,100 km 108.9 million km Earth 12,760 km 148.4 million km Mars 6790 km 220.2 million km Jupiter 143,000 km 748.6 million km Saturn 120,000 km 1501 million km Uranus...
Solve each of the following ODEs. If initial conditions are given, give the unique solution. d)...
Solve each of the following ODEs. If initial conditions are given, give the unique solution. d) y''' − 5y'' + 2y' + 8y = 0, y(0) = 2, y'(0) = −1, y''(0) = −5 e) y''' + 9y'' + 27y' + 27y = 0, y(0) = 2, y'(0) = 0, y''(0) = 3 a) x^2y'' + xy' + 4y = 0, x > 0 b) x^2y'' − 6y = 0, x > 0, y(1) = y'(1) = 5 c) x^2y''...
The first five questions are based on the following data on the stopping distances of cars...
The first five questions are based on the following data on the stopping distances of cars going various speeds. speed 10 11 12 13 14 distance 26 28 28 34 36 1. What is the explanatory variable? A. speed B. distance C. there is no explanatory variable 2. Find ˆ m. A. −.8 B. ≈ .948 C. 2 D. 2.6 E. other value 3. Find the coefficent of determination. A. ≈ .640 B. ≈ .801 C. ≈ .899 D. ≈...
The demand price for a certain brand of CDs is modeled by the function D(q) =...
The demand price for a certain brand of CDs is modeled by the function D(q) = −0.01q2 − 0.2q + 12, where p is the wholesale unit price in dollars and q is the quantity demanded each week, measured in thousands of discs. The supply price for the CDs is given by the function S(q) = 0.01q2 + 0.6q − 3, where price is the wholesale unit price in dollars and q stands for the number of CDs that will...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT