HELM/43_1_rgrssn-web/43_1_rgrssn-webse1.html
Kyle Stevenson f7fb60e852 Init commit
2023-04-30 22:34:22 -07:00

10994 lines
No EOL
236 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<title>
Regression
</title>
<meta charset="utf-8"/>
<meta content="target-densitydpi=device-dpi; width=device-width; initial-scale=1.0; minimum-scale=1.0; user-scalable=yes;" name="viewport"/>
<meta content="True" name="HandheldFriendly"/>
<meta content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" name="generator"/>
<link href="43_1_rgrssn-web.css" rel="stylesheet" type="text/css"/>
<link href="additional.css" rel="stylesheet" type="text/css"/>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ mml2jax: { preview: ["[maths rendering]"]},
"fast-preview": {disabled: true},
explorer:{ subtitle: true },
displayAlign: "center",
MatchWebFonts: {
matchFor: { "HTML-CSS": true, NativeMML: false, SVG: false },
fontCheckDelay: 2000,
fontCheckTimeout: 30 * 1000
},
"HTML-CSS": {
preferredFont: "STIX",
availableFonts: ["STIX","TeX"],
webFont: "STIX-Web",
linebreaks: { automatic: true, width: "90% container" }
},
SVG: {
font: "STIX-Web",
linebreaks: { automatic: false, width: "90% container" }
},
menuSettings: { collapsible: false, autocollapse: false, explorer: false }
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Register.MessageHook("End Math", function (msg) {
var nodes = Array.from(msg[1].querySelectorAll('.MJX_Assistive_MathML [id]'));
while (nodes.length) {
nodes.shift().removeAttribute('id');
}
}, 20);
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full" type="text/javascript">
</script>
<style type="text/css">
".MathJax_MathML" {text-indent: 0;}
</style>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async="" src="https://www.googletagmanager.com/gtag/js?id=G-V3KVNKQ1MQ">
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-V3KVNKQ1MQ');
</script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js">
</script>
<link href="toplayer.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="container">
<nav aria-labelledby="topnav">
<div id="topnav">
[
<a href="#main">
Skip navigation
</a>
] [
<a href="43_1_rgrssn-webli2.html">
prev
</a>
] [
<a href="43_1_rgrssn-webli2.html#tail43_1_rgrssn-webli2.html">
prev-tail
</a>
] [
<a href="#tail43_1_rgrssn-webse1.html">
tail
</a>
] [
<a href="43_1_rgrssn-web.html#43_1_rgrssn-webse1.html">
up
</a>
]
</div>
</nav>
<main id="main" role="main">
<h3 class="sectionHead">
<span class="titlemark">
1
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-5" id="x4-50001">
Regression
</a>
</h3>
<!--l. 109
-->
<p class="noindent">
As we have already noted, relationship(s) between variables are of interest to engineers who may
wish to determine the degree of association existing between independent and dependent variables.
Knowing this often helps engineers to make predictions and, on this basis, to forecast and plan.
Essentially, regression analysis provides a sound knowledge base from which accurate estimates of the
values of a dependent variable may be made once the values of related independent variables are
known.
</p>
<!--l. 120
-->
<p class="noindent">
It is worth noting that in practice the choice of independent variable(s) may be made by the engineer
on the basis of experience and/or prior knowledge since this may indicate to the engineer
which independent variables are likely to have a substantial influence on the dependent
variable. In summary, we may state that the principle objectives of regression analysis
are:
</p>
<ol class="enumerate1" start="1">
<li class="enumerate" id="x4-5002x1">
to enable accurate estimates of the values of a dependent variable to be made from
known values of a set of independent variables;
</li>
<li class="enumerate" id="x4-5004x2">
to enable estimates of errors resulting from the use of a regression line as a basis of
prediction.
</li>
</ol>
<!--l. 134
-->
<p class="noindent">
Note that if a regression line is represented as
<!--l. 134
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
f
</mi>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</math>
where
<!--l. 135
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
is
the independent variable, then the actual function used (linear, quadratic, higher degree
polynomial etc.) may be obtained via the use of a theoretical analysis or perhaps a scatter
diagram (see below) of some real data. Note that a regression line represented as
<!--l. 140
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
f
</mi>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</math>
is called a
<strong>
regression line of
</strong>
<!--l. 141
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<!--binary math rel, tripple hight
-->
<mi>
y
</mi>
<!--/binary math rel, tripple hight
-->
</mrow>
</math>
<strong>
on
</strong>
<!--l. 142
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<!--binary math rel, tripple hight
-->
<mi>
x
</mi>
<!--/binary math rel, tripple hight
-->
</mrow>
</math>
.
</p>
<!--l. 144
-->
<h4 class="subsectionHead">
<span class="titlemark">
1.1
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-6" id="x4-60001.1">
Scatter diagrams
</a>
</h4>
<!--l. 146
-->
<p class="noindent">
A useful first step in establishing the degree of association between two variables is the plotting of
a
<strong>
scatter diagram
</strong>
. Examples of pairs of measurements which an engineer might plot
are:
</p>
<ol class="enumerate1" start="1">
<li class="enumerate" id="x4-6002x1">
volume and pressure;
</li>
<li class="enumerate" id="x4-6004x2">
acceleration and tyre wear;
</li>
<li class="enumerate" id="x4-6006x3">
current and magnetic field;
</li>
<li class="enumerate" id="x4-6008x4">
torsion strength of an alloy and purity.
</li>
</ol>
<!--l. 156
-->
<p class="noindent">
If there exists a relationship between measured variables, it can take many forms. Even though an
outline introduction to non-linear regression is given at the end of this Workbook, we shall focus on
the
<strong>
linear relationship
</strong>
only.
</p>
<!--l. 160
-->
<p class="noindent">
In order to produce a good scatter diagram you should follow the steps given below:
</p>
<ol class="enumerate1" start="1">
<li class="enumerate" id="x4-6010x1">
Give the diagram a
<strong>
clear title
</strong>
and indicate exactly what information is being displayed;
</li>
<li class="enumerate" id="x4-6012x2">
Choose and
<strong>
clearly mark
</strong>
the axes;
</li>
<li class="enumerate" id="x4-6014x3">
Choose carefully and clearly mark the
<strong>
scales
</strong>
on the axes;
</li>
<li class="enumerate" id="x4-6016x4">
Indicate the
<strong>
source
</strong>
of the data.
</li>
</ol>
<!--l. 169
-->
<p class="noindent">
Examples of scatter diagrams are shown below.
</p>
<!--l. 171
-->
<p class="noindent">
<img alt="No alt text was set. Please request alt text from the person who provided you with this resource." src="./figures/pdf/workbook23Fig123.svg"/>
</p>
<ul class="itemize1">
<li class="itemize">
Figure 1 shows an association which follows a curve, possibly exponential, quadratic or
cubic;
</li>
<li class="itemize">
Figure 2 shows a reasonable degree of linear association where the points of the scatter
diagram lie in an area surrounding a straight line;
</li>
<li class="itemize">
Figure 3 represents a randomly placed set of points and no linear association is present
between the variables.
</li>
</ul>
<!--l. 183
-->
<p class="noindent">
Note that in Figure 2, the word &lsquo;reasonable&rsquo;&nbsp;is not defined and that while points &lsquo;close&rsquo;&nbsp;to the
indicated straight line may be explained by random variation, those &lsquo;far away&rsquo;&nbsp;may be due to
assignable variation.
</p>
<!--l. 189
-->
<p class="noindent">
The rest of this Section will deal with linear association only although it is worth noting that
techniques do exist for transforming many non-linear relationships into linear ones. We shall
investigate linear association in two ways, firstly by using educated guess work to obtain a regression
line &lsquo;by eye&rsquo;&nbsp;and secondly by using the well-known technique called the method of least
squares.
</p>
<!--l. 199
-->
<h4 class="subsectionHead">
<span class="titlemark">
1.2
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-7" id="x4-70001.2">
Regression lines by eye
</a>
</h4>
<!--l. 201
-->
<p class="noindent">
Note that at a very simple level, we may look at the data and, using an &lsquo;educated guess&rsquo;, draw
a line of regression &lsquo;by eye&rsquo;&nbsp;through a set of points. However, finding a regression line
by eye is unsatisfactory as a general statistical method since it involves guess-work in
drawing the line with the associated errors in any results obtained. The guess-work can be
removed by the method of least squares in which the equation of a regression line is
calculated using data. Essentially, we calculate the equation of the regression line by
minimising the sum of the squared vertical distances between the data points and the
line.
</p>
<h4 class="subsectionHead">
<span class="titlemark">
1.3
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-8" id="x4-80001.3">
The method of least squares - an elementary view
</a>
</h4>
<!--l. 216
-->
<p class="noindent">
We assume that an experiment has been performed which has resulted in
<!--l. 217
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
n
</mi>
</mrow>
</math>
pairs of
values, say
<!--l. 217
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
1
</mn>
</mrow>
</msub>
<mo class="MathClass-punc">
,
</mo>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
1
</mn>
</mrow>
</msub>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-punc">
,
</mo>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msub>
<mo class="MathClass-punc">
,
</mo>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msub>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-punc">
,
</mo>
<mo class="MathClass-rel">
&ctdot;
</mo>
<mspace class="thinspace" width="0.3em">
</mspace>
<mo class="MathClass-punc">
,
</mo>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</msub>
<mo class="MathClass-punc">
,
</mo>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</msub>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</math>
and that these results have been checked for approximate linearity on the scatter diagram given
below.
</p>
<!--l. 222
-->
<p class="noindent">
<strong>
Figure 4
</strong>
</p>
<!--l. 224
-->
<p class="noindent">
<img alt="No alt text was set. Please request alt text from the person who provided you with this resource." src="./figures/pdf/workbook23Fig4.svg"/>
</p>
<!--l. 227
-->
<p class="noindent">
The vertical distances of each point from the line
<!--l. 227
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
b
</mi>
<mi>
x
</mi>
</mrow>
</math>
are
easily calculated as
</p>
<!--l. 229
-->
<p class="noindent">
<!--l. 229
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
1
</mn>
</mrow>
</msub>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
1
</mn>
</mrow>
</msub>
<mo class="MathClass-punc">
,
</mo>
<mspace class="quad" width="1em">
</mspace>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msub>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msub>
<mo class="MathClass-punc">
,
</mo>
<mspace class="quad" width="1em">
</mspace>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
3
</mn>
</mrow>
</msub>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
3
</mn>
</mrow>
</msub>
<mspace class="quad" width="1em">
</mspace>
<mo class="MathClass-rel">
&ctdot;
</mo>
<mspace class="quad" width="1em">
</mspace>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
4
</mn>
</mrow>
</msub>
</mrow>
</math>
</p>
<!--l. 233
-->
<p class="noindent">
These distances are squared to guarantee that they are positive and calculus is used to minimise the
sum of the squared distances. Effectively we are minimizing the sum of a two-variable
expression and need to use partial differentiation. If you wish to follow this up and look in
more detail at the technique, any good book (engineering or mathematics) containing
sections on multi-variable calculus should suffice. We will not look at the details of the
calculations here but simply note that the process results in two equations in the two unknowns
<!--l. 241
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
m
</mi>
</mrow>
</math>
and
<!--l. 241
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
c
</mi>
</mrow>
</math>
being
formed. These equations are:
</p>
<!--l. 244
-->
<p class="noindent">
<!--l. 244
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mi>
y
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
</mrow>
</math>
(i)
</p>
<!--l. 245
-->
<p class="noindent">
and
</p>
<!--l. 246
-->
<p class="noindent">
<!--l. 246
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
y
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
n
</mi>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
</mrow>
</math>
(ii)
</p>
<!--l. 247
-->
<p class="noindent">
The second of these equations (ii) immediately gives a useful result. Rearranging the equation we
get
</p>
<!--l. 249
-->
<p class="noindent">
<!--l. 249
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
</mrow>
</math>
or, put
more simply
<!--l. 251
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="quad" width="1em">
</mspace>
<mi>
ȳ
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
b
</mi>
<mover accent="true">
<mrow>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-op">
̄
</mo>
</mover>
</mrow>
</math>
</p>
<!--l. 254
-->
<p class="noindent">
where
<!--l. 254
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mover accent="true">
<mrow>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-op">
̄
</mo>
</mover>
<mo class="MathClass-punc">
,
</mo>
<mi>
ȳ
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</math>
is the mean of
the array of data points
<!--l. 255
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
1
</mn>
</mrow>
</msub>
<mo class="MathClass-punc">
,
</mo>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
1
</mn>
</mrow>
</msub>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-punc">
,
</mo>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msub>
<mo class="MathClass-punc">
,
</mo>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msub>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-punc">
,
</mo>
<mo class="MathClass-rel">
&ctdot;
</mo>
<mspace class="thinspace" width="0.3em">
</mspace>
<mo class="MathClass-punc">
,
</mo>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</msub>
<mo class="MathClass-punc">
,
</mo>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</msub>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</math>
.
</p>
<!--l. 258
-->
<p class="noindent">
This shows that the mean of the array always lies on the regression line. Since the mean is easily
calculated, the result forms a useful check for a plotted regression line. Ensure that any regression
line you draw passes through the mean of the array of data points.
</p>
<!--l. 264
-->
<p class="noindent">
Eliminating
<!--l. 264
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
</mrow>
</math>
from the equations
gives a formula for the gradient
<!--l. 265
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
b
</mi>
</mrow>
</math>
of the regression line, this is:
</p>
<!--l. 266
-->
<p class="noindent">
<!--l. 266
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
b
</mi>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-bin">
&minus;
</mo>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
</mrow>
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-bin">
&minus;
</mo>
<msup>
<mrow>
<mfenced close=")" open="(" separators="">
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
</mrow>
</mfenced>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</mfrac>
</mrow>
</math>
often
written as
<!--l. 269
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="quad" width="1em">
</mspace>
<mi>
b
</mi>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
x
</mi>
<mi>
y
</mi>
</mrow>
</msub>
</mrow>
<mrow>
<msubsup>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
</mrow>
</mfrac>
</mrow>
</math>
</p>
<!--l. 273
-->
<p class="noindent">
The quantity
<!--l. 273
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msubsup>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
</mrow>
</math>
is, of course,
the variance of the
<!--l. 274
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
-values.
The quantity
<!--l. 274
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
x
</mi>
<mi>
y
</mi>
</mrow>
</msub>
</mrow>
</math>
is known
as the
<strong>
covariance
</strong>
(of
<!--l. 275
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
and
<!--l. 275
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
)
and will appear again later in this Workbook when we measure the degree of linear association
between two variables.
</p>
<!--l. 279
-->
<p class="noindent">
Knowing the value of
<!--l. 279
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
b
</mi>
</mrow>
</math>
enables
us to obtain the value of
<!--l. 280
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
</mrow>
</math>
from the equation
<!--l. 281
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="quad" width="1em">
</mspace>
<mi>
ȳ
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
b
</mi>
<mover accent="true">
<mrow>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-op">
̄
</mo>
</mover>
</mrow>
</math>
</p>
<div class="framed">
<!--l. 295
-->
<h5 class="likesubsubsectionHead">
<a href="#x4-90001.3" id="x4-90001.3">
Key Point 1
</a>
</h5>
<!--l. 295
-->
<p class="noindent">
<strong>
Least Squares Regression -
</strong>
&nbsp;
<!--l. 295
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<!--binary math rel, tripple hight
-->
<mi>
y
</mi>
<!--/binary math rel, tripple hight
-->
</mrow>
</math>
<strong>
on
</strong>
<!--l. 295
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<!--binary math rel, tripple hight
-->
<mi>
x
</mi>
<!--/binary math rel, tripple hight
-->
</mrow>
</math>
</p>
<!--l. 295
-->
<p class="noindent">
The least squares regression line of
<!--l. 295
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
on
<!--l. 295
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
has the
equation
<!--l. 295
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="quad" width="1em">
</mspace>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
b
</mi>
<mi>
x
</mi>
</mrow>
</math>
,
where
</p>
<!--l. 295
-->
<p class="noindent">
<!--l. 295
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
b
</mi>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-bin">
&minus;
</mo>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
</mrow>
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-bin">
&minus;
</mo>
<msup>
<mrow>
<mfenced close=")" open="(" separators="">
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
</mrow>
</mfenced>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</mfrac>
</mrow>
</math>
&nbsp;&nbsp;and
<!--l. 295
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
</mrow>
</math>
is given by the
equation&nbsp;&nbsp;
<!--l. 295
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
ȳ
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mover accent="true">
<mrow>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-op">
̄
</mo>
</mover>
</mrow>
</math>
</p>
</div>
<!--l. 296
-->
<p class="noindent">
It should be noted that the coefficients
<!--l. 296
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
b
</mi>
</mrow>
</math>
and
<!--l. 296
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
</mrow>
</math>
obtained here will give
us the regression line of
<!--l. 297
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
on
<!--l. 298
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
. This line is used to
predict
<!--l. 298
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
values given
<!--l. 298
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
values. If we need to
predict the values of
<!--l. 300
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
from
given values of
<!--l. 301
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
we need
the regression line of
<!--l. 301
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
on
<!--l. 301
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
.
The two lines are not the same except in the (very) special case where all of the points lie
exactly on a straight line. It is worth noting however, that the two lines cross at the point
<!--l. 307
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mover accent="true">
<mrow>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-op">
̄
</mo>
</mover>
<mo class="MathClass-punc">
,
</mo>
<mi>
ȳ
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</math>
. It can be shown that
the regression line of
<!--l. 309
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
on
<!--l. 309
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
is
given by Key Point 2:
</p>
<div class="framed">
<!--l. 320
-->
<h5 class="likesubsubsectionHead">
<a href="#x4-100001.3" id="x4-100001.3">
Key Point 2
</a>
</h5>
<!--l. 320
-->
<p class="noindent">
<strong>
Least Squares Regression -
</strong>
&nbsp;
<!--l. 320
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<!--binary math rel, tripple hight
-->
<mi>
x
</mi>
<!--/binary math rel, tripple hight
-->
</mrow>
</math>
<strong>
on
</strong>
<!--l. 320
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<!--binary math rel, tripple hight
-->
<mi>
y
</mi>
<!--/binary math rel, tripple hight
-->
</mrow>
</math>
</p>
<!--l. 320
-->
<p class="noindent">
The regression line of
<!--l. 320
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
on
<!--l. 320
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
is
</p>
<!--l. 320
-->
<p class="noindent">
<!--l. 320
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
<mo class="MathClass-rel">
=
</mo>
<msup>
<mrow>
<mi>
a
</mi>
</mrow>
<mrow>
<mi>
&prime;
</mi>
</mrow>
</msup>
<mo class="MathClass-bin">
+
</mo>
<msup>
<mrow>
<mi>
b
</mi>
</mrow>
<mrow>
<mi>
&prime;
</mi>
</mrow>
</msup>
<mi>
y
</mi>
</mrow>
</math>
</p>
<!--l. 320
-->
<p class="noindent">
where
</p>
<!--l. 320
-->
<p class="noindent">
<!--l. 320
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msup>
<mrow>
<mi>
b
</mi>
</mrow>
<mrow>
<mi>
&prime;
</mi>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-bin">
&minus;
</mo>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
</mrow>
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msup>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-bin">
&minus;
</mo>
<msup>
<mrow>
<mfenced close=")" open="(" separators="">
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
</mrow>
</mfenced>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</mfrac>
</mrow>
</math>
&nbsp;&nbsp;and&nbsp;&nbsp;
<!--l. 320
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
a
</mi>
</mrow>
<mrow>
<mi>
&prime;
</mi>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mover accent="true">
<mrow>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-op">
̄
</mo>
</mover>
<mo class="MathClass-bin">
&minus;
</mo>
<msup>
<mrow>
<mi>
b
</mi>
</mrow>
<mrow>
<mi>
&prime;
</mi>
</mrow>
</msup>
<mi>
ȳ
</mi>
</mrow>
</math>
</p>
</div>
<!--l. 323
-->
<h5 class="likesubsubsectionHead">
<a href="#x4-110001.3" id="x4-110001.3">
Example 1
</a>
</h5>
<!--l. 324
-->
<p class="noindent">
A warehouse manager of a company dealing in large quantities of steel cable needs to be able to
estimate how much cable is left on his partially used drums. A random sample of twelve partially
used drums is taken and each drum is weighed and the corresponding length of cable measured. The
results are given in the table below:
</p>
<div class="tabular">
<table cellpadding="0" cellspacing="0" class="tabular" id="TBL-2" rules="groups">
<colgroup id="TBL-2-1g">
<col id="TBL-2-1"/>
</colgroup>
<colgroup id="TBL-2-2g">
<col id="TBL-2-2"/>
</colgroup>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-1-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-1-1" style="text-align:center; white-space:nowrap;">
Weight of drum and cable (
<!--l. 334
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
) kg.
</td>
<td class="td11" id="TBL-2-1-2" style="text-align:center; white-space:nowrap;">
Measured length of cable (
<!--l. 334
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
) m.
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-2-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-2-1" style="text-align:center; white-space:nowrap;">
30
</td>
<td class="td11" id="TBL-2-2-2" style="text-align:center; white-space:nowrap;">
70
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-3-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-3-1" style="text-align:center; white-space:nowrap;">
40
</td>
<td class="td11" id="TBL-2-3-2" style="text-align:center; white-space:nowrap;">
90
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-4-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-4-1" style="text-align:center; white-space:nowrap;">
40
</td>
<td class="td11" id="TBL-2-4-2" style="text-align:center; white-space:nowrap;">
100
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-5-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-5-1" style="text-align:center; white-space:nowrap;">
50
</td>
<td class="td11" id="TBL-2-5-2" style="text-align:center; white-space:nowrap;">
120
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-6-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-6-1" style="text-align:center; white-space:nowrap;">
50
</td>
<td class="td11" id="TBL-2-6-2" style="text-align:center; white-space:nowrap;">
130
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-7-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-7-1" style="text-align:center; white-space:nowrap;">
50
</td>
<td class="td11" id="TBL-2-7-2" style="text-align:center; white-space:nowrap;">
150
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-8-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-8-1" style="text-align:center; white-space:nowrap;">
60
</td>
<td class="td11" id="TBL-2-8-2" style="text-align:center; white-space:nowrap;">
160
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-9-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-9-1" style="text-align:center; white-space:nowrap;">
70
</td>
<td class="td11" id="TBL-2-9-2" style="text-align:center; white-space:nowrap;">
190
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-10-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-10-1" style="text-align:center; white-space:nowrap;">
70
</td>
<td class="td11" id="TBL-2-10-2" style="text-align:center; white-space:nowrap;">
200
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-11-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-11-1" style="text-align:center; white-space:nowrap;">
80
</td>
<td class="td11" id="TBL-2-11-2" style="text-align:center; white-space:nowrap;">
200
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-12-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-12-1" style="text-align:center; white-space:nowrap;">
80
</td>
<td class="td11" id="TBL-2-12-2" style="text-align:center; white-space:nowrap;">
220
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-13-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-13-1" style="text-align:center; white-space:nowrap;">
80
</td>
<td class="td11" id="TBL-2-13-2" style="text-align:center; white-space:nowrap;">
230
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-2-14-" style="vertical-align:baseline;">
<td class="td11" id="TBL-2-14-1" style="text-align:center; white-space:nowrap;">
</td>
</tr>
</table>
</div>
<!--l. 362
-->
<p class="noindent">
Find the least squares regression line in the form
<!--l. 362
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
m
</mi>
<mi>
x
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
c
</mi>
</mrow>
</math>
and
use it to predict the lengths of cable left on drums whose weights are:
</p>
<!--l. 366
-->
<p class="noindent">
(i) 35 kg (ii) 85 kg (iii) 100 kg
</p>
<!--l. 369
-->
<p class="noindent">
In the latter case state any assumptions which you make in order to find the length of cable left on
the drum.
</p>
<!--l. 390
-->
<h5 class="likesubsubsectionHead">
<a href="#x4-120001.3" id="x4-120001.3">
Solution
</a>
</h5>
<!--l. 390
-->
<p class="noindent">
Excel calculations give&nbsp;&nbsp;
<!--l. 390
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
700
</mn>
<mo class="MathClass-punc">
,
</mo>
<mspace class="quad" width="1em">
</mspace>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
44200
</mn>
<mo class="MathClass-punc">
,
</mo>
<mspace class="quad" width="1em">
</mspace>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
1860
</mn>
<mspace class="quad" width="1em">
</mspace>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
118600
</mn>
</mrow>
</math>
&nbsp;&nbsp;so
that the formulae
</p>
<!--l. 390
-->
<p class="noindent">
<!--l. 390
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
b
</mi>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-bin">
&minus;
</mo>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
</mrow>
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-bin">
&minus;
</mo>
<msup>
<mrow>
<mfenced close=")" open="(" separators="">
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
</mrow>
</mfenced>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</mfrac>
</mrow>
</math>
and
<!--l. 390
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
ȳ
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mover accent="true">
<mrow>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-op">
̄
</mo>
</mover>
</mrow>
</math>
</p>
<!--l. 390
-->
<p class="noindent">
give
<!--l. 390
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
20
</mn>
</mrow>
</math>
and
<!--l. 390
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
b
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
3
</mn>
</mrow>
</math>
. Our regression
line is
<!--l. 390
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
20
</mn>
<mo class="MathClass-bin">
+
</mo>
<mn>
3
</mn>
<mi>
x
</mi>
<mo class="MathClass-punc">
,
</mo>
</mrow>
</math>
so
<!--l. 390
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
3
</mn>
<mi>
x
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
20
</mn>
</mrow>
</math>
.
</p>
<!--l. 390
-->
<p class="noindent">
Hence, the required predicted values are:
</p>
<!--l. 390
-->
<p class="noindent">
<!--l. 390
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
35
</mn>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mn>
3
</mn>
<mo class="MathClass-bin">
&times;
</mo>
<mn>
35
</mn>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
20
</mn>
<mo class="MathClass-rel">
=
</mo>
<mn>
85
</mn>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
85
</mn>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mn>
3
</mn>
<mo class="MathClass-bin">
&times;
</mo>
<mn>
85
</mn>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
20
</mn>
<mo class="MathClass-rel">
=
</mo>
<mn>
235
</mn>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
100
</mn>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mn>
3
</mn>
<mo class="MathClass-bin">
&times;
</mo>
<mn>
100
</mn>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
20
</mn>
<mo class="MathClass-rel">
=
</mo>
<mn>
280
</mn>
</mrow>
</math>
</p>
<!--l. 390
-->
<p class="noindent">
all results being in metres.
</p>
<!--l. 390
-->
<p class="noindent">
To obtain the last result we have assumed that the linearity of the relationship continues beyond the
range of values actually taken.
</p>
<h5 class="likesubsubsectionHead">
<a class="btn btn-primary" href="#x4-130001.3" id="x4-130001.3">
Task!
</a>
</h5>
<!--l. 392
-->
<p class="noindent">
An article in the Journal of Sound and Vibration 1991 (151) explored a possible relationship between
hypertension (defined as blood pressure rise in mm of mercury) and exposure to noise levels
(measured in decibels). Some data given is as follows:
</p>
<div class="tabular">
<table cellpadding="0" cellspacing="0" class="tabular" id="TBL-3" rules="groups">
<colgroup id="TBL-3-1g">
<col id="TBL-3-1"/>
</colgroup>
<colgroup id="TBL-3-2g">
<col id="TBL-3-2"/>
</colgroup>
<colgroup id="TBL-3-3g">
<col id="TBL-3-3"/>
</colgroup>
<colgroup id="TBL-3-4g">
<col id="TBL-3-4"/>
</colgroup>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-1-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-1-1" style="text-align:center; white-space:nowrap;">
Noise Level (
<!--l. 400
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
)
</td>
<td class="td11" id="TBL-3-1-2" style="text-align:center; white-space:nowrap;">
Blood pressure rise (
<!--l. 400
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
)
</td>
<td class="td11" id="TBL-3-1-3" style="text-align:center; white-space:nowrap;">
Noise Level (
<!--l. 400
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
)
</td>
<td class="td11" id="TBL-3-1-4" style="text-align:center; white-space:nowrap;">
Blood pressure rise (
<!--l. 400
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
)
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-2-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-2-1" style="text-align:center; white-space:nowrap;">
60
</td>
<td class="td11" id="TBL-3-2-2" style="text-align:center; white-space:nowrap;">
1
</td>
<td class="td11" id="TBL-3-2-3" style="text-align:center; white-space:nowrap;">
85
</td>
<td class="td11" id="TBL-3-2-4" style="text-align:center; white-space:nowrap;">
5
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-3-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-3-1" style="text-align:center; white-space:nowrap;">
63
</td>
<td class="td11" id="TBL-3-3-2" style="text-align:center; white-space:nowrap;">
0
</td>
<td class="td11" id="TBL-3-3-3" style="text-align:center; white-space:nowrap;">
89
</td>
<td class="td11" id="TBL-3-3-4" style="text-align:center; white-space:nowrap;">
4
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-4-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-4-1" style="text-align:center; white-space:nowrap;">
65
</td>
<td class="td11" id="TBL-3-4-2" style="text-align:center; white-space:nowrap;">
1
</td>
<td class="td11" id="TBL-3-4-3" style="text-align:center; white-space:nowrap;">
90
</td>
<td class="td11" id="TBL-3-4-4" style="text-align:center; white-space:nowrap;">
6
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-5-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-5-1" style="text-align:center; white-space:nowrap;">
70
</td>
<td class="td11" id="TBL-3-5-2" style="text-align:center; white-space:nowrap;">
2
</td>
<td class="td11" id="TBL-3-5-3" style="text-align:center; white-space:nowrap;">
90
</td>
<td class="td11" id="TBL-3-5-4" style="text-align:center; white-space:nowrap;">
8
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-6-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-6-1" style="text-align:center; white-space:nowrap;">
70
</td>
<td class="td11" id="TBL-3-6-2" style="text-align:center; white-space:nowrap;">
5
</td>
<td class="td11" id="TBL-3-6-3" style="text-align:center; white-space:nowrap;">
90
</td>
<td class="td11" id="TBL-3-6-4" style="text-align:center; white-space:nowrap;">
4
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-7-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-7-1" style="text-align:center; white-space:nowrap;">
70
</td>
<td class="td11" id="TBL-3-7-2" style="text-align:center; white-space:nowrap;">
1
</td>
<td class="td11" id="TBL-3-7-3" style="text-align:center; white-space:nowrap;">
90
</td>
<td class="td11" id="TBL-3-7-4" style="text-align:center; white-space:nowrap;">
5
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-8-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-8-1" style="text-align:center; white-space:nowrap;">
80
</td>
<td class="td11" id="TBL-3-8-2" style="text-align:center; white-space:nowrap;">
4
</td>
<td class="td11" id="TBL-3-8-3" style="text-align:center; white-space:nowrap;">
94
</td>
<td class="td11" id="TBL-3-8-4" style="text-align:center; white-space:nowrap;">
7
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-9-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-9-1" style="text-align:center; white-space:nowrap;">
90
</td>
<td class="td11" id="TBL-3-9-2" style="text-align:center; white-space:nowrap;">
6
</td>
<td class="td11" id="TBL-3-9-3" style="text-align:center; white-space:nowrap;">
100
</td>
<td class="td11" id="TBL-3-9-4" style="text-align:center; white-space:nowrap;">
9
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-10-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-10-1" style="text-align:center; white-space:nowrap;">
80
</td>
<td class="td11" id="TBL-3-10-2" style="text-align:center; white-space:nowrap;">
2
</td>
<td class="td11" id="TBL-3-10-3" style="text-align:center; white-space:nowrap;">
100
</td>
<td class="td11" id="TBL-3-10-4" style="text-align:center; white-space:nowrap;">
7
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-11-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-11-1" style="text-align:center; white-space:nowrap;">
80
</td>
<td class="td11" id="TBL-3-11-2" style="text-align:center; white-space:nowrap;">
3
</td>
<td class="td11" id="TBL-3-11-3" style="text-align:center; white-space:nowrap;">
100
</td>
<td class="td11" id="TBL-3-11-4" style="text-align:center; white-space:nowrap;">
6
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-3-12-" style="vertical-align:baseline;">
<td class="td11" id="TBL-3-12-1" style="text-align:center; white-space:nowrap;">
</td>
</tr>
</table>
</div>
<!--l. 424
-->
<ol class="enumerate1" start="1">
<li class="enumerate" id="x4-13002x1">
Draw a scatter diagram of the data.
</li>
<li class="enumerate" id="x4-13004x2">
Comment on whether a linear model is appropriate for the data.
</li>
<li class="enumerate" id="x4-13006x3">
Calculate a line of best fit of
<!--l. 427
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
on
<!--l. 427
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
for the data given.
</li>
<li class="enumerate" id="x4-13008x4">
Use your regression line predict the expected rise in blood pressure for a exposure to a
noise level of 97 decibels.
</li>
</ol>
<!--l. 449
-->
<h5 class="likesubsubsectionHead">
<button aria-controls="x4-1400013" aria-expanded="false" class="btn btn-success" data-target="#x4-1400013" data-toggle="collapse" role="button">
Answer
</button>
</h5>
<div class="collapse" id="x4-1400013">
<!--l. 449
-->
<ol class="enumerate1" start="1">
<li class="enumerate" id="x4-14002x1">
Entering the data into Microsoft Excel and plotting gives
<!--l. 449
-->
<p class="noindent">
Blood Pressure increase versus recorded sound level
</p>
<!--l. 449
-->
<p class="noindent">
<img alt="No alt text was set. Please request alt text from the person who provided you with this resource." src="./figures/pdf/workbook23Fig5.svg"/>
</p>
</li>
<li class="enumerate" id="x4-14004x2">
A linear model is appropriate.
</li>
<li class="enumerate" id="x4-14006x3">
Excel calculations give
<!--l. 449
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
1656
</mn>
<mo class="MathClass-punc">
,
</mo>
<mspace class="quad" width="1em">
</mspace>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
140176
</mn>
<mo class="MathClass-punc">
,
</mo>
<mspace class="quad" width="1em">
</mspace>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
86
</mn>
<mo class="MathClass-punc">
,
</mo>
<mspace class="quad" width="1em">
</mspace>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
7654
</mn>
</mrow>
</math>
so that
<!--l. 449
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
b
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
0.1743
</mn>
</mrow>
</math>
and
<!--l. 449
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
10.1315
</mn>
</mrow>
</math>
.
Our regression line is
<!--l. 449
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
0.1743
</mn>
<mi>
x
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
10.1315
</mn>
</mrow>
</math>
.
</li>
<li class="enumerate" id="x4-14008x4">
The predicted value is:&nbsp;
<!--l. 449
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
97
</mn>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mn>
0.1743
</mn>
<mo class="MathClass-bin">
&times;
</mo>
<mn>
97
</mn>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
10.1315
</mn>
<mo class="MathClass-rel">
=
</mo>
<mn>
6.78
</mn>
</mrow>
</math>
mm mercury.
</li>
</ol>
</div>
<!--l. 451
-->
<h4 class="subsectionHead">
<span class="titlemark">
1.4
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-15" id="x4-150001.4">
The method of least squares - a modelling view
</a>
</h4>
<!--l. 453
-->
<p class="noindent">
We take the dependent variable
<!--l. 453
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
Y
</mi>
</mrow>
</math>
to be a random variable whose value, for a fixed value of
<!--l. 454
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
depends on the value
of
<!--l. 454
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
and a random
error component say
<!--l. 455
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
e
</mi>
</mrow>
</math>
and we write
</p>
<!--l. 456
-->
<p class="noindent">
<!--l. 456
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
Y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
e
</mi>
</mrow>
</math>
</p>
<!--l. 457
-->
<p class="noindent">
Adopting the notation of conditional probability, we are looking for the expected value of
<!--l. 458
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
Y
</mi>
</mrow>
</math>
for a given value
of
<!--l. 459
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
. The expected
value of
<!--l. 459
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
Y
</mi>
</mrow>
</math>
for a
given value of
<!--l. 459
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
is denoted by
</p>
<!--l. 461
-->
<p class="noindent">
<!--l. 461
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mstyle class="text">
<mtext>
E
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
Y
</mi>
<mo class="MathClass-rel">
|
</mo>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<mstyle class="text">
<mtext>
E
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
e
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<mstyle class="text">
<mtext>
E
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-bin">
+
</mo>
<mstyle class="text">
<mtext>
E
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
e
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</math>
</p>
<!--l. 463
-->
<p class="noindent">
The variance of
<!--l. 463
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
Y
</mi>
</mrow>
</math>
for
a given value of
<!--l. 463
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
is given by the relationship
</p>
<!--l. 465
-->
<p class="noindent">
<!--l. 465
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mstyle class="text">
<mtext>
V
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
Y
</mi>
<mo class="MathClass-rel">
|
</mo>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<mstyle class="text">
<mtext>
V
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
e
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<mstyle class="text">
<mtext>
V
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-bin">
+
</mo>
<mstyle class="text">
<mtext>
V
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
e
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</math>
,
assuming independence.
</p>
<!--l. 467
-->
<p class="noindent">
If
<!--l. 467
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msub>
<mrow>
<mi>
&mu;
</mi>
</mrow>
<mrow>
<mi>
Y
</mi>
<mo class="MathClass-rel">
|
</mo>
<mi>
x
</mi>
</mrow>
</msub>
</mrow>
</math>
represents the
true mean value of
<!--l. 468
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
Y
</mi>
</mrow>
</math>
for a given value of
<!--l. 469
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
then
</p>
<!--l. 470
-->
<p class="noindent">
<!--l. 470
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
&mu;
</mi>
</mrow>
<mrow>
<mi>
Y
</mi>
<mo class="MathClass-rel">
|
</mo>
<mi>
x
</mi>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
</mrow>
</math>
,
assuming a linear relationship holds,
</p>
<!--l. 472
-->
<p class="noindent">
is a straight line of mean values. If we now assume that the errors
<!--l. 473
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
e
</mi>
</mrow>
</math>
are distributed with
mean 0 and variance
<!--l. 474
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
&sigma;
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
we may write
</p>
<!--l. 475
-->
<p class="noindent">
<!--l. 475
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mstyle class="text">
<mtext>
E
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
Y
</mi>
<mo class="MathClass-rel">
|
</mo>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<mstyle class="text">
<mtext>
E
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-bin">
+
</mo>
<mstyle class="text">
<mtext>
E
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
e
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
</mrow>
</math>
since
<!--l. 476
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mstyle class="text">
<mtext>
E
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
e
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
</mrow>
</math>
.
</p>
<!--l. 477
-->
<p class="noindent">
and
</p>
<!--l. 478
-->
<p class="noindent">
<!--l. 478
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mstyle class="text">
<mtext>
V
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
Y
</mi>
<mo class="MathClass-rel">
|
</mo>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<mstyle class="text">
<mtext>
V
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-bin">
+
</mo>
<mstyle class="text">
<mtext>
V
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
e
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<msup>
<mrow>
<mi>
&sigma;
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
since
<!--l. 479
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mstyle class="text">
<mtext>
V
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
</mrow>
</math>
.
</p>
<!--l. 480
-->
<p class="noindent">
This implies that for each value of
<!--l. 481
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
,
<!--l. 481
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
Y
</mi>
</mrow>
</math>
is distributed with
mean
<!--l. 481
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
</mrow>
</math>
and variance
<!--l. 482
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
&sigma;
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
. Hence when the variance is
small the observed values of
<!--l. 483
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
Y
</mi>
</mrow>
</math>
will be close to the regression line and when the variance is large, at least some of the observed values of
<!--l. 485
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
Y
</mi>
</mrow>
</math>
may not be close to the line. Note that the assumption that the errors
<!--l. 486
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
e
</mi>
</mrow>
</math>
are distributed with mean 0 may be made without loss of generality. If the errors
had any other mean, we could subtract it and then add the mean to the value of
<!--l. 490
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
c
</mi>
</mrow>
</math>
. The
ideas are illustrated in the following diagram.
</p>
<!--l. 493
-->
<p class="noindent">
<strong>
Figure 5
</strong>
</p>
<!--l. 495
-->
<p class="noindent">
<img alt="No alt text was set. Please request alt text from the person who provided you with this resource." src="./figures/pdf/workbook23Fig6.svg"/>
</p>
<!--l. 497
-->
<p class="noindent">
The regression line is shown passing through the means of the distributions for the individual values of
<!--l. 498
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
. The value of
<!--l. 498
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
corresponding
to the
<!--l. 498
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
-value
<!--l. 498
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
</mrow>
</math>
can be
represented by the equation
</p>
<!--l. 501
-->
<p class="noindent">
<!--l. 501
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
+
</mo>
<msub>
<mrow>
<mi>
e
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
</mrow>
</math>
</p>
<!--l. 502
-->
<p class="noindent">
where
<!--l. 502
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msub>
<mrow>
<mi>
e
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
</mrow>
</math>
is the error of
the observed value of
<!--l. 502
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
<mo class="MathClass-punc">
,
</mo>
</mrow>
</math>
that is the difference from its expected value, namely
</p>
<!--l. 504
-->
<p class="noindent">
<!--l. 504
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mstyle class="text">
<mtext>
E
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
Y
</mi>
<mo class="MathClass-rel">
|
</mo>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<msub>
<mrow>
<mi>
&mu;
</mi>
</mrow>
<mrow>
<mi>
y
</mi>
<mo class="MathClass-rel">
|
</mo>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
</mrow>
</math>
</p>
<!--l. 506
-->
<p class="noindent">
Now, if we estimate
<!--l. 506
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
&alpha;
</mi>
</mrow>
</math>
and
<!--l. 506
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
&beta;
</mi>
</mrow>
</math>
with
<!--l. 506
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
</mrow>
</math>
and
<!--l. 506
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
b
</mi>
</mrow>
</math>
,
the
<strong>
residual
</strong>
, or estimated error, becomes
</p>
<!--l. 507
-->
<p class="noindent">
<!--l. 507
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
&ecirc;
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
</mrow>
</math>
</p>
<!--l. 508
-->
<p class="noindent">
so that the sum of the squares of the residuals is given by
</p>
<!--l. 509
-->
<p class="noindent">
<!--l. 509
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
S
</mi>
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msubsup>
<mrow>
<mi>
&ecirc;
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msup>
<mrow>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
</p>
<!--l. 510
-->
<p class="noindent">
and we may minimize the quantity
<!--l. 510
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
S
</mi>
</mrow>
</math>
by using the method of least squares as before. The mathematical details are omitted as before and the equations
obtained for
<!--l. 512
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
b
</mi>
</mrow>
</math>
and
<!--l. 513
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
</mrow>
</math>
are as before, namely
</p>
<!--l. 515
-->
<p class="noindent">
<!--l. 515
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
b
</mi>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-bin">
&minus;
</mo>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
</mrow>
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
<mo class="MathClass-bin">
&minus;
</mo>
<msup>
<mrow>
<mfenced close=")" open="(" separators="">
<mrow>
<mfrac>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
</mrow>
</mfenced>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</mfrac>
</mrow>
</math>
&nbsp;&nbsp;and&nbsp;&nbsp;
<!--l. 519
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
ȳ
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mover accent="true">
<mrow>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-op">
̄
</mo>
</mover>
</mrow>
</math>
.
</p>
<!--l. 520
-->
<p class="noindent">
Note that since the error
<!--l. 520
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msub>
<mrow>
<mi>
e
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
</mrow>
</math>
in the
<!--l. 520
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
i
</mi>
</mrow>
</math>
th
observation essentially describes the error in the fit of the model to the
<!--l. 522
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
i
</mi>
</mrow>
</math>
th observation, the sum of
the squares of the errors
<!--l. 523
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msubsup>
<mrow>
<mi>
e
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
</mrow>
</math>
will now be used to allow us to comment on the adequacy of fit of a linear model to a given data
set.
</p>
<!--l. 527
-->
<h4 class="subsectionHead">
<span class="titlemark">
1.5
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-16" id="x4-160001.5">
Adequacy of fit
</a>
</h4>
<!--l. 529
-->
<p class="noindent">
We now know that the variance
<!--l. 529
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mstyle class="text">
<mtext>
V
</mtext>
</mstyle>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
Y
</mi>
<mo class="MathClass-rel">
|
</mo>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<msup>
<mrow>
<mi>
&sigma;
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
is the key to describing the adequacy of fit of our simple linear model. In general, the smaller the
variance, the better the fit although you should note that it is wise to distinguish between &lsquo;poor
fit&rsquo;&nbsp;and a large error variance. Poor fit may suggest, for example, that the relationship is not in
fact linear and that a fundamental assumption made has been violated. A large value of
<!--l. 538
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
&sigma;
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
does
not necessarily mean that a linear model is a poor fit.
</p>
<!--l. 542
-->
<p class="noindent">
It can be shown that the sum of the squares of the errors say
<!--l. 542
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
E
</mi>
</mrow>
</msub>
</mrow>
</math>
can be used to give an
unbiased estimator
<!--l. 544
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mover accent="true">
<mrow>
<mi>
&sigma;
</mi>
</mrow>
<mo class="MathClass-op">
̂
</mo>
</mover>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
of
<!--l. 544
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
&sigma;
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
via
the formula
</p>
<!--l. 545
-->
<p class="noindent">
<!--l. 545
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msup>
<mrow>
<mover accent="true">
<mrow>
<mi>
&sigma;
</mi>
</mrow>
<mo class="MathClass-op">
̂
</mo>
</mover>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
E
</mi>
</mrow>
</msub>
</mrow>
<mrow>
<mi>
n
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
p
</mi>
</mrow>
</mfrac>
</mrow>
</math>
</p>
<!--l. 546
-->
<p class="noindent">
where
<!--l. 546
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
p
</mi>
</mrow>
</math>
is the
number of independent variables used in the regression equation. In the case of simple linear regression
<!--l. 547
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
p
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
2
</mn>
</mrow>
</math>
since we are
using just
<!--l. 548
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
and
<!--l. 548
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
c
</mi>
</mrow>
</math>
and the estimator becomes:
</p>
<!--l. 550
-->
<p class="noindent">
<!--l. 550
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msup>
<mrow>
<mover accent="true">
<mrow>
<mi>
&sigma;
</mi>
</mrow>
<mo class="MathClass-op">
̂
</mo>
</mover>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
E
</mi>
</mrow>
</msub>
</mrow>
<mrow>
<mi>
n
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
2
</mn>
</mrow>
</mfrac>
</mrow>
</math>
</p>
<!--l. 551
-->
<p class="noindent">
The quantity
<!--l. 551
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
E
</mi>
</mrow>
</msub>
</mrow>
</math>
is usually used explicitly in formulae whose purpose is to determine the adequacy of a linear model to
explain the variability found in data. Two ways in which the adequacy of a regression model may be
judged are given by the so-called
<strong>
Coefficient of Determination
</strong>
and the
<strong>
Adjusted Coefficient of
Determination
</strong>
.
</p>
<!--l. 559
-->
<h4 class="subsectionHead">
<span class="titlemark">
1.6
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-17" id="x4-170001.6">
The coefficient of determination
</a>
</h4>
<!--l. 561
-->
<p class="noindent">
Denoted by
<!--l. 561
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
,
the Coefficient of Determination is defined by the formula
</p>
<!--l. 563
-->
<p class="noindent">
<!--l. 563
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
1
</mn>
<mo class="MathClass-bin">
&minus;
</mo>
<mfrac>
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
E
</mi>
</mrow>
</msub>
</mrow>
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
T
</mi>
</mrow>
</msub>
</mrow>
</mfrac>
</mrow>
</math>
</p>
<!--l. 564
-->
<p class="noindent">
where
<!--l. 564
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
E
</mi>
</mrow>
</msub>
</mrow>
</math>
is the sum of the squares
of the errors and
<!--l. 564
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
T
</mi>
</mrow>
</msub>
</mrow>
</math>
is the sum of the
squares of the totals given by
<!--l. 566
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msup>
<mrow>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
&minus;
</mo>
<msub>
<mrow>
<mi>
&ycirc;
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
</msub>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msubsup>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
i
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
n
</mi>
<msup>
<mrow>
<mi>
ȳ
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
.
The value of
<!--l. 566
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
is sometimes described as representing the amount of variability explained or accounted for
by a regression model. For example, if after a particular calculation it was found that
<!--l. 569
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0.884
</mn>
</mrow>
</math>
, we could say that
the model accounts for about 88% of the variability found in the data. However, deductions made on the basis
of the value of
<!--l. 572
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
should be treated cautiously, the reasons for this are embedded in the following properties of the
statistic. It can be shown that:
</p>
<ol class="enumerate1" start="1">
<li class="enumerate" id="x4-17002x1">
<!--l. 576
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mn>
0
</mn>
<mo class="MathClass-rel">
&le;
</mo>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
&le;
</mo>
<mn>
1
</mn>
</mrow>
</math>
</li>
<li class="enumerate" id="x4-17004x2">
a large value of
<!--l. 577
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
does not necessarily imply that a model is a good fit;
</li>
<li class="enumerate" id="x4-17006x3">
adding a regressor variable (simple regression becomes
multiple regression)
<strong>
always
</strong>
increases the value of
<!--l. 581
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
.
This is one reason why a large value of
<!--l. 581
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
does not necessarily imply a good model;
</li>
<li class="enumerate" id="x4-17008x4">
models giving large values of
<!--l. 584
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
can be poor predictors of new values if the fitted model does not apply at the appropriate
<!--l. 586
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
-value.
</li>
</ol>
<!--l. 589
-->
<p class="noindent">
Finally, it is worth noting that to check the fit of a linear model properly, one should look at plots of
residual values. In some cases, tests of goodness-of-fit are available although this topic is not covered
in this Workbook.
</p>
<h4 class="subsectionHead">
<span class="titlemark">
1.7
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-18" id="x4-180001.7">
The adjusted coefficient of determination
</a>
</h4>
<!--l. 597
-->
<p class="noindent">
Denoted (often) by
<!--l. 597
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msubsup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mi>
a
</mi>
<mi>
d
</mi>
<mi>
j
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
</mrow>
</math>
,
the Adjusted Coefficient of Determination is defined as
</p>
<!--l. 599
-->
<p class="noindent">
<!--l. 599
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msubsup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mi>
a
</mi>
<mi>
d
</mi>
<mi>
j
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
<mo class="MathClass-rel">
=
</mo>
<mn>
1
</mn>
<mo class="MathClass-bin">
&minus;
</mo>
<mfrac>
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
E
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
∕
</mo>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
n
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
p
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
T
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
∕
</mo>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
n
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
1
</mn>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</mfrac>
</mrow>
</math>
</p>
<!--l. 600
-->
<p class="noindent">
where
<!--l. 600
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
p
</mi>
</mrow>
</math>
is the number of variables in the regression equation. For the simple linear model,
<!--l. 601
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
p
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
2
</mn>
</mrow>
</math>
since we have two unknown parameters in the regression equation, the intercept
<!--l. 601
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
c
</mi>
</mrow>
</math>
and the
coefficient
<!--l. 602
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
m
</mi>
</mrow>
</math>
of
<!--l. 602
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
. It
can be shown that:
</p>
<ol class="enumerate1" start="1">
<li class="enumerate" id="x4-18002x1">
<!--l. 604
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msubsup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mi>
a
</mi>
<mi>
d
</mi>
<mi>
j
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
</mrow>
</math>
is a better indicator of the adequacy of predictive power than
<!--l. 605
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
since it takes into account the number of regressor variables used in the model;
</li>
<li class="enumerate" id="x4-18004x2">
<!--l. 607
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msubsup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mi>
a
</mi>
<mi>
d
</mi>
<mi>
j
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
</mrow>
</math>
does not necessarily increase when a new regressor variable is added.
</li>
</ol>
<!--l. 610
-->
<p class="noindent">
Both coefficients claim to measure the adequacy of the predictive power of a regression model and
their values indicate the proportion of variability explained by the model. For example a value
of
</p>
<!--l. 614
-->
<p class="noindent">
<!--l. 614
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mspace class="qquad" width="2em">
</mspace>
<mstyle class="text">
<mtext>
or
</mtext>
</mstyle>
<mspace class="qquad" width="2em">
</mspace>
<msubsup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mi>
a
</mi>
<mi>
d
</mi>
<mi>
j
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0.9751
</mn>
</mrow>
</math>
</p>
<!--l. 615
-->
<p class="noindent">
may be interpreted as indicating that a model explains 97.51% of the variability it describes. For
example, the drum and cable example considered previously gives the results outlined below
with
</p>
<!--l. 620
-->
<p class="noindent">
<!--l. 620
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
96.2
</mn>
<mspace class="qquad" width="2em">
</mspace>
<mstyle class="text">
<mtext>
and
</mtext>
</mstyle>
<mspace class="qquad" width="2em">
</mspace>
<msubsup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mi>
a
</mi>
<mi>
d
</mi>
<mi>
j
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0.958
</mn>
</mrow>
</math>
</p>
<!--l. 621
-->
<p class="noindent">
In general,
<!--l. 621
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msubsup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mi>
a
</mi>
<mi>
d
</mi>
<mi>
j
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
</mrow>
</math>
is (perhaps)
more useful than
<!--l. 621
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
for comparing alternative models. In the context of a simple linear model,
<!--l. 623
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
is
easier to interpret. In the drum and cable example we would claim that the linear model explains
some 96.2% of the variation it describes.
</p>
<div class="tabular">
<table cellpadding="0" cellspacing="0" class="tabular" id="TBL-4" rules="groups">
<colgroup id="TBL-4-1g">
<col id="TBL-4-1"/>
</colgroup>
<colgroup id="TBL-4-2g">
<col id="TBL-4-2"/>
</colgroup>
<colgroup id="TBL-4-3g">
<col id="TBL-4-3"/>
</colgroup>
<colgroup id="TBL-4-4g">
<col id="TBL-4-4"/>
</colgroup>
<colgroup id="TBL-4-5g">
<col id="TBL-4-5"/>
</colgroup>
<colgroup id="TBL-4-6g">
<col id="TBL-4-6"/>
</colgroup>
<colgroup id="TBL-4-7g">
<col id="TBL-4-7"/>
</colgroup>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-1-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-1-1" style="text-align:center; white-space:nowrap;">
Drum&nbsp;&amp;&nbsp;Cable
<!--l. 629
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-1-2" style="text-align:center; white-space:nowrap;">
<!--l. 629
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-1-3" style="text-align:center; white-space:nowrap;">
Cable Length
<!--l. 629
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
y
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-1-4" style="text-align:center; white-space:nowrap;">
<!--l. 629
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-1-5" style="text-align:center; white-space:nowrap;">
<!--l. 629
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
<mi>
y
</mi>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-1-6" style="text-align:center; white-space:nowrap;">
Predicted Values
</td>
<td class="td11" id="TBL-4-1-7" style="text-align:center; white-space:nowrap;">
Error Squares
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-2-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-2-1" style="text-align:center; white-space:nowrap;">
30
</td>
<td class="td11" id="TBL-4-2-2" style="text-align:center; white-space:nowrap;">
900
</td>
<td class="td11" id="TBL-4-2-3" style="text-align:center; white-space:nowrap;">
70
</td>
<td class="td11" id="TBL-4-2-4" style="text-align:center; white-space:nowrap;">
4900
</td>
<td class="td11" id="TBL-4-2-5" style="text-align:center; white-space:nowrap;">
2100
</td>
<td class="td11" id="TBL-4-2-6" style="text-align:center; white-space:nowrap;">
70
</td>
<td class="td11" id="TBL-4-2-7" style="text-align:center; white-space:nowrap;">
0.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-3-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-3-1" style="text-align:center; white-space:nowrap;">
40
</td>
<td class="td11" id="TBL-4-3-2" style="text-align:center; white-space:nowrap;">
1600
</td>
<td class="td11" id="TBL-4-3-3" style="text-align:center; white-space:nowrap;">
90
</td>
<td class="td11" id="TBL-4-3-4" style="text-align:center; white-space:nowrap;">
8100
</td>
<td class="td11" id="TBL-4-3-5" style="text-align:center; white-space:nowrap;">
3600
</td>
<td class="td11" id="TBL-4-3-6" style="text-align:center; white-space:nowrap;">
100
</td>
<td class="td11" id="TBL-4-3-7" style="text-align:center; white-space:nowrap;">
100.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-4-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-4-1" style="text-align:center; white-space:nowrap;">
40
</td>
<td class="td11" id="TBL-4-4-2" style="text-align:center; white-space:nowrap;">
1600
</td>
<td class="td11" id="TBL-4-4-3" style="text-align:center; white-space:nowrap;">
100
</td>
<td class="td11" id="TBL-4-4-4" style="text-align:center; white-space:nowrap;">
10000
</td>
<td class="td11" id="TBL-4-4-5" style="text-align:center; white-space:nowrap;">
4000
</td>
<td class="td11" id="TBL-4-4-6" style="text-align:center; white-space:nowrap;">
100
</td>
<td class="td11" id="TBL-4-4-7" style="text-align:center; white-space:nowrap;">
0.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-5-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-5-1" style="text-align:center; white-space:nowrap;">
50
</td>
<td class="td11" id="TBL-4-5-2" style="text-align:center; white-space:nowrap;">
2500
</td>
<td class="td11" id="TBL-4-5-3" style="text-align:center; white-space:nowrap;">
120
</td>
<td class="td11" id="TBL-4-5-4" style="text-align:center; white-space:nowrap;">
14400
</td>
<td class="td11" id="TBL-4-5-5" style="text-align:center; white-space:nowrap;">
6000
</td>
<td class="td11" id="TBL-4-5-6" style="text-align:center; white-space:nowrap;">
130
</td>
<td class="td11" id="TBL-4-5-7" style="text-align:center; white-space:nowrap;">
100.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-6-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-6-1" style="text-align:center; white-space:nowrap;">
50
</td>
<td class="td11" id="TBL-4-6-2" style="text-align:center; white-space:nowrap;">
2500
</td>
<td class="td11" id="TBL-4-6-3" style="text-align:center; white-space:nowrap;">
130
</td>
<td class="td11" id="TBL-4-6-4" style="text-align:center; white-space:nowrap;">
16900
</td>
<td class="td11" id="TBL-4-6-5" style="text-align:center; white-space:nowrap;">
6500
</td>
<td class="td11" id="TBL-4-6-6" style="text-align:center; white-space:nowrap;">
130
</td>
<td class="td11" id="TBL-4-6-7" style="text-align:center; white-space:nowrap;">
0.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-7-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-7-1" style="text-align:center; white-space:nowrap;">
50
</td>
<td class="td11" id="TBL-4-7-2" style="text-align:center; white-space:nowrap;">
2500
</td>
<td class="td11" id="TBL-4-7-3" style="text-align:center; white-space:nowrap;">
150
</td>
<td class="td11" id="TBL-4-7-4" style="text-align:center; white-space:nowrap;">
22500
</td>
<td class="td11" id="TBL-4-7-5" style="text-align:center; white-space:nowrap;">
7500
</td>
<td class="td11" id="TBL-4-7-6" style="text-align:center; white-space:nowrap;">
130
</td>
<td class="td11" id="TBL-4-7-7" style="text-align:center; white-space:nowrap;">
400.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-8-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-8-1" style="text-align:center; white-space:nowrap;">
60
</td>
<td class="td11" id="TBL-4-8-2" style="text-align:center; white-space:nowrap;">
3600
</td>
<td class="td11" id="TBL-4-8-3" style="text-align:center; white-space:nowrap;">
160
</td>
<td class="td11" id="TBL-4-8-4" style="text-align:center; white-space:nowrap;">
25600
</td>
<td class="td11" id="TBL-4-8-5" style="text-align:center; white-space:nowrap;">
9600
</td>
<td class="td11" id="TBL-4-8-6" style="text-align:center; white-space:nowrap;">
160
</td>
<td class="td11" id="TBL-4-8-7" style="text-align:center; white-space:nowrap;">
0.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-9-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-9-1" style="text-align:center; white-space:nowrap;">
70
</td>
<td class="td11" id="TBL-4-9-2" style="text-align:center; white-space:nowrap;">
4900
</td>
<td class="td11" id="TBL-4-9-3" style="text-align:center; white-space:nowrap;">
190
</td>
<td class="td11" id="TBL-4-9-4" style="text-align:center; white-space:nowrap;">
36100
</td>
<td class="td11" id="TBL-4-9-5" style="text-align:center; white-space:nowrap;">
1330
</td>
<td class="td11" id="TBL-4-9-6" style="text-align:center; white-space:nowrap;">
190
</td>
<td class="td11" id="TBL-4-9-7" style="text-align:center; white-space:nowrap;">
0.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-10-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-10-1" style="text-align:center; white-space:nowrap;">
70
</td>
<td class="td11" id="TBL-4-10-2" style="text-align:center; white-space:nowrap;">
4900
</td>
<td class="td11" id="TBL-4-10-3" style="text-align:center; white-space:nowrap;">
200
</td>
<td class="td11" id="TBL-4-10-4" style="text-align:center; white-space:nowrap;">
40000
</td>
<td class="td11" id="TBL-4-10-5" style="text-align:center; white-space:nowrap;">
14000
</td>
<td class="td11" id="TBL-4-10-6" style="text-align:center; white-space:nowrap;">
190
</td>
<td class="td11" id="TBL-4-10-7" style="text-align:center; white-space:nowrap;">
100.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-11-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-11-1" style="text-align:center; white-space:nowrap;">
80
</td>
<td class="td11" id="TBL-4-11-2" style="text-align:center; white-space:nowrap;">
6400
</td>
<td class="td11" id="TBL-4-11-3" style="text-align:center; white-space:nowrap;">
200
</td>
<td class="td11" id="TBL-4-11-4" style="text-align:center; white-space:nowrap;">
40000
</td>
<td class="td11" id="TBL-4-11-5" style="text-align:center; white-space:nowrap;">
16000
</td>
<td class="td11" id="TBL-4-11-6" style="text-align:center; white-space:nowrap;">
220
</td>
<td class="td11" id="TBL-4-11-7" style="text-align:center; white-space:nowrap;">
400.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-12-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-12-1" style="text-align:center; white-space:nowrap;">
80
</td>
<td class="td11" id="TBL-4-12-2" style="text-align:center; white-space:nowrap;">
6400
</td>
<td class="td11" id="TBL-4-12-3" style="text-align:center; white-space:nowrap;">
220
</td>
<td class="td11" id="TBL-4-12-4" style="text-align:center; white-space:nowrap;">
48400
</td>
<td class="td11" id="TBL-4-12-5" style="text-align:center; white-space:nowrap;">
17600
</td>
<td class="td11" id="TBL-4-12-6" style="text-align:center; white-space:nowrap;">
220
</td>
<td class="td11" id="TBL-4-12-7" style="text-align:center; white-space:nowrap;">
0.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-13-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-13-1" style="text-align:center; white-space:nowrap;">
80
</td>
<td class="td11" id="TBL-4-13-2" style="text-align:center; white-space:nowrap;">
6400
</td>
<td class="td11" id="TBL-4-13-3" style="text-align:center; white-space:nowrap;">
230
</td>
<td class="td11" id="TBL-4-13-4" style="text-align:center; white-space:nowrap;">
52900
</td>
<td class="td11" id="TBL-4-13-5" style="text-align:center; white-space:nowrap;">
18400
</td>
<td class="td11" id="TBL-4-13-6" style="text-align:center; white-space:nowrap;">
220
</td>
<td class="td11" id="TBL-4-13-7" style="text-align:center; white-space:nowrap;">
100.00
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-14-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-14-1" style="text-align:center; white-space:nowrap;">
Sum of
<!--l. 643
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
700
</mn>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-14-2" style="text-align:center; white-space:nowrap;">
Sum of
<!--l. 643
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
44200
</mn>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-14-3" style="text-align:center; white-space:nowrap;">
Sum of
<!--l. 643
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
1860
</mn>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-14-4" style="text-align:center; white-space:nowrap;">
Sum of
<!--l. 643
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
319800
</mn>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-14-5" style="text-align:center; white-space:nowrap;">
Sum of
<!--l. 643
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
118600
</mn>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-14-6" style="text-align:center; white-space:nowrap;">
</td>
<td class="td11" id="TBL-4-14-7" style="text-align:center; white-space:nowrap;">
SSE
<!--l. 643
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo class="MathClass-rel">
=
</mo>
<mn>
1200.00
</mn>
</mrow>
</math>
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-15-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-15-1" style="text-align:center; white-space:nowrap;">
<!--l. 645
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
b
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
3
</mn>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-15-2" style="text-align:center; white-space:nowrap;">
<!--l. 645
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
20
</mn>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-15-3" style="text-align:center; white-space:nowrap;">
SST
<!--l. 645
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mo class="MathClass-rel">
=
</mo>
<mn>
31500
</mn>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-15-4" style="text-align:center; white-space:nowrap;">
</td>
<td class="td11" id="TBL-4-15-5" style="text-align:center; white-space:nowrap;">
<!--l. 645
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0.962
</mn>
</mrow>
</math>
</td>
<td class="td11" id="TBL-4-15-6" style="text-align:center; white-space:nowrap;">
</td>
<td class="td11" id="TBL-4-15-7" style="text-align:center; white-space:nowrap;">
<!--l. 645
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msubsup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mstyle class="text">
<mtext>
adj
</mtext>
</mstyle>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0.958
</mn>
</mrow>
</math>
</td>
</tr>
<table:table-row table:style-name="hline-row">
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
<table:table-cell table:style-name="hline-cell" table:value-type="string">
<text:p text:style-name="hline-p-hr">
</text:p>
</table:table-cell>
</table:table-row>
<tr id="TBL-4-16-" style="vertical-align:baseline;">
<td class="td11" id="TBL-4-16-1" style="text-align:center; white-space:nowrap;">
</td>
</tr>
</table>
</div>
<h5 class="likesubsubsectionHead">
<a class="btn btn-primary" href="#x4-190001.7" id="x4-190001.7">
Task!
</a>
</h5>
<!--l. 650
-->
<p class="noindent">
Use the drum and cable data given in Example 1 (page 7) and set up a spreadsheet to verify the
values of the Coefficient of Determination and the Adjusted Coefficient of Determination calculated
on page 12.
</p>
<!--l. 655
-->
<h5 class="likesubsubsectionHead">
<button aria-controls="x4-2000017" aria-expanded="false" class="btn btn-success" data-target="#x4-2000017" data-toggle="collapse" role="button">
Answer
</button>
</h5>
<div class="collapse" id="x4-2000017">
<!--l. 655
-->
<p class="noindent">
As per the table on page 12 giving
<!--l. 655
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0.962
</mn>
</mrow>
</math>
and
<!--l. 655
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msubsup>
<mrow>
<mi>
R
</mi>
</mrow>
<mrow>
<mi>
a
</mi>
<mi>
d
</mi>
<mi>
j
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0.958
</mn>
</mrow>
</math>
.
</p>
</div>
<!--l. 657
-->
<h4 class="subsectionHead">
<span class="titlemark">
1.8
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-21" id="x4-210001.8">
Significance testing for regression
</a>
</h4>
<!--l. 659
-->
<p class="noindent">
Note that the results in this Section apply to the simple linear model only. Some additions are
necessary before the results can be generalized.
</p>
<!--l. 663
-->
<p class="noindent">
The discussions so far pre-suppose that a linear model adequately describes the relationship between
the variables. We can use a significance test involving the distribution to decide whether or not
<!--l. 666
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
is linearly
dependent on
<!--l. 667
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
.
We set up the following hypotheses:
</p>
<!--l. 669
-->
<p class="noindent">
<!--l. 669
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
H
</mi>
</mrow>
<mrow>
<mn>
0
</mn>
</mrow>
</msub>
<mo class="MathClass-punc">
:
</mo>
<mspace class="nbsp" width="1em">
</mspace>
<mi>
&beta;
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
<mspace class="qquad" width="2em">
</mspace>
<mstyle class="text">
<mtext>
and
</mtext>
</mstyle>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
H
</mi>
</mrow>
<mrow>
<mn>
1
</mn>
</mrow>
</msub>
<mo class="MathClass-punc">
:
</mo>
<mspace class="nbsp" width="1em">
</mspace>
<mi>
&beta;
</mi>
<mo class="MathClass-rel">
&ne;
</mo>
<mn>
0
</mn>
</mrow>
</math>
</p>
<div class="framed">
<!--l. 677
-->
<h5 class="likesubsubsectionHead">
<a href="#x4-220001.8" id="x4-220001.8">
Key Point 3
</a>
</h5>
<!--l. 677
-->
<p class="noindent">
<strong>
Significance Test for Regression
</strong>
</p>
<!--l. 677
-->
<p class="noindent">
The test statistic is
</p>
<!--l. 677
-->
<p class="noindent">
<!--l. 677
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
F
</mi>
</mrow>
<mrow>
<mi>
t
</mi>
<mi>
e
</mi>
<mi>
s
</mi>
<mi>
t
</mi>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
R
</mi>
</mrow>
</msub>
</mrow>
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
E
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
∕
</mo>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
n
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
2
</mn>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</mfrac>
</mrow>
</math>
</p>
<!--l. 677
-->
<p class="noindent">
where
<!--l. 677
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
R
</mi>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
T
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
E
</mi>
</mrow>
</msub>
</mrow>
</math>
and rejection at the 5% level of significance occurs if
</p>
<!--l. 677
-->
<p class="noindent">
<!--l. 677
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
F
</mi>
</mrow>
<mrow>
<mi>
t
</mi>
<mi>
e
</mi>
<mi>
s
</mi>
<mi>
t
</mi>
</mrow>
</msub>
<mo class="MathClass-rel">
&gt;
</mo>
<msub>
<mrow>
<mi>
f
</mi>
</mrow>
<mrow>
<mn>
0.05
</mn>
<mo class="MathClass-punc">
,
</mo>
<mn>
1
</mn>
<mo class="MathClass-punc">
,
</mo>
<mi>
n
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
2
</mn>
</mrow>
</msub>
</mrow>
</math>
</p>
</div>
<!--l. 680
-->
<p class="noindent">
Note that we have one degree of freedom since we are testing only one parameter
(
<!--l. 681
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
m
</mi>
</mrow>
</math>
) and that
<!--l. 681
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
n
</mi>
</mrow>
</math>
denotes the number of pairs of
<!--l. 682
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
x
</mi>
<mo class="MathClass-punc">
,
</mo>
<mi>
y
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</math>
values. A set of tables giving the
5% values of the
<!--l. 683
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mi>
F
</mi>
</math>
-distribution
is given at the end of this Workbook (Table 1).
</p>
<h5 class="likesubsubsectionHead">
<a href="#x4-230001.8" id="x4-230001.8">
Example 2
</a>
</h5>
<!--l. 687
-->
<p class="noindent">
Test to determine whether a simple linear model is appropriate for the data previously given in the
drum and cable example above.
</p>
<!--l. 703
-->
<h5 class="likesubsubsectionHead">
<a href="#x4-240001.8" id="x4-240001.8">
Solution
</a>
</h5>
<!--l. 703
-->
<p class="noindent">
We know that
</p>
<!--l. 703
-->
<p class="noindent">
<!--l. 703
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
T
</mi>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
R
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
+
</mo>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
E
</mi>
</mrow>
</msub>
</mrow>
</math>
</p>
<!--l. 703
-->
<p class="noindent">
where&nbsp;
<!--l. 703
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
T
</mi>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<msup>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-bin">
&minus;
</mo>
<mfrac>
<mrow>
<msup>
<mrow>
<mfenced close=")" open="(" separators="">
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
<mi>
y
</mi>
</mrow>
</mfenced>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</mfrac>
</mrow>
</math>
is the total
sum of squares (of
<!--l. 703
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
y
</mi>
</mrow>
</math>
)
so that (from the spreadsheet above) we have:
</p>
<!--l. 703
-->
<p class="noindent">
<!--l. 703
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
R
</mi>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mn>
31500
</mn>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
1200
</mn>
<mo class="MathClass-rel">
=
</mo>
<mn>
30300
</mn>
</mrow>
</math>
</p>
<!--l. 703
-->
<p class="noindent">
Hence
</p>
<!--l. 703
-->
<p class="noindent">
<!--l. 703
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<msub>
<mrow>
<mi>
F
</mi>
</mrow>
<mrow>
<mi>
t
</mi>
<mi>
e
</mi>
<mi>
s
</mi>
<mi>
t
</mi>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
R
</mi>
</mrow>
</msub>
</mrow>
<mrow>
<mi>
S
</mi>
<msub>
<mrow>
<mi>
S
</mi>
</mrow>
<mrow>
<mi>
E
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
∕
</mo>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
n
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
2
</mn>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</mfrac>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mn>
30300
</mn>
</mrow>
<mrow>
<mn>
1200
</mn>
<mo class="MathClass-bin">
∕
</mo>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mn>
12
</mn>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
2
</mn>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
</mfrac>
<mo class="MathClass-rel">
=
</mo>
<mn>
252.5
</mn>
</mrow>
</math>
</p>
<!--l. 703
-->
<p class="noindent">
From Table 1, the critical value is
<!--l. 703
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msub>
<mrow>
<mi>
f
</mi>
</mrow>
<mrow>
<mn>
0.05
</mn>
<mo class="MathClass-punc">
,
</mo>
<mn>
1
</mn>
<mo class="MathClass-punc">
,
</mo>
<mn>
10
</mn>
</mrow>
</msub>
<mo class="MathClass-rel">
=
</mo>
<mn>
241.9
</mn>
</mrow>
</math>
.
</p>
<!--l. 703
-->
<p class="noindent">
Hence, since
<!--l. 703
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<msub>
<mrow>
<mi>
F
</mi>
</mrow>
<mrow>
<mi>
t
</mi>
<mi>
e
</mi>
<mi>
s
</mi>
<mi>
t
</mi>
</mrow>
</msub>
<mo class="MathClass-rel">
&gt;
</mo>
<msub>
<mrow>
<mi>
f
</mi>
</mrow>
<mrow>
<mn>
0.05
</mn>
<mo class="MathClass-punc">
,
</mo>
<mn>
1
</mn>
<mo class="MathClass-punc">
,
</mo>
<mn>
10
</mn>
</mrow>
</msub>
</mrow>
</math>
, we reject the null
hypothesis and conclude that
<!--l. 703
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
&beta;
</mi>
<mo class="MathClass-rel">
&ne;
</mo>
<mn>
0
</mn>
</mrow>
</math>
.
</p>
<!--l. 704
-->
<h4 class="subsectionHead">
<span class="titlemark">
1.9
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-25" id="x4-250001.9">
Regression curves
</a>
</h4>
<!--l. 706
-->
<p class="noindent">
The Section should be regarded as introductory only. The reason for including non-linear regression is
to demonstrate how the method of least squares can be extended to deal with cases where the
relationship between variables is, for example, quadratic or exponential.
</p>
<!--l. 713
-->
<p class="noindent">
A regression curve is defined to be the curve passing through the expected value of
<!--l. 714
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
Y
</mi>
</mrow>
</math>
for a set of
given values of
<!--l. 715
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
x
</mi>
</mrow>
</math>
.
The idea is illustrated by the following diagram.
</p>
<!--l. 717
-->
<p class="noindent">
<strong>
Figure 6
</strong>
</p>
<!--l. 719
-->
<p class="noindent">
<img alt="No alt text was set. Please request alt text from the person who provided you with this resource." src="./figures/pdf/workbook23Fig8.svg"/>
</p>
<!--l. 721
-->
<p class="noindent">
We will look at the quadratic and exponential cases in a little detail.
</p>
<!--l. 723
-->
<h4 class="subsectionHead">
<span class="titlemark">
1.10
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-26" id="x4-260001.10">
The quadratic case
</a>
</h4>
<!--l. 725
-->
<p class="noindent">
We are looking for a functional relation of the form
</p>
<!--l. 726
-->
<p class="noindent">
<!--l. 726
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&gamma;
</mi>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
</p>
<!--l. 727
-->
<p class="noindent">
and so, using the method of least squares, we require the values of
<!--l. 728
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
<mo class="MathClass-punc">
,
</mo>
<mi>
b
</mi>
</mrow>
</math>
and
<!--l. 728
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
c
</mi>
</mrow>
</math>
which
minimize the expression
</p>
<!--l. 730
-->
<p class="noindent">
<!--l. 730
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
f
</mi>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
a
</mi>
<mo class="MathClass-punc">
,
</mo>
<mi>
b
</mi>
<mo class="MathClass-punc">
,
</mo>
<mi>
c
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<msubsup>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
</mrow>
<mrow>
<mi>
r
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
1
</mn>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</msubsup>
<msup>
<mrow>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
r
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
r
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
c
</mi>
<msubsup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
r
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msubsup>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
</p>
<!--l. 731
-->
<p class="noindent">
Note here that the regression described by the form
</p>
<!--l. 732
-->
<p class="noindent">
<!--l. 732
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&gamma;
</mi>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
</p>
<!--l. 735
-->
<p class="noindent">
is actually a linear regression since the expression is linear in
<!--l. 736
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
&alpha;
</mi>
<mo class="MathClass-punc">
,
</mo>
<mspace class="nbsp" width="1em">
</mspace>
<mi>
&beta;
</mi>
</mrow>
</math>
and
<!--l. 736
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
&gamma;
</mi>
</mrow>
</math>
.
</p>
<!--l. 738
-->
<p class="noindent">
Omitting the subscripts and using partial differentiation gives
</p>
<!--tex4ht:inline
-->
<!--l. 743
-->
<math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
<mtable class="align-star" columnalign="left" displaystyle="true">
<mtr>
<mtd class="align-odd" columnalign="right">
<mfrac>
<mrow>
<mi>
&part;
</mi>
<mi>
f
</mi>
</mrow>
<mrow>
<mi>
&part;
</mi>
<mi>
a
</mi>
</mrow>
</mfrac>
</mtd>
<mtd class="align-even">
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
2
</mn>
<mo mathsize="normal">
&sum;
</mo>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
y
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mi>
x
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
c
</mi>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mspace width="2em">
</mspace>
</mtd>
<mtd class="align-label" columnalign="right">
</mtd>
<mtd class="align-label">
<mspace width="2em">
</mspace>
</mtd>
</mtr>
<mtr>
<mtd class="align-odd" columnalign="right">
<mfrac>
<mrow>
<mi>
&part;
</mi>
<mi>
f
</mi>
</mrow>
<mrow>
<mi>
&part;
</mi>
<mi>
b
</mi>
</mrow>
</mfrac>
</mtd>
<mtd class="align-even">
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
2
</mn>
<mo mathsize="normal">
&sum;
</mo>
<mi>
x
</mi>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
y
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mi>
x
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
c
</mi>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mspace width="2em">
</mspace>
</mtd>
<mtd class="align-label" columnalign="right">
</mtd>
<mtd class="align-label">
<mspace width="2em">
</mspace>
</mtd>
</mtr>
<mtr>
<mtd class="align-odd" columnalign="right">
<mfrac>
<mrow>
<mi>
&part;
</mi>
<mi>
f
</mi>
</mrow>
<mrow>
<mi>
&part;
</mi>
<mi>
c
</mi>
</mrow>
</mfrac>
</mtd>
<mtd class="align-even">
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
2
</mn>
<mo mathsize="normal">
&sum;
</mo>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
y
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mi>
x
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
c
</mi>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mspace width="2em">
</mspace>
</mtd>
<mtd class="align-label" columnalign="right">
</mtd>
<mtd class="align-label">
<mspace width="2em">
</mspace>
</mtd>
</mtr>
</mtable>
</math>
<!--l. 744
-->
<p class="noindent">
At a minimum we require
</p>
<!--l. 745
-->
<p class="noindent">
<!--l. 745
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mfrac>
<mrow>
<mi>
&part;
</mi>
<mi>
f
</mi>
</mrow>
<mrow>
<mi>
&part;
</mi>
<mi>
a
</mi>
</mrow>
</mfrac>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mi>
&part;
</mi>
<mi>
f
</mi>
</mrow>
<mrow>
<mi>
&part;
</mi>
<mi>
b
</mi>
</mrow>
</mfrac>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mi>
&part;
</mi>
<mi>
f
</mi>
</mrow>
<mrow>
<mi>
&part;
</mi>
<mi>
c
</mi>
</mrow>
</mfrac>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
</mrow>
</math>
</p>
<!--l. 748
-->
<p class="noindent">
which results in the three linear equations
</p>
<!--tex4ht:inline
-->
<!--l. 753
-->
<math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
<mtable class="align-star" columnalign="left" displaystyle="true">
<mtr>
<mtd class="align-odd" columnalign="right">
</mtd>
<mtd class="align-even">
<mo mathsize="normal">
&sum;
</mo>
<mi>
y
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
n
</mi>
<mi>
a
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mo mathsize="normal">
&sum;
</mo>
<mi>
x
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
c
</mi>
<mo mathsize="normal">
&sum;
</mo>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
<mspace width="2em">
</mspace>
</mtd>
<mtd class="align-label" columnalign="right">
</mtd>
<mtd class="align-label">
<mspace width="2em">
</mspace>
</mtd>
</mtr>
<mtr>
<mtd class="align-odd" columnalign="right">
</mtd>
<mtd class="align-even">
<mo mathsize="normal">
&sum;
</mo>
<mi>
x
</mi>
<mi>
y
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo mathsize="normal">
&sum;
</mo>
<mi>
x
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mo mathsize="normal">
&sum;
</mo>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
c
</mi>
<mo mathsize="normal">
&sum;
</mo>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
3
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
<mspace width="2em">
</mspace>
</mtd>
<mtd class="align-label" columnalign="right">
</mtd>
<mtd class="align-label">
<mspace width="2em">
</mspace>
</mtd>
</mtr>
<mtr>
<mtd class="align-odd" columnalign="right">
</mtd>
<mtd class="align-even">
<mo mathsize="normal">
&sum;
</mo>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mi>
y
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo mathsize="normal">
&sum;
</mo>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
b
</mi>
<mo mathsize="normal">
&sum;
</mo>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
3
</mn>
</mrow>
</msup>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
c
</mi>
<mo mathsize="normal">
&sum;
</mo>
<msup>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mn>
4
</mn>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
<mspace width="2em">
</mspace>
</mtd>
<mtd class="align-label" columnalign="right">
</mtd>
<mtd class="align-label">
<mspace width="2em">
</mspace>
</mtd>
</mtr>
</mtable>
</math>
<!--l. 754
-->
<p class="noindent">
which can be solved to give the values of
<!--l. 754
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
<mo class="MathClass-punc">
,
</mo>
<mi>
b
</mi>
</mrow>
</math>
and
<!--l. 754
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
c
</mi>
</mrow>
</math>
.
</p>
<!--l. 756
-->
<h4 class="subsectionHead">
<span class="titlemark">
1.11
</span>
<a href="43_1_rgrssn-web.html#QQ2-4-27" id="x4-270001.11">
The exponential case
</a>
</h4>
<!--l. 758
-->
<p class="noindent">
We use the same technique to look for a functional relation of the form
</p>
<!--l. 759
-->
<p class="noindent">
<!--l. 759
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mi>
&alpha;
</mi>
<msup>
<mrow>
<mi>
e
</mi>
</mrow>
<mrow>
<mi>
&beta;
</mi>
<mi>
x
</mi>
</mrow>
</msup>
</mrow>
</math>
</p>
<!--l. 760
-->
<p class="noindent">
As before, using the method of least squares, we require the values of
<!--l. 761
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
</mrow>
</math>
and
<!--l. 761
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
b
</mi>
</mrow>
</math>
which
minimize the expression
</p>
<!--l. 763
-->
<p class="noindent">
<!--l. 763
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
f
</mi>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
a
</mi>
<mo class="MathClass-punc">
,
</mo>
<mi>
b
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mo class="MathClass-rel">
=
</mo>
<msubsup>
<mrow>
<mo class="MathClass-op">
&sum;
</mo>
<!--nolimits
-->
</mrow>
<mrow>
<mi>
r
</mi>
<mo class="MathClass-rel">
=
</mo>
<mn>
1
</mn>
</mrow>
<mrow>
<mi>
n
</mi>
</mrow>
</msubsup>
<msup>
<mrow>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<msub>
<mrow>
<mi>
y
</mi>
</mrow>
<mrow>
<mi>
r
</mi>
</mrow>
</msub>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<msup>
<mrow>
<mstyle class="text">
<mtext>
e
</mtext>
</mstyle>
</mrow>
<mrow>
<mi>
b
</mi>
<msub>
<mrow>
<mi>
x
</mi>
</mrow>
<mrow>
<mi>
r
</mi>
</mrow>
</msub>
</mrow>
</msup>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
</mrow>
<mrow>
<mn>
2
</mn>
</mrow>
</msup>
</mrow>
</math>
</p>
<!--l. 764
-->
<p class="noindent">
Again omitting the subscripts and using partial differentiation gives
</p>
<!--tex4ht:inline
-->
<!--l. 768
-->
<math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
<mtable class="align-star" columnalign="left" displaystyle="true">
<mtr>
<mtd class="align-odd" columnalign="right">
<mfrac>
<mrow>
<mi>
&part;
</mi>
<mi>
f
</mi>
</mrow>
<mrow>
<mi>
&part;
</mi>
<mi>
a
</mi>
</mrow>
</mfrac>
</mtd>
<mtd class="align-even">
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
2
</mn>
<mo mathsize="normal">
&sum;
</mo>
<msup>
<mrow>
<mstyle class="text">
<mtext>
e
</mtext>
</mstyle>
</mrow>
<mrow>
<mi>
b
</mi>
<mi>
x
</mi>
</mrow>
</msup>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
y
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<msup>
<mrow>
<mstyle class="text">
<mtext>
e
</mtext>
</mstyle>
</mrow>
<mrow>
<mi>
b
</mi>
<mi>
x
</mi>
</mrow>
</msup>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mspace width="2em">
</mspace>
</mtd>
<mtd class="align-label" columnalign="right">
</mtd>
<mtd class="align-label">
<mspace width="2em">
</mspace>
</mtd>
</mtr>
<mtr>
<mtd class="align-odd" columnalign="right">
<mfrac>
<mrow>
<mi>
&part;
</mi>
<mi>
f
</mi>
</mrow>
<mrow>
<mi>
&part;
</mi>
<mi>
b
</mi>
</mrow>
</mfrac>
</mtd>
<mtd class="align-even">
<mo class="MathClass-rel">
=
</mo>
<mo class="MathClass-bin">
&minus;
</mo>
<mn>
2
</mn>
<mo mathsize="normal">
&sum;
</mo>
<mi>
a
</mi>
<mi>
x
</mi>
<msup>
<mrow>
<mstyle class="text">
<mtext>
e
</mtext>
</mstyle>
</mrow>
<mrow>
<mi>
b
</mi>
<mi>
x
</mi>
</mrow>
</msup>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
y
</mi>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<msup>
<mrow>
<mstyle class="text">
<mtext>
e
</mtext>
</mstyle>
</mrow>
<mrow>
<mi>
b
</mi>
<mi>
x
</mi>
</mrow>
</msup>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<mspace width="2em">
</mspace>
</mtd>
<mtd class="align-label" columnalign="right">
</mtd>
<mtd class="align-label">
<mspace width="2em">
</mspace>
</mtd>
</mtr>
</mtable>
</math>
<!--l. 769
-->
<p class="noindent">
At a minimum we require
</p>
<!--l. 770
-->
<p class="noindent">
<!--l. 770
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mfrac>
<mrow>
<mi>
&part;
</mi>
<mi>
f
</mi>
</mrow>
<mrow>
<mi>
&part;
</mi>
<mi>
a
</mi>
</mrow>
</mfrac>
<mo class="MathClass-rel">
=
</mo>
<mfrac>
<mrow>
<mi>
&part;
</mi>
<mi>
f
</mi>
</mrow>
<mrow>
<mi>
&part;
</mi>
<mi>
b
</mi>
</mrow>
</mfrac>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
</mrow>
</math>
</p>
<!--l. 772
-->
<p class="noindent">
which results in the two non-linear equations
</p>
<!--tex4ht:inline
-->
<!--l. 776
-->
<math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
<mtable class="align-star" columnalign="left" displaystyle="true">
<mtr>
<mtd class="align-odd" columnalign="right">
</mtd>
<mtd class="align-even">
<mo mathsize="normal">
&sum;
</mo>
<mi>
y
</mi>
<msup>
<mrow>
<mstyle class="text">
<mtext>
e
</mtext>
</mstyle>
</mrow>
<mrow>
<mi>
b
</mi>
<mi>
x
</mi>
</mrow>
</msup>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo mathsize="normal">
&sum;
</mo>
<msup>
<mrow>
<mstyle class="text">
<mtext>
e
</mtext>
</mstyle>
</mrow>
<mrow>
<mn>
2
</mn>
<mi>
b
</mi>
<mi>
x
</mi>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
<mspace width="2em">
</mspace>
</mtd>
<mtd class="align-label" columnalign="right">
</mtd>
<mtd class="align-label">
<mspace width="2em">
</mspace>
</mtd>
</mtr>
<mtr>
<mtd class="align-odd" columnalign="right">
</mtd>
<mtd class="align-even">
<mo mathsize="normal">
&sum;
</mo>
<mi>
x
</mi>
<mi>
y
</mi>
<msup>
<mrow>
<mstyle class="text">
<mtext>
e
</mtext>
</mstyle>
</mrow>
<mrow>
<mi>
b
</mi>
<mi>
x
</mi>
</mrow>
</msup>
<mo class="MathClass-bin">
&minus;
</mo>
<mi>
a
</mi>
<mo mathsize="normal">
&sum;
</mo>
<mi>
x
</mi>
<msup>
<mrow>
<mstyle class="text">
<mtext>
e
</mtext>
</mstyle>
</mrow>
<mrow>
<mn>
2
</mn>
<mi>
b
</mi>
<mi>
x
</mi>
</mrow>
</msup>
<mo class="MathClass-rel">
=
</mo>
<mn>
0
</mn>
<mspace width="2em">
</mspace>
</mtd>
<mtd class="align-label" columnalign="right">
</mtd>
<mtd class="align-label">
<mspace width="2em">
</mspace>
</mtd>
</mtr>
</mtable>
</math>
<!--l. 777
-->
<p class="noindent">
which can be solved by iterative methods to give the values of
<!--l. 777
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
</mrow>
</math>
and
<!--l. 777
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
b
</mi>
</mrow>
</math>
.
</p>
<!--l. 779
-->
<p class="noindent">
Note that it is possible to combine (for example) linear and exponential regression to obtain a
regression equation of the form
</p>
<!--l. 781
-->
<p class="noindent">
<!--l. 781
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mspace class="qquad" width="2em">
</mspace>
<mi>
y
</mi>
<mo class="MathClass-rel">
=
</mo>
<mrow>
<mo class="MathClass-open">
(
</mo>
<mrow>
<mi>
&alpha;
</mi>
<mo class="MathClass-bin">
+
</mo>
<mi>
&beta;
</mi>
<mi>
x
</mi>
</mrow>
<mo class="MathClass-close">
)
</mo>
</mrow>
<msup>
<mrow>
<mstyle class="text">
<mtext>
e
</mtext>
</mstyle>
</mrow>
<mrow>
<mi>
&gamma;
</mi>
<mi>
x
</mi>
</mrow>
</msup>
</mrow>
</math>
</p>
<!--l. 782
-->
<p class="noindent">
The method of least squares may then be used to find estimates
<!--l. 782
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
a
</mi>
<mo class="MathClass-punc">
,
</mo>
<mspace class="nbsp" width="1em">
</mspace>
<mi>
b
</mi>
<mo class="MathClass-punc">
,
</mo>
<mspace class="nbsp" width="1em">
</mspace>
<mi>
c
</mi>
</mrow>
</math>
of
<!--l. 782
-->
<math display="inline" xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>
&alpha;
</mi>
<mo class="MathClass-punc">
,
</mo>
<mspace class="nbsp" width="1em">
</mspace>
<mi>
&beta;
</mi>
<mo class="MathClass-punc">
,
</mo>
<mspace class="nbsp" width="1em">
</mspace>
<mi>
&gamma;
</mi>
</mrow>
</math>
.
</p>
</main>
<footer>
<hr/>
Original work was created by
<a href="https://www.lboro.ac.uk/departments/mlsc/student-resources/helm-workbooks/consortium-members/">
the HELM consortium.
</a>
<br/>
This work is licensed under a
<a href="http://creativecommons.org/licenses/by-nc/4.0/" rel="license">
Creative Commons Attribution-NonCommercial 4.0 International License
</a>
</footer>
<nav aria-labelledby="botnav">
<div id="botnav">
[
<a href="43_1_rgrssn-webli2.html">
prev
</a>
] [
<a href="43_1_rgrssn-webli2.html#tail43_1_rgrssn-webli2.html">
prev-tail
</a>
] [
<a href="43_1_rgrssn-webse1.html">
front
</a>
] [
<a href="43_1_rgrssn-web.html#43_1_rgrssn-webse1.html">
up
</a>
]
</div>
</nav>
<a id="tail43_1_rgrssn-webse1.html">
</a>
</div>
</body>
</html>