Concept explainers
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)
To calculate: The coefficient of the regression fit equation of the given databy the use of matrix approach and then calculate standard error and
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
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,
On the command window, write this command as,
Now, the coefficient of normal equation is calculated as,
Now, the normal equation of y is calculated as,
Finally, the coefficient of the model can be found out,
Therefore, the value of coefficientis
Now, for calculating the standard error follow these commands,
Now calculate
The standard error of the given data is
Now for calculating
Then the standard error of each coefficient,
Thevalue of
Hence, the
(b)
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
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
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,
On the command window, write this commandfor cubic equation as,
Now, the coefficient of normal equation is calculated as,
Now, the normal equation of y is calculated as,
Finally, the coefficient of the model can be found out,
Therefore, the value of coefficient is
Now, for calculating the standard error follow these commands,
The standard error of the given data is
Now for calculating
Then the standard error of each coefficient,
The value of
And,
Hence, the
Want to see more full solutions like this?
Chapter 17 Solutions
Numerical Methods for Engineers
- If your graphing calculator is capable of computing a least-squares sinusoidal regression model, use it to find a second model for the data. Graph this new equation along with your first model. How do they compare?arrow_forwardFind the equation of the regression line for the following data set. x 1 2 3 y 0 3 4arrow_forwardThe model developed from sample data that has the form of Yhat = bo +bjX is known as the multiple regression model with two predictor variables. (True or False) O True O Falsearrow_forward
- (d)Assess the regression model's fitarrow_forwardA least squares regression line was calculated to relate the length (cm) of newborn boys to their weight in kg. The line is weight = -5.39+0.1621 length. A newborn was 48 cm long and weighed 3 kg. According to the regression model, what was his residual? What does that say about him?arrow_forwardThe regression line ?̂?=4+1.6?? has been fitted to the data points (x, y): (3, 8), (2, 7), (1, 6), (4, 11). Find the standard error of estimate.arrow_forward
- Consider the following. (-3,2) 1.5 (-1, 0) 0.5 (1,1) (a) Find the least squares regression line. y = (3,2) (b) Calculate S, the sum of the squared errors. Use the regression capabilities of a graphing utility to verify your results. S =arrow_forwardA least squares regression line was calculated to relate the length (cm) of newborn boys to their weight in kg. The line is weight = -5.69 + 0.1656 length. A newborn was 48cm long and weighed 33kg. According to the regression model, what was his residual? What does that say about him?arrow_forwardInterpret the least squares regression line of this data set. Meteorologists in a seaside town wanted to understand how their annual rainfall is affected by the temperature of coastal waters. For the past few years, they monitored the average temperature of coastal waters (in Celsius), x, as well as the annual rainfall (in millimetres), y. Rainfall statistics • The mean of the x-values is 11.503. • The mean of the y-values is 366.637. • The sample standard deviation of the x-values is 4.900. • The sample standard deviation of the y-values is 44.387. • The correlation coefficient of the data set is 0.896. The correct least squares regression line for the data set is: y = 8.116x + 273.273 Use it to complete the following sentence: The least squares regression line predicts an additional annual rainfall if the average temperature of coastal waters increases by one degree millimetres of Celsius.arrow_forward
- A least squares regression line was calculated to relate the length (cm) of newborn boys to their weight in kg. The line is weight=−5.82+0.1601 length. A newborn was 48 cm long and weighed 3 kg. According to the regression model, what was his residual? What does that say about him?arrow_forwardIf I want to estimate the regression of a model by using OLS on Eveiws , and I chose the "keep it as general as possible" approach, what tests can I apply through the estimation and inference process to validate the model and the variables?arrow_forwardTo help schedule staffing and equipment needs, a large hospital uses a multiple regression model to predict its 'bed census' y, the number of beds occupied at the end of each day. Using hospital records from the most recent 29 days, a total of 4 independent variables are used to find the estimated regression model. Let B1, B2, B, denote the coefficients of the 4 variables in this model. A computer printout indicates that the error sum of squares (SSE) associated with the model is 35.42 and the corresponding regression sum of squares (SSR) is 35.66. Using a significance level of 0.10, can you conclude that at least one of the independent variables in the model provides useful (i.e., statistically significant) information for predicting daily bed census? Perform a one-tailed test. Then complete the parts below. Carry your intermediate computations to three or more decimal places. (a) State the null hypothesis H, for the test. Note that the alternative hypothesis H, is given. 0. H, : at…arrow_forward
- Elementary Linear Algebra (MindTap Course List)AlgebraISBN:9781305658004Author:Ron LarsonPublisher:Cengage LearningAlgebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageLinear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning
- Trigonometry (MindTap Course List)TrigonometryISBN:9781305652224Author:Charles P. McKeague, Mark D. TurnerPublisher:Cengage LearningBig Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin HarcourtFunctions and Change: A Modeling Approach to Coll...AlgebraISBN:9781337111348Author:Bruce Crauder, Benny Evans, Alan NoellPublisher:Cengage Learning