Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9789814670876
Author: Chapra
Publisher: BOOKXCHANG
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 17, Problem 22P

Recompute the regression fits from Probs. (a) 17.3 and (b) 17.17, using the matrix approach. Estimate the standard errors and develop 90% confidence intervals for the coefficients.

(a)

Expert Solution
Check Mark
To determine

To calculate: The coefficient of the regression fit equation of the given databy the use of matrix approach and then calculate standard error and 90% confidence levels for the coefficient.

x 0 2 4 6 9 11 12 15 17 19
y 5 6 7 6 9 8 7 10 12 12

Answer to Problem 22P

Solution:

The value of coefficient by the use of matrix approach is 4.8515and0.35247, the standard error for the coefficient is 1.065 and 90% confidence levels for the coefficient a0anda1 is,

[3.6951,6.0080]and[0.2501,0.4548]

Explanation of Solution

Given Information:

The data is,

x 0 2 4 6 9 11 12 15 17 19
y 5 6 7 6 9 8 7 10 12 12

Calculation:

The coefficient of the regression fit equation can be found out by the Matrix approach by following the below steps,

Step 1. First make Z matrix that contain column of ones in the first column and in the second column x value is shown.

Step 2. Now the coefficient of normal equation is made.

Step 3. Now compute the normal equation of the right hand side that is y data.

Step 4. The coefficient of the model can be found out by taking inverse of the result obtained in step 2 and step 3.

The following MATLAB will perform the desired steps,

% x data is given.

X=[024691112151719]';

% y data is given.

Y=[5676987101212]';

On the command window, write this command as,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  1

Now, the coefficient of normal equation is calculated as,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  2

Now, the normal equation of y is calculated as,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  3

Finally, the coefficient of the model can be found out,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  4

Therefore, the value of coefficientis 4.8515and0.35247.

Now, for calculating the standard error follow these commands,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  5

Now calculate r2 value,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  6

The standard error of the given data is 1.065.

Now for calculating 90% confidence levels for the coefficient, first calculate the inverse of [Z]T[Z] as,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  7

Then the standard error of each coefficient,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  8

Thevalue of TINV(0.1,102)=TINV(0.1,8)=1.8595 is determined by the statistic t value calculator. Therefore, the 90% confidence levels for the coefficient is,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  9

Hence, the 90% confidence levels for the coefficient a0anda1 is [3.6951,6.0080]and[0.2501,0.4548] respectively.

(b)

Expert Solution
Check Mark
To determine

To calculate: The coefficient of the regression fit cubic equation of the given databy the use of matrix approach and then calculate standard error and 90% confidence levels for the coefficient.

x 3 4 5 7 8 9 11 12
y 1.6 3.6 4.4 3.4 2.2 2.8 3.8 4.6

Answer to Problem 22P

Solution:

The value of coefficient by the use of matrix approach is 11.4887,7.1438,1.0412and0.0467, the standard error for the coefficient is 0.57 and 90% confidence levels for the coefficient a0,a1,a2anda3 is,

[20.0253,2.9521],[3.0378,11.2498],[1.6302,0.4522]and[0.0208,0.0726].

Explanation of Solution

Given Information:

The data is,

x 3 4 5 7 8 9 11 12
y 1.6 3.6 4.4 3.4 2.2 2.8 3.8 4.6

Calculation:

The coefficient of the regression fit equation can be found out by the Matrix approach by following the below steps,

Step 1. First make Z matrix that contain column of ones in the first column and in the second column x value is shown.

Step 2. Now the coefficient of normal equation is made.

Step 3. Now compute the normal equation of the right hand side that is y data.

Step 4. The coefficient of the model can be found out by taking inverse of the result obtained in step 2 and step 3.

The following MATLAB will perform the desired steps,

% x data is given.

X=[3457891112]';

% y data is given.

Y=[1.63.64.43.42.22.83.84.6]';

On the command window, write this commandfor cubic equation as,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  10

Now, the coefficient of normal equation is calculated as,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  11

Now, the normal equation of y is calculated as,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  12

Finally, the coefficient of the model can be found out,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  13

Therefore, the value of coefficient is 11.4887,7.1438,1.0412and0.0467.

Now, for calculating the standard error follow these commands,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  14

The standard error of the given data is 0.57.

Now for calculating 90% confidence levels for the coefficient, first calculate the inverse of [Z]T[Z] as,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  15

Then the standard error of each coefficient,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  16

The value of TINV(0.1,84)=TINV(0.1,4)=2.13185 is determined by the statistic t value calculator. Therefore, the 90% confidence levels for the coefficient is,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  17

And,

Numerical Methods for Engineers, Chapter 17, Problem 22P , additional homework tip  18

Hence, the 90% confidence levels for the coefficient a0,a1,a2anda3 is,

[20.0253,2.9521],[3.0378,11.2498],[1.6302,0.4522]and[0.0208,0.0726] respectively.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
find the least squares regression line equation from the given data.
Years of Work Experience and number of Job Offers of 10 job-seekers were as follows: Work Exp.      4   2   5   3    7    12   2     5    4    9 No. of Offers 7   1   8   4   13   19   3   11   9   15 a. Fit the regression equation of No. of Job Offers on Years of Work Experience. b. What will be the predicted number of offers for an applicant with 6 years of experience? c. Verify the relationship between the number of job offers and years of work experience using at least two relevant methods
In a multiple linear regression model with 3 predictor variables, what is the t-statistic for the hypothesis test of the null hypothesis that the coefficient of the second predictor variable is equal to 0, if the estimated coefficient is 0.5, the standard error of the estimate is 0.1, and the degrees of freedom is 15?

Chapter 17 Solutions

Numerical Methods for Engineers

Knowledge Booster
Background pattern image
Advanced Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Advanced Engineering Mathematics
Advanced Math
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Wiley, John & Sons, Incorporated
Text book image
Numerical Methods for Engineers
Advanced Math
ISBN:9780073397924
Author:Steven C. Chapra Dr., Raymond P. Canale
Publisher:McGraw-Hill Education
Text book image
Introductory Mathematics for Engineering Applicat...
Advanced Math
ISBN:9781118141809
Author:Nathan Klingbeil
Publisher:WILEY
Text book image
Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,
Text book image
Basic Technical Mathematics
Advanced Math
ISBN:9780134437705
Author:Washington
Publisher:PEARSON
Text book image
Topology
Advanced Math
ISBN:9780134689517
Author:Munkres, James R.
Publisher:Pearson,
Correlation Vs Regression: Difference Between them with definition & Comparison Chart; Author: Key Differences;https://www.youtube.com/watch?v=Ou2QGSJVd0U;License: Standard YouTube License, CC-BY
Correlation and Regression: Concepts with Illustrative examples; Author: LEARN & APPLY : Lean and Six Sigma;https://www.youtube.com/watch?v=xTpHD5WLuoA;License: Standard YouTube License, CC-BY