Mathcad Professional 13.0 <description/> <author>Dr. Mike Jezercak</author> <company/> <keywords/> <revisedBy>Dr. Mike Jezercak</revisedBy> </userData> <identityInfo> <revision>4</revision> <documentID>ab2ccd71-b428-495e-9110-c6c83081b7c0</documentID> <versionID>74466268-eb84-4e14-8ef5-e75ce2c66ea7</versionID> <parentVersionID>00000000-0000-0000-0000-000000000000</parentVersionID> <branchID>00000000-0000-0000-0000-000000000000</branchID> </identityInfo> </metadata> <settings> <presentation> <textRendering> <textStyles> <textStyle name="Normal"> <blockAttr margin-left="0" margin-right="0" text-indent="inherit" text-align="left" list-style-type="inherit" tabs="inherit"/> <inlineAttr font-family="Arial" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false" line-through="false" vertical-align="baseline"/> </textStyle> <textStyle name="Heading 1"> <blockAttr margin-left="0" margin-right="0" text-indent="inherit" text-align="left" list-style-type="inherit" tabs="inherit"/> <inlineAttr font-family="Arial" font-charset="0" font-size="14" font-weight="bold" font-style="normal" underline="false" line-through="false" vertical-align="baseline"/> </textStyle> <textStyle name="Heading 2"> <blockAttr margin-left="0" margin-right="0" text-indent="inherit" text-align="left" list-style-type="inherit" tabs="inherit"/> <inlineAttr font-family="Arial" font-charset="0" font-size="12" font-weight="bold" font-style="italic" underline="false" line-through="false" vertical-align="baseline"/> </textStyle> <textStyle name="Heading 3"> <blockAttr margin-left="0" margin-right="0" text-indent="inherit" text-align="left" list-style-type="inherit" tabs="inherit"/> <inlineAttr font-family="Arial" font-charset="0" font-size="12" font-weight="normal" font-style="normal" underline="false" line-through="false" vertical-align="baseline"/> </textStyle> <textStyle name="Paragraph"> <blockAttr margin-left="0" margin-right="0" text-indent="21" text-align="left" list-style-type="inherit" tabs="inherit"/> <inlineAttr font-family="Arial" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false" line-through="false" vertical-align="baseline"/> </textStyle> <textStyle name="List"> <blockAttr margin-left="14.25" margin-right="0" text-indent="-14.25" text-align="left" list-style-type="inherit" tabs="inherit"/> <inlineAttr font-family="Arial" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false" line-through="false" vertical-align="baseline"/> </textStyle> <textStyle name="Indent"> <blockAttr margin-left="108" margin-right="0" text-indent="inherit" text-align="left" list-style-type="inherit" tabs="inherit"/> <inlineAttr font-family="Arial" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false" line-through="false" vertical-align="baseline"/> </textStyle> <textStyle name="Title"> <blockAttr margin-left="0" margin-right="0" text-indent="inherit" text-align="center" list-style-type="inherit" tabs="inherit"/> <inlineAttr font-family="Times New Roman" font-charset="0" font-size="24" font-weight="bold" font-style="normal" underline="false" line-through="false" vertical-align="baseline"/> </textStyle> <textStyle name="Subtitle" base-style="Title"> <blockAttr margin-left="0" margin-right="0" text-indent="inherit" text-align="center" list-style-type="inherit" tabs="inherit"/> <inlineAttr font-family="Times New Roman" font-charset="0" font-size="18" font-weight="normal" font-style="normal" underline="false" line-through="false" vertical-align="baseline"/> </textStyle> </textStyles> </textRendering> <mathRendering equation-color="#000"> <operators multiplication="narrow-dot" derivative="derivative" literal-subscript="large" definition="colon-equal" global-definition="triple-equal" local-definition="left-arrow" equality="bold-equal" symbolic-evaluation="right-arrow"/> <mathStyles> <mathStyle name="Variables" font-family="Times New Roman" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false"/> <mathStyle name="Constants" font-family="Times New Roman" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false"/> <mathStyle name="User 1" font-family="Arial" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false"/> <mathStyle name="User 2" font-family="Courier New" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false"/> <mathStyle name="User 3" font-family="Arial" font-charset="0" font-size="10" font-weight="bold" font-style="normal" underline="false"/> <mathStyle name="User 4" font-family="Times New Roman" font-charset="0" font-size="10" font-weight="normal" font-style="italic" underline="false"/> <mathStyle name="User 5" font-family="Times New Roman" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false"/> <mathStyle name="User 6" font-family="Arial" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false"/> <mathStyle name="User 7" font-family="Times New Roman" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false"/> <mathStyle name="Math Text Font" font-family="Times New Roman" font-charset="0" font-size="10" font-weight="normal" font-style="normal" underline="false"/> </mathStyles> <dimensionNames mass="mass" length="length" time="time" current="charge" thermodynamic-temperature="temperature" luminous-intensity="luminosity" amount-of-substance="substance"/> <symbolics derivation-steps-style="vertical-insert" show-comments="false" evaluate-in-place="false"/> <results> <general precision="3" show-trailing-zeros="false" radix="dec" complex-threshold="10" exponential-threshold="3" imaginary-value="i" zero-threshold="15"/> <matrix display-style="auto" expand-nested-arrays="false"/> <unit format-units="true" simplify-units="true" fractional-unit-exponent="false"/> </results> </mathRendering> <pageModel show-page-frame="false" show-header-frame="false" show-footer-frame="false" header-footer-start-page="1" paper-code="1" orientation="portrait" print-single-page-width="false" page-width="612" page-height="792"> <margins left="86.4" right="86.4" top="86.4" bottom="86.4"/> <header use-full-page-width="false"/> <footer use-full-page-width="false"/> </pageModel> <colorModel background-color="#fff" default-highlight-color="#ffff80"/> <language math="EN" UI="EN"/> </presentation> <calculation> <builtInVariables array-origin="0" convergence-tolerance="0.001" constraint-tolerance="0.001" random-seed="1" prn-precision="4" prn-col-width="8"/> <calculationBehavior automatic-recalculation="true" matrix-strict-singularity-check="true" optimize-expressions="false" exact-boolean="false" strings-use-origin="false" zero-over-zero="0"> <compatibility multiple-assignment="MC11" local-assignment="MC11"/> </calculationBehavior> <units> <currentUnitSystem name="si" customized="false"/> </units> </calculation> <editor protection-level="none" view-annotations="false" view-regions="false"> <ruler is-visible="false" ruler-unit="in"/> <plotTemplate> <xy item-idref="1"/> </plotTemplate> <grid granularity-x="6" granularity-y="6"/> </editor> <fileFormat image-type="image/png" image-quality="75" save-numeric-results="true" exclude-large-results="false" save-text-images="false" screen-dpi="96"/> <miscellaneous> <handbook handbook-region-tag-ub="638" can-delete-original-handbook-regions="true" can-delete-user-regions="true" can-print="true" can-copy="true" can-save="true" file-permission-mask="4294967295"/> </miscellaneous> </settings> <regions> <region region-id="3" left="12" top="14.25" width="417.75" height="406.5" align-x="12" align-y="30" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="center" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="18"> <b>Graphical Procedures and Data Reduction</b> </f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"/> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11"> <tab/>In the laboratory collection of data, it is often that the investigator is looking for a relationship between two or more variables. For example, one might want to know how the concentration of a reactant disappears with time, or perhaps one might want to know how the volume of a gas changes with temperature. Often, one develops<sp count="2"/>theoretical relationship between two or more variables and then uses it to find more information. For example, the relationship between the vapor pressure of a liquid and the temperature can be used to find the energy required to vaporize the liquid. Indeed, many physical values can be found through graphical data reduction procedures. </f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11"> <tab/>Unfortunately, the variety of sources of error often lead to data relationships that are not easily interpreted. Methods have been developed to contend with these problems, some of which will be discussed here.</f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"/> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11"> <b>Linear Regression</b> </f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"/> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11"> <tab/>Often, data is found to exhibit a linear relationship. A linear relationship in a single variable is often written as</f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"/> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">y = mx<sp count="2"/>+<sp count="2"/>b</f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"/> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">where m is the slope of the line and b is the intercept. There are many other relationships between data. For example one may find that data fits a polynomial, generally written as</f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"/> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <region region-id="4" left="12" top="311.25" width="103.5" height="22.5" align-x="22.5" align-y="326.25" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:id xml:space="preserve">y</ml:id> <ml:apply> <ml:plus/> <ml:apply> <ml:plus/> <ml:apply> <ml:plus/> <ml:id xml:space="preserve" subscript="0">a</ml:id> <ml:apply> <ml:mult style="default"/> <ml:id xml:space="preserve" subscript="1">a</ml:id> <ml:id xml:space="preserve">x</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:id xml:space="preserve" subscript="2">a</ml:id> <ml:apply> <ml:pow/> <ml:id xml:space="preserve">x</ml:id> <ml:real>2</ml:real> </ml:apply> </ml:apply> </ml:apply> <ml:id xml:space="preserve" font="1">...</ml:id> </ml:apply> </ml:apply> </math> <rendering item-idref="2"/> </region> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"/> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">Where a</f> <f family="Times New Roman" charset="0" size="11"> <inlineAttr line-through="false"> <sub>0</sub> </inlineAttr> </f> <f family="Times New Roman" charset="0" size="11">, a</f> <f family="Times New Roman" charset="0" size="11"> <inlineAttr line-through="false"> <sub>1</sub> </inlineAttr> </f> <f family="Times New Roman" charset="0" size="11">, a</f> <f family="Times New Roman" charset="0" size="11"> <inlineAttr line-through="false"> <sub>2</sub> </inlineAttr> </f> <f family="Times New Roman" charset="0" size="11"> etc are coefficients of this polynomial and n is usually<sp count="2"/>positive integer.<sp count="2"/>To fit data to equations of this form is known as linear regression </f> <f family="Times New Roman" charset="0" size="11"> <i>even though the fitted curve may not be straight. </i> </f> <f family="Times New Roman" charset="0" size="11">To say “linear” is to mean that the coefficients are linear, not necessarily the resulting line.<sp count="2"/> </f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="36" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">Other functions are more complex in their relationship between x, y and the coefficients such as the following function.</f> </p> </text> </region> <region region-id="5" left="36" top="431.25" width="72" height="22.5" align-x="46.5" align-y="450" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:id xml:space="preserve">y</ml:id> <ml:apply> <ml:mult style="default"/> <ml:id xml:space="preserve">A</ml:id> <ml:apply> <ml:pow/> <ml:id xml:space="preserve">e</ml:id> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:neg/> <ml:id xml:space="preserve">b</ml:id> </ml:apply> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:minus/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">c</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:apply> </ml:apply> </ml:apply> </ml:apply> </math> <rendering item-idref="3"/> </region> <region region-id="7" left="12" top="470.25" width="425.25" height="60" align-x="12" align-y="480" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">We will develop methods in this section that figure out how to find the best coefficients that fit a set of laboratory data. In addition, we will examine the quality of the coefficients that are found in the form of error analysis. Finally, for a generalized fit of any linear polynomial, included is a document that may be placed directly in MATHCAD that will calculate the coefficients and their error statistics.</f> </p> </text> </region> <region region-id="14" left="18" top="638.25" width="116.25" height="12" align-x="18" align-y="648" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">Consider the following data</p> </text> </region> <region region-id="71" left="24" top="675" width="25.5" height="12.75" align-x="37.5" align-y="684" show-border="false" show-highlight="true" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedBIUnit" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">N</ml:id> <ml:real>8</ml:real> </ml:define> </math> <rendering item-idref="4"/> </region> <region region-id="72" left="78" top="675" width="51" height="12.75" align-x="86.25" align-y="684" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">i</ml:id> <ml:range> <ml:real>0</ml:real> <ml:apply> <ml:minus/> <ml:id xml:space="preserve">N</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:range> </ml:define> </math> <rendering item-idref="5"/> </region> <region region-id="73" left="24" top="696" width="17.25" height="138.75" align-x="26.25" align-y="714" show-border="false" show-highlight="true" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:sequence> <ml:real>2</ml:real> <ml:real>3</ml:real> <ml:real>4</ml:real> <ml:real>5</ml:real> <ml:real>6</ml:real> <ml:real>7</ml:real> <ml:real>8</ml:real> <ml:real>9</ml:real> </ml:sequence> </ml:define> </math> <rendering item-idref="6"/> </region> <region region-id="74" left="66" top="696" width="27.75" height="138.75" align-x="75.75" align-y="714" show-border="false" show-highlight="true" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:sequence> <ml:real>3.10</ml:real> <ml:real>2.75</ml:real> <ml:real>2.28</ml:real> <ml:real>1.15</ml:real> <ml:real>.399</ml:real> <ml:real>-1.01</ml:real> <ml:real>-2.66</ml:real> <ml:real>-4.76</ml:real> </ml:sequence> </ml:define> </math> <rendering item-idref="7"/> </region> <region region-id="16" left="168" top="720" width="159" height="132.75" align-x="168" align-y="720" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <plot disable-calc="false" item-idref="8"/> <rendering item-idref="9"/> </region> <region region-id="18" left="6" top="866.25" width="416.25" height="84" align-x="6" align-y="876" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">As you can see, the data in this figure appears to be linear, however, clearly there are errors involved. If I were to ask you to draw the best fit straight line through the data points, where would you draw the line? In the past, you might have “eyeballed” the data to guess where to draw the line. You then took a ruler and drew the line. This may have produced an adequate result, however, we would like a better guess. </f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11"> <tab/>Let us assume that there exists a best fit straight line. Let's include it on the graph as follows:</f> </p> </text> </region> <region region-id="20" left="492" top="867" width="53.25" height="12.75" align-x="505.5" align-y="876" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">xx</ml:id> <ml:range> <ml:sequence> <ml:real>0</ml:real> <ml:real>.1</ml:real> </ml:sequence> <ml:real>10</ml:real> </ml:range> </ml:define> </math> <rendering item-idref="10"/> </region> <region region-id="22" left="504" top="891" width="160.5" height="12.75" align-x="535.5" align-y="900" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:function> <ml:id xml:space="preserve">yy</ml:id> <ml:boundVars> <ml:id xml:space="preserve">xx</ml:id> </ml:boundVars> </ml:function> <ml:apply> <ml:plus/> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:id xml:space="preserve">slope</ml:id> <ml:sequence> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">y</ml:id> </ml:sequence> </ml:apply> <ml:id xml:space="preserve">xx</ml:id> </ml:apply> <ml:apply> <ml:id xml:space="preserve">intercept</ml:id> <ml:sequence> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">y</ml:id> </ml:sequence> </ml:apply> </ml:apply> </ml:define> </math> <rendering item-idref="11"/> </region> <region region-id="75" left="84" top="954" width="165" height="132.75" align-x="84" align-y="954" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <plot disable-calc="false" item-idref="12"/> <rendering item-idref="13"/> </region> <region region-id="25" left="12" top="1088.25" width="426" height="120" align-x="12" align-y="1098" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">As you can see, some of the data points fall above the line and some fall below the line. The strategy is as follows:</f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"/> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0">a.) <tab/> </f> <f family="Times New Roman" charset="0" size="11">Calculate the distance between each data point and the best fit line.</f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0">b.) <tab/> </f> <f family="Times New Roman" charset="0" size="11">Square the number</f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0">c.) <tab/> </f> <f family="Times New Roman" charset="0" size="11">Add all the square distances together</f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0">d.) <tab/> </f> <f family="Times New Roman" charset="0" size="11">Adjust slope and intercept until the sum of the square distances is as small as possible.</f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"/> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">Let's look at each step in order. The distance between the ith data point and some best fit straight line can be expressed as</f> </p> </text> </region> <region region-id="27" left="42" top="1251" width="84.75" height="18" align-x="54.75" align-y="1260" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">d</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:apply> <ml:minus/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:parens> <ml:apply> <ml:plus/> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> </ml:parens> </ml:apply> </ml:apply> </math> <rendering item-idref="14"/> </region> <region region-id="28" left="18" top="1286.25" width="82.5" height="12" align-x="18" align-y="1296" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">Squaring this yields</f> </p> </text> </region> <region region-id="29" left="156" top="1281" width="273" height="24" align-x="180.75" align-y="1296" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">d</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> <ml:apply> <ml:plus/> <ml:apply> <ml:plus/> <ml:apply> <ml:plus/> <ml:apply> <ml:minus/> <ml:apply> <ml:minus/> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:real>2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:real>2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:real>2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:apply> </ml:apply> </math> <rendering item-idref="15"/> </region> <region region-id="31" left="6" top="1316.25" width="411.75" height="72" align-x="6" align-y="1326" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">The reason for doing this is to insure that none of the errors cancel out. Note that if a data point falls above the line, we will get a positive d</f> <f family="Times New Roman" charset="0" size="11">i</f> <f family="Times New Roman" charset="0" size="11">. If it falls below the line, we get a negative d</f> <f family="Times New Roman" charset="0" size="11">i</f> <f family="Times New Roman" charset="0" size="11">. If they all add up to zero, we might mistakenly believe that we have a perfect line! Squaring all the distances before adding them up avoids this. </f> </p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"/> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">Now add up all the square distances to yield</f> </p> </text> </region> <region region-id="34" left="18" top="1401" width="273" height="36" align-x="27.75" align-y="1416" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:id xml:space="preserve">s</ml:id> <ml:apply> <ml:plus/> <ml:apply> <ml:plus/> <ml:apply> <ml:plus/> <ml:apply> <ml:minus/> <ml:apply> <ml:minus/> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:real>2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:real>2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:real>2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:apply> </ml:apply> </math> <rendering item-idref="16"/> </region> <region region-id="33" left="6" top="1448.25" width="421.5" height="81" align-x="6" align-y="1458" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">Now it is necessary to adjust the coefficients a</f> <f family="Times New Roman" charset="0" size="11"> <inlineAttr line-through="false"> <sub>1</sub> </inlineAttr> </f> <f family="Times New Roman" charset="0" size="11"> and a</f> <f family="Times New Roman" charset="0" size="11"> <inlineAttr line-through="false"> <sub>0</sub> </inlineAttr> </f> <f family="Times New Roman" charset="0" size="11"> until the sum of square distances is as small as possible. As you may recall from our discussion of derivatives that the minimum or maximum of a function can be found by taking the derivative of the function and setting it equal to 0. This is how we will find the minimum sum of the square distances. Taking the derivative with respect to </f> <f family="Times New Roman" charset="0" size="11">a</f> <f family="Times New Roman" charset="0" size="11"> <sub>1</sub> </f> <f family="Times New Roman" charset="0" size="11"> and a</f> <f family="Times New Roman" charset="0" size="11"> <sub>0</sub> </f> <f family="Times New Roman" charset="0" size="11"> and setting them equal to zero, thus finding a minimum square distance. Taking the derivative of s with respect to </f> <f family="Times New Roman" charset="0" size="11">a</f> <f family="Times New Roman" charset="0" size="11"> <sub>1</sub> </f> <f family="Times New Roman" charset="0" size="11"> and a</f> <f family="Times New Roman" charset="0" size="11"> <sub>0</sub> </f> <f family="Times New Roman" charset="0" size="11"> gives:</f> </p> </text> </region> <region region-id="35" left="18" top="1537.5" width="265.5" height="37.5" align-x="179.25" align-y="1554" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:apply> <ml:equal/> <ml:apply> <ml:equal/> <ml:apply> <ml:derivative/> <ml:lambda> <ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:boundVars> <ml:id xml:space="preserve">s</ml:id> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:plus/> <ml:apply> <ml:plus/> <ml:apply> <ml:mult style="default"/> <ml:real>-2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:real>2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:real>2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> </ml:apply> <ml:real>0</ml:real> </ml:apply> <ml:apply> <ml:minus/> <ml:apply> <ml:minus/> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:id xml:space="preserve">N</ml:id> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> </ml:apply> </ml:apply> </math> <rendering item-idref="17"/> </region> <region region-id="36" left="18" top="1585.5" width="337.5" height="37.5" align-x="209.25" align-y="1602" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:apply> <ml:equal/> <ml:apply> <ml:equal/> <ml:apply> <ml:derivative/> <ml:lambda> <ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:boundVars> <ml:id xml:space="preserve">s</ml:id> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:plus/> <ml:apply> <ml:plus/> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:real>-2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:real>2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:apply> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:mult style="default"/> <ml:real>2</ml:real> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> </ml:apply> <ml:real>0</ml:real> </ml:apply> <ml:apply> <ml:minus/> <ml:apply> <ml:minus/> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:lambda> </ml:apply> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> </ml:apply> </ml:apply> </ml:apply> </math> <rendering item-idref="18"/> </region> <region region-id="43" left="18" top="1634.25" width="68.25" height="12" align-x="18" align-y="1644" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">or rearranging...</p> </text> </region> <region region-id="44" left="36" top="1662.75" width="111" height="32.25" align-x="63.75" align-y="1674" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:plus/> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> <ml:parens> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> </ml:parens> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:id xml:space="preserve">N</ml:id> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> </ml:apply> </ml:apply> </math> <rendering item-idref="19"/> </region> <region region-id="45" left="186" top="1664.25" width="15.75" height="12" align-x="186" align-y="1674" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">and</p> </text> </region> <region region-id="46" left="234" top="1659" width="141" height="36" align-x="278.25" align-y="1674" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> <ml:apply> <ml:plus/> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:lambda> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> </ml:apply> </ml:apply> </ml:apply> </math> <rendering item-idref="20"/> </region> <region region-id="47" left="12" top="1706.25" width="423" height="39" align-x="12" align-y="1716" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Times New Roman" charset="0" size="11">Note that we now have two equations and two unknowns. Since we have the data, we know all the sums. We only need to solve the two equations for a</f> <f family="Times New Roman" charset="0" size="11"> <inlineAttr line-through="false"> <sub>0</sub> </inlineAttr> </f> <f family="Times New Roman" charset="0" size="11"> and a</f> <f family="Times New Roman" charset="0" size="11"> <inlineAttr line-through="false"> <sub>1</sub> </inlineAttr> </f> <f family="Times New Roman" charset="0" size="11">. The above expressions can be written in matrix form as:</f> </p> </text> </region> <region region-id="48" left="54" top="1761.75" width="157.5" height="72" align-x="108" align-y="1800" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:matrix rows="2" cols="1"> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> </ml:matrix> <ml:apply> <ml:mult style="default"/> <ml:matrix rows="2" cols="2"> <ml:id xml:space="preserve">N</ml:id> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:lambda> </ml:apply> </ml:matrix> <ml:matrix rows="2" cols="1"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:matrix> </ml:apply> </ml:apply> </math> <rendering item-idref="21"/> </region> <region region-id="41" left="6" top="1874.25" width="426.75" height="36" align-x="9.75" align-y="1884" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">In general, if the polynomial is higher order, the sums simply increase in terms as per the order of the polynomial. For example, second order polynomial produces three sums corresponding to three coefficients which look in matrix form like...</p> </text> </region> <region region-id="50" left="30" top="1914" width="221.25" height="115.5" align-x="96" align-y="1974" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:matrix rows="3" cols="1"> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> </ml:matrix> <ml:apply> <ml:mult style="default"/> <ml:matrix rows="3" cols="3"> <ml:id xml:space="preserve">N</ml:id> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>3</ml:real> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>3</ml:real> </ml:apply> </ml:lambda> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:real>4</ml:real> </ml:apply> </ml:lambda> </ml:apply> </ml:matrix> <ml:matrix rows="3" cols="1"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>2</ml:real> </ml:apply> </ml:matrix> </ml:apply> </ml:apply> </math> <rendering item-idref="22"/> </region> <region region-id="51" left="30" top="2054.25" width="198.75" height="12" align-x="30" align-y="2064" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">Clearly, the elements of the matrices look like</p> </text> </region> <region region-id="82" left="36" top="2085" width="99" height="36" align-x="78.75" align-y="2100" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="sums">XY</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> </ml:apply> </math> <rendering item-idref="23"/> </region> <region region-id="83" left="156" top="2085" width="94.5" height="36" align-x="201.75" align-y="2100" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="sums">X</ml:id> <ml:sequence> <ml:id xml:space="preserve">j</ml:id> <ml:id xml:space="preserve">k</ml:id> </ml:sequence> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:apply> <ml:plus/> <ml:id xml:space="preserve">k</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> </ml:apply> </ml:lambda> </ml:apply> </ml:apply> </math> <rendering item-idref="24"/> </region> <region region-id="58" left="24" top="2132.25" width="396" height="24" align-x="24" align-y="2142" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">where k and j run from 0 to M, where M is the order of the polynomial.<sp count="2"/>From this matrix, we can solve for the coefficients as:</p> </text> </region> <region region-id="60" left="42" top="2181" width="100.5" height="21" align-x="84.75" align-y="2190" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="sums">XY</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="sums">X</ml:id> <ml:sequence> <ml:id xml:space="preserve">j</ml:id> <ml:id xml:space="preserve">k</ml:id> </ml:sequence> </ml:apply> <ml:id xml:space="preserve">A</ml:id> </ml:apply> </ml:apply> </math> <rendering item-idref="25"/> </region> <region region-id="62" left="180" top="2180.25" width="175.5" height="12" align-x="180" align-y="2190" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">where A is the coefficient matrix. Solving</p> </text> </region> <region region-id="64" left="36" top="2223" width="124.5" height="27" align-x="48.75" align-y="2238" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:id xml:space="preserve">A</ml:id> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="sums">X</ml:id> <ml:sequence> <ml:id xml:space="preserve">j</ml:id> <ml:id xml:space="preserve">k</ml:id> </ml:sequence> </ml:apply> </ml:parens> <ml:real>-1</ml:real> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="sums">XY</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> </ml:apply> </ml:apply> </math> <rendering item-idref="26"/> </region> <region region-id="65" left="18" top="2270.25" width="347.25" height="12" align-x="18" align-y="2280" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">Now, let us apply this to the data provided above for a first and second order fit.. </p> </text> </region> <region region-id="76" left="18" top="2295" width="25.5" height="12.75" align-x="31.5" align-y="2304" show-border="false" show-highlight="true" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedUDScalar" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">N</ml:id> <ml:real>8</ml:real> </ml:define> </math> <rendering item-idref="27"/> </region> <region region-id="77" left="72" top="2295" width="51" height="12.75" align-x="80.25" align-y="2304" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">i</ml:id> <ml:range> <ml:real>0</ml:real> <ml:apply> <ml:minus/> <ml:id xml:space="preserve">N</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:range> </ml:define> </math> <rendering item-idref="28"/> </region> <region region-id="88" left="180" top="2295" width="27" height="12.75" align-x="195" align-y="2304" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">M</ml:id> <ml:real>1</ml:real> </ml:define> </math> <rendering item-idref="29"/> </region> <region region-id="86" left="174" top="2319" width="37.5" height="12.75" align-x="183" align-y="2328" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">j</ml:id> <ml:range> <ml:real>0</ml:real> <ml:id xml:space="preserve">M</ml:id> </ml:range> </ml:define> </math> <rendering item-idref="30"/> </region> <region region-id="87" left="246" top="2319" width="39" height="12.75" align-x="256.5" align-y="2328" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">k</ml:id> <ml:range> <ml:real>0</ml:real> <ml:id xml:space="preserve">M</ml:id> </ml:range> </ml:define> </math> <rendering item-idref="31"/> </region> <region region-id="78" left="18" top="2316" width="17.25" height="138.75" align-x="20.25" align-y="2334" show-border="false" show-highlight="true" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:sequence> <ml:real>2</ml:real> <ml:real>3</ml:real> <ml:real>4</ml:real> <ml:real>5</ml:real> <ml:real>6</ml:real> <ml:real>7</ml:real> <ml:real>8</ml:real> <ml:real>9</ml:real> </ml:sequence> </ml:define> </math> <rendering item-idref="32"/> </region> <region region-id="79" left="60" top="2316" width="27.75" height="138.75" align-x="69.75" align-y="2334" show-border="false" show-highlight="true" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:sequence> <ml:real>3.10</ml:real> <ml:real>2.75</ml:real> <ml:real>2.28</ml:real> <ml:real>1.15</ml:real> <ml:real>.399</ml:real> <ml:real>-1.01</ml:real> <ml:real>-2.66</ml:real> <ml:real>-4.76</ml:real> </ml:sequence> </ml:define> </math> <rendering item-idref="33"/> </region> <region region-id="84" left="162" top="2361" width="108" height="36" align-x="205.5" align-y="2376" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="sums">XY</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <ml:parens> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> </ml:parens> </ml:define> </math> <rendering item-idref="34"/> </region> <region region-id="85" left="282" top="2361" width="103.5" height="36" align-x="328.5" align-y="2376" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="sums">X</ml:id> <ml:sequence> <ml:id xml:space="preserve">j</ml:id> <ml:id xml:space="preserve">k</ml:id> </ml:sequence> </ml:apply> <ml:parens> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:apply> <ml:plus/> <ml:id xml:space="preserve">k</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> </ml:apply> </ml:lambda> </ml:apply> </ml:parens> </ml:define> </math> <rendering item-idref="35"/> </region> <region region-id="168" left="114" top="2427" width="96" height="22.5" align-x="124.5" align-y="2442" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">a</ml:id> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:pow/> <ml:id xml:space="preserve" subscript="sums">X</ml:id> <ml:real>-1</ml:real> </ml:apply> <ml:id xml:space="preserve" subscript="sums">XY</ml:id> </ml:apply> </ml:define> </math> <rendering item-idref="36"/> </region> <region region-id="169" left="240" top="2424.75" width="62.25" height="29.25" align-x="249.75" align-y="2442" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:eval xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">a</ml:id> <result xmlns="http://schemas.mathsoft.com/math20"> <ml:matrix rows="2" cols="1"> <ml:real>6.22517857142857</ml:real> <ml:real>-1.1034642857142853</ml:real> </ml:matrix> </result> </ml:eval> </math> <rendering item-idref="37"/> </region> <region region-id="171" left="318" top="2432.25" width="66.75" height="12" align-x="318" align-y="2442" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">This is read as </p> </text> </region> <region region-id="175" left="312" top="2451" width="47.25" height="18" align-x="326.25" align-y="2460" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:eval xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> <result xmlns="http://schemas.mathsoft.com/math20"> <ml:real>6.22517857142857</ml:real> </result> </ml:eval> </math> <rendering item-idref="38"/> </region> <region region-id="176" left="372" top="2451" width="52.5" height="18" align-x="386.25" align-y="2460" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:eval xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> <result xmlns="http://schemas.mathsoft.com/math20"> <ml:real>-1.1034642857142853</ml:real> </result> </ml:eval> </math> <rendering item-idref="39"/> </region> <region region-id="177" left="12" top="2486.25" width="90.75" height="12" align-x="12" align-y="2496" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">Plotting the results...</p> </text> </region> <region region-id="106" left="30" top="2511" width="53.25" height="12.75" align-x="43.5" align-y="2520" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">xx</ml:id> <ml:range> <ml:sequence> <ml:real>0</ml:real> <ml:real>.1</ml:real> </ml:sequence> <ml:real>10</ml:real> </ml:range> </ml:define> </math> <rendering item-idref="40"/> </region> <region region-id="110" left="108" top="2511" width="79.5" height="18" align-x="139.5" align-y="2520" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedUDFunction" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:function> <ml:id xml:space="preserve">yy</ml:id> <ml:boundVars> <ml:id xml:space="preserve">xx</ml:id> </ml:boundVars> </ml:function> <ml:apply> <ml:plus/> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> <ml:id xml:space="preserve">xx</ml:id> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> </ml:define> </math> <rendering item-idref="41"/> </region> <region region-id="111" left="42" top="2544" width="165" height="132.75" align-x="42" align-y="2544" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <plot disable-calc="false" item-idref="42"/> <rendering item-idref="43"/> </region> <region region-id="112" left="270" top="2576.25" width="145.5" height="12" align-x="270" align-y="2586" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">Which is what we saw previously.</p> </text> </region> <region region-id="178" left="24" top="2690.25" width="241.5" height="12" align-x="24" align-y="2700" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">Now, let us fit again to a second order polynomial...Now</p> </text> </region> <region region-id="179" left="312" top="2691" width="27" height="12.75" align-x="327" align-y="2700" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedUDScalar" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">M</ml:id> <ml:real>2</ml:real> </ml:define> </math> <rendering item-idref="44"/> </region> <region region-id="129" left="138" top="2721" width="37.5" height="12.75" align-x="147" align-y="2730" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">j</ml:id> <ml:range> <ml:real>0</ml:real> <ml:id xml:space="preserve">M</ml:id> </ml:range> </ml:define> </math> <rendering item-idref="45"/> </region> <region region-id="130" left="210" top="2721" width="39" height="12.75" align-x="220.5" align-y="2730" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">k</ml:id> <ml:range> <ml:real>0</ml:real> <ml:id xml:space="preserve">M</ml:id> </ml:range> </ml:define> </math> <rendering item-idref="46"/> </region> <region region-id="180" left="18" top="2757" width="108" height="36" align-x="61.5" align-y="2772" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="sums">XY</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <ml:parens> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> </ml:parens> </ml:define> </math> <rendering item-idref="47"/> </region> <region region-id="181" left="138" top="2757" width="103.5" height="36" align-x="184.5" align-y="2772" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="sums">X</ml:id> <ml:sequence> <ml:id xml:space="preserve">j</ml:id> <ml:id xml:space="preserve">k</ml:id> </ml:sequence> </ml:apply> <ml:parens> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:apply> <ml:plus/> <ml:id xml:space="preserve">k</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> </ml:apply> </ml:lambda> </ml:apply> </ml:parens> </ml:define> </math> <rendering item-idref="48"/> </region> <region region-id="182" left="282" top="2763" width="96" height="22.5" align-x="292.5" align-y="2778" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedUDScalar" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">a</ml:id> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:pow/> <ml:id xml:space="preserve" subscript="sums">X</ml:id> <ml:real>-1</ml:real> </ml:apply> <ml:id xml:space="preserve" subscript="sums">XY</ml:id> </ml:apply> </ml:define> </math> <rendering item-idref="49"/> </region> <region region-id="183" left="24" top="2806.5" width="62.25" height="45.75" align-x="33.75" align-y="2832" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:eval xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">a</ml:id> <result xmlns="http://schemas.mathsoft.com/math20"> <ml:matrix rows="3" cols="1"> <ml:real>2.7899107142857247</ml:real> <ml:real>0.4080535714285709</ml:real> <ml:real>-0.13741071428571416</ml:real> </ml:matrix> </result> </ml:eval> </math> <rendering item-idref="50"/> </region> <region region-id="140" left="72" top="2871" width="115.5" height="24" align-x="103.5" align-y="2886" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedUDFunction" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:function> <ml:id xml:space="preserve">yy</ml:id> <ml:boundVars> <ml:id xml:space="preserve">xx</ml:id> </ml:boundVars> </ml:function> <ml:apply> <ml:plus/> <ml:apply> <ml:plus/> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>2</ml:real> </ml:apply> <ml:apply> <ml:pow/> <ml:id xml:space="preserve">xx</ml:id> <ml:real>2</ml:real> </ml:apply> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>1</ml:real> </ml:apply> <ml:id xml:space="preserve">xx</ml:id> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> </ml:define> </math> <rendering item-idref="51"/> </region> <region region-id="141" left="6" top="2910" width="169.5" height="132.75" align-x="6" align-y="2910" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <plot disable-calc="false" item-idref="52"/> <rendering item-idref="53"/> </region> <region region-id="142" left="234" top="2942.25" width="114.75" height="12" align-x="234" align-y="2952" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">Which is a much better fit.</p> </text> </region> <region region-id="155" left="24" top="3110.25" width="414.75" height="48" align-x="24" align-y="3120" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">As long as the function is a polynomial, this procedure works extremely well. Most software packages, including this MCAD have regression built in. In MCAD, the regression is accomplished using the built in function, regress. Using the data as above, it is executed as follows:</p> </text> </region> <region region-id="157" left="30" top="3183" width="77.25" height="12.75" align-x="40.5" align-y="3192" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedUDScalar" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">a</ml:id> <ml:apply> <ml:id xml:space="preserve">regress</ml:id> <ml:sequence> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">y</ml:id> <ml:real>2</ml:real> </ml:sequence> </ml:apply> </ml:define> </math> <rendering item-idref="54"/> </region> <region region-id="158" left="162" top="3182.25" width="262.5" height="24" align-x="162" align-y="3192" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">Obviously, the x and y are the data values used. The 2 is the order.<sp count="2"/>Examining the results...</p> </text> </region> <region region-id="162" left="138" top="3242.25" width="276.75" height="60" align-x="138" align-y="3252" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">As you can see, there seem to be too many numbers! The first three numbers are those utilized by MCAD and can be disregarded unless more advanced work is carried out. Note that the last three numbers are identical to the fit obtained earlier.</p> </text> </region> <region region-id="160" left="42" top="3219.75" width="62.25" height="95.25" align-x="51.75" align-y="3270" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:eval xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">a</ml:id> <result xmlns="http://schemas.mathsoft.com/math20"> <ml:matrix rows="6" cols="1"> <ml:real>3</ml:real> <ml:real>3</ml:real> <ml:real>2</ml:real> <ml:real>2.7899107142857131</ml:real> <ml:real>0.4080535714285719</ml:real> <ml:real>-0.13741071428571433</ml:real> </ml:matrix> </result> </ml:eval> </math> <rendering item-idref="55"/> </region> <region region-id="215" left="12" top="3338.25" width="414.75" height="84" align-x="12" align-y="3348" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">This whole process can clearly be outlined in a very efficient fashion. Your humble professor has done this and the result is presented in as the MCAD document, GenLin.mcd. This document is reproduced below. Included in this is the calculation of the standard deviation of the coefficients and of the fit. Also included is a graphical fit for visual comparison. </p> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit"/> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">To use this document, the user need only to replace the highlighted values with the data and order of fit desired.</p> </text> </region> <region region-id="219" left="138" top="3693" width="22.5" height="12.75" align-x="148.5" align-y="3702" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedUDScalar" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">a</ml:id> <ml:real>0</ml:real> </ml:define> </math> <rendering item-idref="56"/> </region> <region region-id="186" left="6" top="3726.75" width="423.75" height="14.25" align-x="6" align-y="3738" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> <f family="Arial" charset="0" size="13"> <b> <inlineAttr line-through="false">Generalized Linear Regression with Standard Deviations of Coefficients.</inlineAttr> </b> </f> </p> </text> </region> <region region-id="187" left="12" top="3752.25" width="412.5" height="48" align-x="12" align-y="3762" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit">In order to carry out this regression, the user is required to supply the number of data points, N, the order of the polynomial to be fit, Order, and the data points, x and y.<sp count="2"/>The polynomial coefficients are calculated along with the standard deviations.</p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit">ref.. Peter C. Jurs "Computer Software Applications in Chemistry</p> </text> </region> <region region-id="188" left="132" top="3812.25" width="199.5" height="12" align-x="132" align-y="3822" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit">Replace highlighted areas only with your data.</p> </text> </region> <region region-id="189" left="24" top="3837" width="25.5" height="12.75" align-x="37.5" align-y="3846" show-border="false" show-highlight="true" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedUDScalar" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">N</ml:id> <ml:real>8</ml:real> </ml:define> </math> <rendering item-idref="57"/> </region> <region region-id="190" left="78" top="3837" width="51" height="12.75" align-x="86.25" align-y="3846" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">i</ml:id> <ml:range> <ml:real>0</ml:real> <ml:apply> <ml:minus/> <ml:id xml:space="preserve">N</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:range> </ml:define> </math> <rendering item-idref="58"/> </region> <region region-id="191" left="144" top="3837" width="40.5" height="12.75" align-x="172.5" align-y="3846" show-border="false" show-highlight="true" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">Order</ml:id> <ml:real>2</ml:real> </ml:define> </math> <rendering item-idref="59"/> </region> <region region-id="192" left="24" top="3858" width="17.25" height="138.75" align-x="26.25" align-y="3876" show-border="false" show-highlight="true" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:sequence> <ml:real>2</ml:real> <ml:real>3</ml:real> <ml:real>4</ml:real> <ml:real>5</ml:real> <ml:real>6</ml:real> <ml:real>7</ml:real> <ml:real>8</ml:real> <ml:real>9</ml:real> </ml:sequence> </ml:define> </math> <rendering item-idref="60"/> </region> <region region-id="193" left="66" top="3858" width="27.75" height="138.75" align-x="75.75" align-y="3876" show-border="false" show-highlight="true" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:sequence> <ml:real>3.10</ml:real> <ml:real>2.75</ml:real> <ml:real>2.28</ml:real> <ml:real>1.15</ml:real> <ml:real>.399</ml:real> <ml:real>-1.01</ml:real> <ml:real>-2.66</ml:real> <ml:real>-4.76</ml:real> </ml:sequence> </ml:define> </math> <rendering item-idref="61"/> </region> <region region-id="194" left="114" top="3867" width="103.5" height="12.75" align-x="132.75" align-y="3876" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">reg</ml:id> <ml:apply> <ml:id xml:space="preserve">regress</ml:id> <ml:sequence> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">Order</ml:id> </ml:sequence> </ml:apply> </ml:define> </math> <rendering item-idref="62"/> </region> <region region-id="195" left="246" top="3866.25" width="90.75" height="12" align-x="246" align-y="3876" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit">regression command</p> </text> </region> <region region-id="196" left="114" top="3897" width="51" height="12.75" align-x="123" align-y="3906" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">j</ml:id> <ml:range> <ml:real>0</ml:real> <ml:id xml:space="preserve">Order</ml:id> </ml:range> </ml:define> </math> <rendering item-idref="63"/> </region> <region region-id="197" left="198" top="3897" width="52.5" height="12.75" align-x="208.5" align-y="3906" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">k</ml:id> <ml:range> <ml:real>0</ml:real> <ml:id xml:space="preserve">Order</ml:id> </ml:range> </ml:define> </math> <rendering item-idref="64"/> </region> <region region-id="198" left="114" top="3932.25" width="96.75" height="12" align-x="114" align-y="3942" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit">regression coefficients</p> </text> </region> <region region-id="199" left="234" top="3933" width="47.25" height="18" align-x="247.5" align-y="3942" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedUDScalar" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">reg</ml:id> <ml:apply> <ml:plus/> <ml:real>3</ml:real> <ml:id xml:space="preserve">j</ml:id> </ml:apply> </ml:apply> </ml:define> </math> <rendering item-idref="65"/> </region> <region region-id="200" left="324" top="3916.5" width="62.25" height="45.75" align-x="333.75" align-y="3942" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:eval xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">a</ml:id> <result xmlns="http://schemas.mathsoft.com/math20"> <ml:matrix rows="3" cols="1"> <ml:real>2.7899107142857131</ml:real> <ml:real>0.4080535714285719</ml:real> <ml:real>-0.13741071428571433</ml:real> </ml:matrix> </result> </ml:eval> </math> <rendering item-idref="66"/> </region> <region region-id="201" left="120" top="3980.25" width="69" height="12" align-x="120" align-y="3990" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit">Error analysis...</p> </text> </region> <region region-id="202" left="126" top="4005" width="75" height="36" align-x="151.5" align-y="4020" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedBIUnit" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">A</ml:id> <ml:sequence> <ml:id xml:space="preserve">j</ml:id> <ml:id xml:space="preserve">k</ml:id> </ml:sequence> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:apply> <ml:plus/> <ml:id xml:space="preserve">j</ml:id> <ml:id xml:space="preserve">k</ml:id> </ml:apply> </ml:apply> </ml:lambda> </ml:apply> </ml:define> </math> <rendering item-idref="67"/> </region> <region region-id="203" left="216" top="3999" width="115.5" height="42" align-x="228.75" align-y="4020" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">Q</ml:id> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">i</ml:id> </ml:boundVars> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:minus/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">y</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">j</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <ml:apply> <ml:pow/> <ml:parens> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:parens> <ml:id xml:space="preserve">j</ml:id> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> </ml:apply> </ml:parens> <ml:real>2</ml:real> </ml:apply> </ml:lambda> </ml:apply> </ml:define> </math> <rendering item-idref="68"/> </region> <region region-id="204" left="126" top="4062.75" width="84.75" height="29.25" align-x="136.5" align-y="4080" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedBIUnit" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">s</ml:id> <ml:apply> <ml:sqrt/> <ml:apply> <ml:div/> <ml:id xml:space="preserve">Q</ml:id> <ml:apply> <ml:minus/> <ml:apply> <ml:minus/> <ml:id xml:space="preserve">N</ml:id> <ml:id xml:space="preserve">Order</ml:id> </ml:apply> <ml:real>1</ml:real> </ml:apply> </ml:apply> </ml:apply> </ml:define> </math> <rendering item-idref="69"/> </region> <region region-id="205" left="246" top="4063.5" width="77.25" height="28.5" align-x="264" align-y="4080" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="a">s</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <ml:apply> <ml:mult style="default"/> <ml:id xml:space="preserve">s</ml:id> <ml:apply> <ml:sqrt/> <ml:apply> <ml:indexer/> <ml:parens> <ml:apply> <ml:pow/> <ml:id xml:space="preserve">A</ml:id> <ml:real>-1</ml:real> </ml:apply> </ml:parens> <ml:sequence> <ml:id xml:space="preserve">j</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:sequence> </ml:apply> </ml:apply> </ml:apply> </ml:define> </math> <rendering item-idref="70"/> </region> <region region-id="206" left="354" top="4071" width="51" height="76.5" align-x="359.25" align-y="4080" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:eval xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve" subscript="a">s</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <result xmlns="http://schemas.mathsoft.com/math20"> <ml:matrix rows="3" cols="1"> <ml:real>0.29939772839177631</ml:real> <ml:real>0.12086646639920369</ml:real> <ml:real>0.010810625402752547</ml:real> </ml:matrix> </result> </ml:eval> <resultFormat> <table item-idref="71"/> </resultFormat> </math> <rendering item-idref="72"/> </region> <region region-id="207" left="126" top="4118.25" width="99" height="12" align-x="126" align-y="4128" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit">standard deviation of fit</p> </text> </region> <region region-id="208" left="246" top="4118.25" width="83.25" height="24" align-x="246" align-y="4128" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit">standard deviations</p> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit"> of the coefficients</p> </text> </region> <region region-id="209" left="18" top="4160.25" width="71.25" height="12" align-x="18" align-y="4170" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit">Final Equation...</p> </text> </region> <region region-id="210" left="126" top="4155" width="72" height="36" align-x="146.25" align-y="4170" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:function> <ml:id xml:space="preserve">f</ml:id> <ml:boundVars> <ml:id xml:space="preserve">z</ml:id> </ml:boundVars> </ml:function> <ml:apply> <ml:summation/> <ml:lambda> <ml:boundVars> <ml:id xml:space="preserve">j</ml:id> </ml:boundVars> <ml:parens> <ml:apply> <ml:mult style="default"/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">a</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> <ml:apply> <ml:pow/> <ml:id xml:space="preserve">z</ml:id> <ml:id xml:space="preserve">j</ml:id> </ml:apply> </ml:apply> </ml:parens> </ml:lambda> </ml:apply> </ml:define> </math> <rendering item-idref="73"/> </region> <region region-id="211" left="222" top="4149" width="134.25" height="33" align-x="231.75" align-y="4170" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">z</ml:id> <ml:range> <ml:sequence> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:real>0</ml:real> </ml:apply> <ml:apply> <ml:plus/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:real>0</ml:real> </ml:apply> <ml:parens> <ml:apply> <ml:div/> <ml:apply> <ml:minus/> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:apply> <ml:minus/> <ml:id xml:space="preserve">N</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:apply> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:real>0</ml:real> </ml:apply> </ml:apply> <ml:real>10</ml:real> </ml:apply> </ml:parens> </ml:apply> </ml:sequence> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">x</ml:id> <ml:apply> <ml:minus/> <ml:id xml:space="preserve">N</ml:id> <ml:real>1</ml:real> </ml:apply> </ml:apply> </ml:range> </ml:define> </math> <rendering item-idref="74"/> </region> <region region-id="212" left="180" top="4194" width="213" height="132.75" align-x="180" align-y="4194" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <plot disable-calc="false" item-idref="75"/> <rendering item-idref="76"/> </region> <region region-id="213" left="12" top="4196.25" width="120" height="12" align-x="12" align-y="4206" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="0" margin-right="0" text-indent="0" text-align="left" list-style-type="none" tabs="inherit">Plotting data with curve fit...</p> </text> </region> <region region-id="221" left="12" top="4358.25" width="160.5" height="12" align-x="12" align-y="4368" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit"> <f family="Arial" charset="0"> <b> <inlineAttr line-through="false">Functions that are more complex:</inlineAttr> </b> </f> </p> </text> </region> <region region-id="222" left="6" top="4388.25" width="420.75" height="24" align-x="6" align-y="4398" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">In some instances, functions may appear to be non-linear, but can be manipulated into the proper form. As an example, consider the following function:</p> </text> </region> <region region-id="224" left="18" top="4428" width="48.75" height="33.75" align-x="28.5" align-y="4458" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:apply xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:equal/> <ml:id xml:space="preserve">p</ml:id> <ml:apply> <ml:mult style="default"/> <ml:id xml:space="preserve">A</ml:id> <ml:apply> <ml:pow/> <ml:id xml:space="preserve">e</ml:id> <ml:apply> <ml:div/> <ml:apply> <ml:neg/> <ml:id xml:space="preserve">B</ml:id> </ml:apply> <ml:id xml:space="preserve">T</ml:id> </ml:apply> </ml:apply> </ml:apply> </ml:apply> </math> <rendering item-idref="77"/> </region> <region region-id="225" left="96" top="4448.25" width="202.5" height="12" align-x="96" align-y="4458" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">where A and B are constants to be determind. </p> </text> </region> <region region-id="229" left="18" top="4478.25" width="315.75" height="12" align-x="28.5" align-y="4488" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">Some representative data of T related to p is given and plotted as follows:</p> </text> </region> <region region-id="230" left="18" top="4503" width="32.25" height="12.75" align-x="26.25" align-y="4512" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:id xml:space="preserve">i</ml:id> <ml:range> <ml:real>0</ml:real> <ml:real>9</ml:real> </ml:range> </ml:define> </math> <rendering item-idref="78"/> </region> <region region-id="231" left="78" top="4503" width="57" height="18" align-x="92.25" align-y="4512" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define warning="WarnRedefinedBIUnit" xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">T</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:apply> <ml:plus/> <ml:real>275</ml:real> <ml:apply> <ml:mult style="default"/> <ml:real>2</ml:real> <ml:id xml:space="preserve">i</ml:id> </ml:apply> </ml:apply> </ml:define> </math> <rendering item-idref="79"/> </region> <region region-id="232" left="18" top="4518" width="27" height="165.75" align-x="27.75" align-y="4536" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <math optimize="false" disable-calc="false"> <ml:define xmlns:ml="http://schemas.mathsoft.com/math20"> <ml:apply> <ml:indexer/> <ml:id xml:space="preserve">p</ml:id> <ml:id xml:space="preserve">i</ml:id> </ml:apply> <ml:sequence> <ml:real>5.29</ml:real> <ml:real>6.10</ml:real> <ml:real>7.01</ml:real> <ml:real>8.05</ml:real> <ml:real>9.21</ml:real> <ml:real>10.52</ml:real> <ml:real>11.99</ml:real> <ml:real>13.63</ml:real> <ml:real>15.48</ml:real> <ml:real>17.54</ml:real> </ml:sequence> </ml:define> </math> <rendering item-idref="80"/> </region> <region region-id="235" left="102" top="4542" width="195.75" height="156.75" align-x="102" align-y="4542" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <plot disable-calc="false" item-idref="81"/> <rendering item-idref="82"/> </region> <region region-id="236" left="12" top="4706.25" width="426.75" height="72" align-x="12" align-y="4716" show-border="false" show-highlight="false" is-protected="true" z-order="0" background-color="inherit" tag=""> <text use-page-width="false" push-down="false" lock-width="true"> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit">A cursory examination show that the relationship is clearly non-linear as plotted. However, we have a function that is purported to represent the data. We would like to fit the data to the function, however, we only have linear tools. </p> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit" tabs="inherit"/> <p style="Normal" margin-left="inherit" margin-right="inherit" text-indent="inherit" text-align="inherit" list-style-type="inherit