Numerical Methods for Engineers
Numerical Methods for Engineers
7th Edition
ISBN: 9780073397924
Author: Steven C. Chapra Dr., Raymond P. Canale
Publisher: McGraw-Hill Education
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
The least squares regression line for a set of data is calculated to be y = 24.8 + 3.41x. (a) One of the points in the data set is (4, 37). Calculate the predicted value. (b) For the point in part (a), calculate the residual.
Calculate the equation of the regression line and calculate the correlation coefficient
For the regression model Yi = b0 + eI, derive the least squares estimator.

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
Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:9781305658004
Author:Ron Larson
Publisher:Cengage Learning
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Linear Algebra: A Modern Introduction
Algebra
ISBN:9781285463247
Author:David Poole
Publisher:Cengage Learning
Text book image
Trigonometry (MindTap Course List)
Trigonometry
ISBN:9781305652224
Author:Charles P. McKeague, Mark D. Turner
Publisher:Cengage Learning
Text book image
Big Ideas Math A Bridge To Success Algebra 1: Stu...
Algebra
ISBN:9781680331141
Author:HOUGHTON MIFFLIN HARCOURT
Publisher:Houghton Mifflin Harcourt
Text book image
Functions and Change: A Modeling Approach to Coll...
Algebra
ISBN:9781337111348
Author:Bruce Crauder, Benny Evans, Alan Noell
Publisher:Cengage Learning
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