[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) =
[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
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 =](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F98bf22a5-dede-49bc-a067-b329e3bb80ae%2F6ab85413-bd0d-4710-a918-0278dd6f1648%2F3dvxtxu_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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](https://www.bartleby.com/isbn_cover_images/9781119256830/9781119256830_smallCoverImage.gif)
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
![Probability and Statistics for Engineering and th…](https://www.bartleby.com/isbn_cover_images/9781305251809/9781305251809_smallCoverImage.gif)
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
![Statistics for The Behavioral Sciences (MindTap C…](https://www.bartleby.com/isbn_cover_images/9781305504912/9781305504912_smallCoverImage.gif)
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
![MATLAB: An Introduction with Applications](https://www.bartleby.com/isbn_cover_images/9781119256830/9781119256830_smallCoverImage.gif)
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
![Probability and Statistics for Engineering and th…](https://www.bartleby.com/isbn_cover_images/9781305251809/9781305251809_smallCoverImage.gif)
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
![Statistics for The Behavioral Sciences (MindTap C…](https://www.bartleby.com/isbn_cover_images/9781305504912/9781305504912_smallCoverImage.gif)
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…](https://www.bartleby.com/isbn_cover_images/9780134683416/9780134683416_smallCoverImage.gif)
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
![The Basic Practice of Statistics](https://www.bartleby.com/isbn_cover_images/9781319042578/9781319042578_smallCoverImage.gif)
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](https://www.bartleby.com/isbn_cover_images/9781319013387/9781319013387_smallCoverImage.gif)
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman