Suppose we observe (Xi, Yi) ∼ f (x, y) independently for i = 1, ..., n. Let ̄X = ∑n i=1 Xi/n, and ̄Y = ∑n i=1 Yi/n. Let ̃Xi = Xi − ̄X, and ̃Yi = Yi − ̄Y . Let X be the vector formed by ( ̃Xi, i = 1, ..., n), and Y be the vector formed by ( ̃Yi, i = 1, ..., n). For the following scatterplots of (Xi, Yi), i = 1, ..., n, where each (Xi, Yi) is a point, (1) Write down the possible value of correlation for each scatterplot. You do not need to be precise. (2) Plot the vectors of X and Y for each scatterplot. (3) Plot the regression line ̃Y = β ̃X on each scatterplot. Let ei = ̃Yi − β ̃Xi, and let e be the vector formed by (ei, i = 1, ..., n). Suppose β is obtained by minimizing |e|2 = ∑n i=1 e2 i (the so-called least squares estimation, which geometrically amounts to a projection of Y on X). Plot βX and e for each vector plot in (2).

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
Question

Please no written by hand solution

Suppose we observe (Xi, Yi) ∼ f (x, y) independently for i = 1, ..., n. Let ̄X = ∑n i=1 Xi/n, and ̄Y = ∑n i=1 Yi/n. Let ̃Xi = Xi − ̄X, and ̃Yi = Yi − ̄Y . Let X be the vector formed by ( ̃Xi, i = 1, ..., n), and Y be the vector formed by ( ̃Yi, i = 1, ..., n). For the following scatterplots of (Xi, Yi), i = 1, ..., n, where each (Xi, Yi) is a point, (1) Write down the possible value of correlation for each scatterplot. You do not need to be precise. (2) Plot the vectors of X and Y for each scatterplot. (3) Plot the regression line ̃Y = β ̃X on each scatterplot. Let ei = ̃Yi − β ̃Xi, and let e be the vector formed by (ei, i = 1, ..., n). Suppose β is obtained by minimizing |e|2 = ∑n i=1 e2 i (the so-called least squares estimation, which geometrically amounts to a projection of Y on X). Plot βX and e for each vector plot in (2).

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 50 images

Blurred answer
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