Hello!
It is obvious that there is no linear formula exactly connecting these x's and y's, if we consider the slopes between neighbor points:
(155 - 134)/(31 - 30) = 21, (165 - 155)/(33 - 31) = 5, (167 - 165)/(35 - 33) = 1.
For a single line, all these slopes must be the same.
But this isn't the whole story. We may seek such a line y=ax+b that would be the closest to all these points. The simplest criteria of such a proximity is the least squares one, which means we try to minimize
sum_(k=1)^n (y_n-(ax_n+b))^2.
This problem has the exact unique answer (see for example the link attached). We have to compute the numbers
p=sum_(k=1)^n x_k^2, q=sum_(k=1)^n x_k, r=sum_(k=1)^n x_k y_k and s=sum_(k=1)^n y_k.
In our case p=4175, q=129, r=20115 and s=621. Then we solve the linear system for the unknowns a and b,
pa+qb=r, qa+nb=s (here n=4).
I hope you know how to solve such systems, the solution for this is a=351/59, b=-2160/59.
https://web.williams.edu/Mathematics/sjmiller/public_html/BrownClasses/54/handouts/MethodLeastSquares.pdf
Tuesday, September 25, 2012
How do you model a linear equation when there's no apparent pattern between x and y? For example x=30, y=134, x=31, y=155, x=33, y=165, x=35, y=167.
Subscribe to:
Post Comments (Atom)
Summarize the major research findings of "Toward an experimental ecology of human development."
Based on findings of prior research, the author, Bronfenbrenner proposes that methods for natural observation research have been applied in ...
-
Find the indefinite integral $\displaystyle \int \sec^4 \left( \frac{x}{2} \right) dx$. Illustrate by graphing both the integrand and its an...
-
Determine $\displaystyle \frac{dy}{dx}$ of $y^5 + x^2y^3 = 1 + x^4 y$ by Implicit Differentiation. $\displaystyle \frac{d}{dx}(y^5) + ...
-
Determine the area of the region bounded by the hyperbola $9x^2 - 4y^2 = 36$ and the line $ x= 3$ By using vertical strips, Si...
-
Find the integral $\displaystyle \int^1_0 \frac{1}{\sqrt{16 t^2 + 1}} dt$ If we let $u = 4t$, then $du = 4dt$, so $\displaystyle dt = \frac{...
-
Determine the integral $\displaystyle \int \frac{\sin^3 (\sqrt{x})}{\sqrt{x}} dx$ Let $u = \sqrt{x}$, then $\displaystyle du = \frac{1}{2 \s...
-
Gertrude's comment "The lady protests too much, methinks" in act 3, scene 2, of Shakespeare's Hamlet exposes her own guilt...
-
Given y=cos(2x), y=0 x=0,x=pi/4 so the solid of revolution about x-axis is given as V = pi * int _a ^b [R(x)^2 -r(x)^2] dx here R(x) =cos(2x...
No comments:
Post a Comment