Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
16 views

Problem Sheet

This document provides instructions for four computational methods: 1. Using the Newton-Raphson method to find roots of an equation. 2. Using Gaussian elimination to solve systems of linear equations. 3. Using the Gauss-Jordan method to find the inverse of a matrix. 4. Using linear regression to find the line of best fit for a set of data points and determine the regression equation.

Uploaded by

qwerty12348
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Problem Sheet

This document provides instructions for four computational methods: 1. Using the Newton-Raphson method to find roots of an equation. 2. Using Gaussian elimination to solve systems of linear equations. 3. Using the Gauss-Jordan method to find the inverse of a matrix. 4. Using linear regression to find the line of best fit for a set of data points and determine the regression equation.

Uploaded by

qwerty12348
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

CE312 COMPUTER AIDED DESIGN I

a. Roots of an equation using Newton - Raphson method.

b. Solution of linear simultaneous equations using Gauss elimination.


Use Gaussian elimination to solve the system of linear equations

c. Matrix inversion using Gauss Jordan method


Find the inverse of

Step 1: Adjoin the identity matrix to the right side of A:

Step 2: Apply row operations to this matrix until the left side is reduced to I. The
computations are:

Step 3: Conclusion: The inverse matrix is:

d. Linear regression line of given points


To find the Simple/Linear Regression of
X Values Y Values
60
3.1
61
3.6
62
3.8
63
4
65
4.1

To find regression equation, we will first find slope, intercept and use it to form
regression equation..
Step 1: Count the number of values.
N=5
Step 2: Find XY, X2
See the below table

X Value Y Value
X*Y
X*X
60
3.1
60 * 3.1 = 186 60 * 60 = 3600
61
3.6 61 * 3.6 = 219.6 61 * 61 = 3721
62
3.8 62 * 3.8 = 235.6 62 * 62 = 3844
63
4
63 * 4 = 252 63 * 63 = 3969
65
4.1 65 * 4.1 = 266.5 65 * 65 = 4225
Step 3: Find X, Y, XY, X2.
X = 311
Y = 18.6
XY = 1159.7
X2 = 19359
Step 4: Substitute in the above slope formula given.
Slope(b) = (NXY - (X)(Y)) / (NX2 - (X)2)

= ((5)*(1159.7)-(311)*(18.6))/((5)*(19359)-(311)2)
= (5798.5 - 5784.6)/(96795 - 96721)
= 13.9/74
= 0.19
Step 5: Now, again substitute in the above intercept formula given.
Intercept(a) = (Y - b(X)) / N
= (18.6 - 0.19(311))/5
= (18.6 - 59.09)/5
= -40.49/5
= -8.098
Step 6: Then substitute these values in regression equation formula
Regression Equation(y) = a + bx
= -8.098 + 0.19x.
Suppose if we want to know the approximate y value for the variable x = 64.
Then we can substitute the value in the above equation.
Regression Equation(y) = a + bx
= -8.098 + 0.19(64).
= -8.098 + 12.16
= 4.06
This example will guide you to find the relationship between two variables by
calculating the Regression from the above steps.

You might also like