0% found this document useful (0 votes)
125 views3 pages

Addmath

This document describes using linear regression and the least squares method to fit a linear equation to nonlinear data. It shows converting a nonlinear equation to linear form, tabulating the data, and using formulas to calculate the slope (m) and y-intercept (c) of the best fit line. The calculated m and c values are then compared to the original nonlinear equation to check the linear approximation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
125 views3 pages

Addmath

This document describes using linear regression and the least squares method to fit a linear equation to nonlinear data. It shows converting a nonlinear equation to linear form, tabulating the data, and using formulas to calculate the slope (m) and y-intercept (c) of the best fit line. The calculated m and c values are then compared to the original nonlinear equation to check the linear approximation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Method 2

Linear Regression
Before applying linear regression, the equation from the question has to be
converted from non-linear to linear equation.

+ 2 =
= 2 +

= +

Equation 1

Where,

=

=
=
=

The values from the questions are tabulated in Microsoft Excel.

t Y y/t
0.50 0.40 0.80
1.00 0.71 0.71
1.50 0.62 0.41
2.00 0.62 0.31
2.25 0.05
0.02
Table 1
Method 3
Least Square Lines
The general equation for a straight line is = + . The formula below is used to
find

( ) ( )( )
=
( 2 ) ( )2
Equation 2

The formula below is used to find c

( ) ( )
=

The values from the question is tabulated into table 2 and table 3

t y y/t t*(y/t) x^2


0.50 0.40 0.80 0.40 0.25
1.00 0.71 0.71 0.71 1.00
1.50 0.62 0.41 0.62 2.25
2.00 0.62 0.31 0.62 4.00
2.25 0.05 0.02 0.05 5.06
Table 2

Sum of t 7.25
Sum of y 2.25
Sum of t*(y/t) 2.40
sum of x^2 12.56
Table 3

Substituting the values from table 3 into equation 1 and 2, the values of and is
obtained

5(2.4) (7.25)(2.255556)
=
5(12.5625) (7.25)2
= 0.4247
2.255556 (0.4247)(7.25)
=
5
= 1.0669

The values obtained from the calculation is compared to equation 1


= +

=
= 0.4247
= .
=
= .
=
= 0.44
= .
=
= .

You might also like