[Statistics] Suppose that we have n points (1, yı), -... (In: Yn) in the plane, and we wish to draw the most reasonable straight line through them. It is not likely that the line will be able to pass exactly through every point, but we would like it to be as "close as possible". Let y = a + ßx be the linear function that we use to go through these points, for a and 3 to be determined. There are various criteria we could use to determine what the "best" line is, but the most common is the least-squares line of best fit, also called the regression line. For this line, we seek to minimize the sum of the of the vertical deviations of the points from the line. (a) In everything that follows, remember that the r, and y, are the constants, and a and 3 are the variables. We seek the values of a and B (in terms of the r; and the y) which minimize f(a, B) =

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Topic Video
Question
4. [Statistics] Suppose that we have n points (21, y1), ... (In, Yn) in the plane, and we wish to draw the
most reasonable straight line through them. It is not likely that the line will be able to pass exactly through
every point, but we would like it to be as "close as possible". Let
y = a + Br
be the linear function that we use to go through these points, for a and 3 to be determined. There are
various criteria we could use to determine what the "best" line is, but the most common is the least-squares
line of best fit, also called the regression line. For this line, we seek to minimize the sum of the squares
of the vertical deviations of the points from the line.
(a) In everything that follows, remember that the r; and y4 are the constants, and a and 3 are the
variables. We seek the values of a and B (in terms of the r; and the y:) which minimize
f(a, 8) =
(b) which we do by solving the following system
af
da
af
(c) to get the following values of a and 3:
To keep the expressions from getting too messy, you can leave the expression for a in terms of 3 (so
that if you ever need to solve for a, just plug the whole B expression into it).
B =
a =
Transcribed Image Text:4. [Statistics] Suppose that we have n points (21, y1), ... (In, Yn) in the plane, and we wish to draw the most reasonable straight line through them. It is not likely that the line will be able to pass exactly through every point, but we would like it to be as "close as possible". Let y = a + Br be the linear function that we use to go through these points, for a and 3 to be determined. There are various criteria we could use to determine what the "best" line is, but the most common is the least-squares line of best fit, also called the regression line. For this line, we seek to minimize the sum of the squares of the vertical deviations of the points from the line. (a) In everything that follows, remember that the r; and y4 are the constants, and a and 3 are the variables. We seek the values of a and B (in terms of the r; and the y:) which minimize f(a, 8) = (b) which we do by solving the following system af da af (c) to get the following values of a and 3: To keep the expressions from getting too messy, you can leave the expression for a in terms of 3 (so that if you ever need to solve for a, just plug the whole B expression into it). B = a =
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Hypothesis Tests and Confidence Intervals for Means
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman