Preview

Linear Least Squares

Good Essays
Open Document
Open Document
3071 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Linear Least Squares
Linear Least Squares

Suppose we are given a set of data points {(xi , fi )}, i = 1, . . . , n. These could be measurements from an experiment or obtained simply by evaluating a function at some points. You have seen that we can interpolate these points, i.e., either find a polynomial of degree ≤ (n − 1) which passes through all n points or we can use a continuous piecewise interpolant of the data which is usually a better approach. How, it might be the case that we know that these data points should lie on, for example, a line or a parabola, but due to experimental error they do not. So what we would like to do is find a line (or some other higher degree polynomial) which best represents the data. Of course, we need to make precise what we mean by a “best fit” of the data. As a concrete example suppose we have n points (x1 , f1 ), (x2 , f2 ), ··· (xn , fn )

and we expect them to lie on a straight line but due to experimental error, they don’t. We would like to draw a line and have the line be the best representation of the points. If n = 2 then the line will pass through both points and so the error is zero at each point. However, if we have more than two data points, then we can’t find a line that passes through the three points (unless they happen to be collinear) so we have to find a line which is a good approximation in some sense. Of course we need to define what we mean by a good representation. An obvious approach would be to create an error vector of length n and each component measures the difference (fi − y(xi )) where y = a1 x + a0 is the line we fit the data with. Then we can take a norm of this error vector and our goal would be to find the line which minimizes this error vector. Of course this problem is not clearly defined because we have not specified what norm to use. The linear least squares problem finds the line which minimizes this difference in the ℓ2 (Euclidean) norm. Example We want to fit a line p1 (x) = a0 + a1 x to the data points (1, 2.2), (.8,

You May Also Find These Documents Helpful

  • Powerful Essays

    Mat 540 Assignment 1

    • 1196 Words
    • 5 Pages

    This causes the shape of the box plot to be quite spread out with the median and quartiles close together. The female writing hand box plot is also the same length as the writing hand box plot; this is because the minimum and maximum data from the writing hand came from females. When putting the male and female writing hand box plots in comparison to each other, you can see that females have a much larger range than the males as discussed before. This causes the female box plot to have a lower, lower quartile and median and a higher upper quartile. The median for males is only slightly higher than the median for females, keeping in mind that males had data from an eleven (11) year old and females had data from a forty two (42) year old. This can cause the data to be slightly swayed as there were not equal age groups for both box…

    • 1196 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    d) What is the value of the coefficient of determination? Give an interpretation of this value in context.…

    • 909 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    Bio100 Appendix G

    • 1069 Words
    • 5 Pages

    Curve fitting involves producing a statistically derived best-fit line of data points on the graph; not a hand-drawn or estimated line connecting data points.…

    • 1069 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    stat 202 cheat sheet

    • 509 Words
    • 3 Pages

    r2 = fraction of variation in one variable that is explained by least-squares on the other variable…

    • 509 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Week 2 Math221 Notes

    • 397 Words
    • 2 Pages

    When a scatter plot's (x,y) points are all pretty close to the "line of best fit", then how would you describe the relationship between the points? A strong correlation exists when the plotted ordered pair points are close to the line of best fit. If the points line up exactly on the line of best fit, there is a perfect correlation. The correlation coefficient is a measure of the strength of the correlation.…

    • 397 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    If you use a linear function to make a graph, the connected points from the function would be a straight line, since they would be changing at a constant rate. This can also go the other way. If you have a graph with a straight line, you can find the rate of change, and form that into a linear function. (Desmos example of the y=12x graph: https://www.desmos.com/calculator/k4oqvmjwkf )…

    • 526 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Assignment 2 5

    • 571 Words
    • 7 Pages

    c) If these sharks are representative of the population of basking sharks, what would you predict is the mean speed for a filter-feeding basking shark that is 5.0 meters in length? Show any calculations below.…

    • 571 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Problems1

    • 605 Words
    • 2 Pages

    (1, 2.3), (2, 5), (2.4, 9), (2.5, 5), (3, 0) and (5, −1). Plot the cubic spline interpolating function on the same figure (and through the same points). You may use the Matlab file…

    • 605 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Ap Statistics

    • 668 Words
    • 3 Pages

    |T F |7. |The slopes of the least squares lines for predicting y from x, and the least squares line for predicting x |…

    • 668 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Once the points have been plotted, draw the function which will closely connect them by using the command “FitExp”. Type FitExp[followed by each ordered pair from the chart, separated by a comma. Finish the command with…

    • 561 Words
    • 3 Pages
    Good Essays
  • Good Essays

    4. Use your knowledge of the graphs of such functions to create a suitable equation that models the behavior of the data. Explain all steps you took to arrive at your equation.…

    • 1472 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Linear Modeling Project

    • 597 Words
    • 3 Pages

    The purpose of this experiment is to determine whether a player’s statistics in baseball are related to the player’s salary. The sample set was taken out of 30 players who were randomly selected from the top 100 fantasy baseball players in 2007. We displayed the information with a scatter plot, and then determined with a linear equation the line of best fit. Along with the line of best fit we are going to analyze the Pearson Correlation Coefficient. This value is represented as an “r-value”. The closer this number is to 1 the better the relationship between the two variables being compared. The three statistics that we compared to the player’s salaries are; Homeruns, RBI, (runs batted in), and batting Average.…

    • 597 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Polynomials

    • 507 Words
    • 3 Pages

    the fitted function. Do you expect the function to behave like any of the linear,…

    • 507 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Data in Housing Worksheet

    • 766 Words
    • 4 Pages

    You will have a quiz on 04th of Sep. at the beg. of the class and some questions similar to the…

    • 766 Words
    • 4 Pages
    Good Essays
  • Better Essays

    Regression Analysis

    • 1285 Words
    • 6 Pages

    (Anderson, Sweeney & Williams, 2000, pg. 450). To state the simple linear equation succinctly; yi = β0 + β1x + єi. The yi equals the predicted value of Y for observation. Generally, the values for the parameters are unknown and therefore will require us to estimate them with…

    • 1285 Words
    • 6 Pages
    Better Essays