Observation (i) pH (x;) Average mercury level (y;) 0.15 1 3 4 5 6. 7 8 9 10 8.2 8.4 7.0 7.2 7.3 6.4 9.1 5.8 7.6 8.1 0.04 0.40 0.50 0.27 0.81 0.04 0.83 0.05 0.19 Suppose we fit the data with the following regression model: Y-α+ βα + εί, i= 1, . , 10, N(0, o?) are independent. We have the following quantities: = E1 xi = 7.51, 0.328, Σ 572.71, ΣΗ = 1.8922, ΣΗ πυ-22.218. where ɛ; ~ n Li=1 y = ÷Li=1Yi =

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
We are interested in using the pH of the lake water (which is easy to measure) to predict the
average mercury level in fish from the lake, which is hard to measure. Let x be the pH of the
lake water and Y be the average mercury level in fish from the lake. A sample of n = 10 lakes
yielded the following data:
Observation (i)
pH (x;)
Average mercury level (y;)
1
3
6
7
9
10
8.2
8.4
7.0
7.2
7.3
6.4
9.1
5.8
7.6
8.1
0.15
0.04
0.40
0.50
0.27
0.81
0.04
0.83
0.05
0.19
Suppose we fit the data with the following regression model:
Y; = a+ Bx; + Ei, i = 1, ... ,
10,
where ɛ; ~ N(0, o²) are independent. We have the following quantities: a = E1 ; = 7.51,
j = £i=1 Yi =
0.328, E1 x? = 572.71, 1 y? = 1.8922, -1 Tiyi = 22.218.
n
i=1
Some R output that may help.
> p1 <- c(0.01, 0.025, 0.05, 0.1, 0.9, 0.95, 0.975, 0.99)
> qt (p1, 8)
[1] -2.896 -2.306 -1.860 -1.397
> qt (p1, 9)
[1] -2.821 -2.262 -1.833 -1.383
1.397
1.860
2.306 2.896
1.383
1.833
2.262
2.821
(a) Find the ordinary least squares (OLS) estimates (denoted as â and B) of the regression
coefficients (a and ß).
Transcribed Image Text:We are interested in using the pH of the lake water (which is easy to measure) to predict the average mercury level in fish from the lake, which is hard to measure. Let x be the pH of the lake water and Y be the average mercury level in fish from the lake. A sample of n = 10 lakes yielded the following data: Observation (i) pH (x;) Average mercury level (y;) 1 3 6 7 9 10 8.2 8.4 7.0 7.2 7.3 6.4 9.1 5.8 7.6 8.1 0.15 0.04 0.40 0.50 0.27 0.81 0.04 0.83 0.05 0.19 Suppose we fit the data with the following regression model: Y; = a+ Bx; + Ei, i = 1, ... , 10, where ɛ; ~ N(0, o²) are independent. We have the following quantities: a = E1 ; = 7.51, j = £i=1 Yi = 0.328, E1 x? = 572.71, 1 y? = 1.8922, -1 Tiyi = 22.218. n i=1 Some R output that may help. > p1 <- c(0.01, 0.025, 0.05, 0.1, 0.9, 0.95, 0.975, 0.99) > qt (p1, 8) [1] -2.896 -2.306 -1.860 -1.397 > qt (p1, 9) [1] -2.821 -2.262 -1.833 -1.383 1.397 1.860 2.306 2.896 1.383 1.833 2.262 2.821 (a) Find the ordinary least squares (OLS) estimates (denoted as â and B) of the regression coefficients (a and ß).
Expert Solution
steps

Step by step

Solved in 2 steps

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