Linear Regression EBook
On non Internet Explorer browsers,
the equations may not show up.
As an alternative or if you
prefer,
you can see the pdf version of the ebook instead
|
Title |
An interactive e-book for illustrating linear regression |
|
Creator |
Autar K Kaw |
|
Subject and Keywords |
Linear Regression |
|
Description |
This is an interactive E-book for illustrating linear
regression. It includes links to
examples |
|
Publisher |
Holistic Numerical Methods Institute |
|
Contributors |
|
|
Format |
Text/HTML |
|
Last Revised |
October 3 |
|
Identifier |
http://numericalmethods.eng.usf.edu/ebooks/straightline_06reg_ebook.pdf |
|
Language |
English |
|
Rights |
|
Background Why minimize the
sum of the square of the residuals? Method Example Example 1: Finding
the torsional stiffness of a mousetrap spring Example 2: Finding
the longitudinal Young’s of a unidirectional composite Presentation Simulation Simulation of Linear Regression [MAPLE]
[MATHCAD]
[MATHEMATICA]
[MATLAB] Linear regression is the most popular
regression model. In this model we
wish to predict response to n data points (x1 where a0 and a1 are the constants of the
regression model. A
measure of goodness of fit Ideally The
most popular method to minimize the residual is the least squares methods Why
minimize the sum of the square of the residuals? Why not Table 1 Data points.
To explain this data by a straight line regression model and using minimizing
The sum of the residuals, Table
2 The residuals at each
data point for regression model
So does this give
us the smallest error? It does as
also makes Table 3. The residuals at each data point for regression model
Since this
criterion does not give unique regression model Putting these equations
to zero You may think
that the reason the minimization criterion Table
4 The absolute residuals at each data point when employing
The value of Let us use the
least squares criterion where we minimize Sr is called the sum of the square of the
residuals. x y Figure 3. Linear regression of y vs. x data showing residuals at a typical
point To find a0 and a1 giving Noting that Solving the above Equations (14)
and (15) gives Redefining we can rewrite Simulation of
Linear Regression [MAPLE]
[MATHCAD]
[MATHEMATICA]
[MATLAB] Example 1 The torque Table 5 Torque versus angle for a torsion spring.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||