Least squares approximation In its many guises, the least squares approximation arises in numerous areas of mathematics and statistics. Suppose you collect data for two variables (for example, height and shoe Size) in the form of pairs (x1, y1), (x2, y2), …, (xn, yn). The data may be plotted as a
70. Let the equation of the best-fit line be y = mx + b, where the slope m and the y-intercept b must be determined using the least squares condition. First assume that there are three data points (1, 2), (3, 5), and (4, 6). Show that the function of m and b that gives the sum of the squares of the vertical distances between the line and the three data points is
E(m, b) = ((m + b) – 2)2 + ((3m + b) – 5)2 + ((4m + b) – 6)2.
Find the critical points of E and find the values of m and b that minimize E. Graph the three data points and the best-fit line.
Want to see the full answer?
Check out a sample textbook solutionChapter 15 Solutions
Calculus: Early Transcendentals (3rd Edition)
Additional Math Textbook Solutions
Precalculus Enhanced with Graphing Utilities (7th Edition)
Calculus and Its Applications (11th Edition)
Calculus, Single Variable: Early Transcendentals (3rd Edition)
Single Variable Calculus: Early Transcendentals (2nd Edition) - Standalone book
- Elementary Linear Algebra (MindTap Course List)AlgebraISBN:9781305658004Author:Ron LarsonPublisher:Cengage LearningAlgebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage