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¡) 0.15 1 3 4 6 7 8 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, i-1,. . . , 10 , where ɛ; ~ N(0, o²) are independent. We have the following quantities: = J= Σ% = 0.328, ΣΗ= 572.71 , ΣΗ 1.8922 , Σ" T;J; 22.218. Η ΣΗ = 7.51, n n i=1 i=1 Some R output that may help. > p1 <- c(0.01, 0.025, 0.05, 0.1, o.9, 0.95, 0.975, 0.99) > qt (p1, 8) [1] -2.896 -2.306 -1.860 -1.397 1.397 1.860 2.306 2.896 > qt (p1, 9) [1] -2.821 -2.262 -1.833 -1.383 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 3).

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;) 0.15
1
3
4
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; = a + Bx; + Ei, i = 1, ..., 10,
where ɛi ~
N (0, o?) are independent. We have the following quantities: a = E=1 ¤i = 7.51,
j = E1 Yi = 0.328, 1 x = 572.71, 1 Y? = 1.8922, D-1 *iYi = 22.218.
i=1
ri=1
Some R output that may help.
> р1 <- с(0.01, 0.025, 0.05, 0.1, о.9, 0.95, 0.975, 0.99)
> qt (p1, 8)
[1] -2.896 -2.306 -1.860 -1.397
1.397
1.860
2.306
2.896
> qt (p1, 9)
[1] -2.821 -2.262 -1.833 -1.383
1.383
1.833
2.262
2.821
(a) Find the ordinary least squares (OLS) estimates (denoted as â and ß) of the regression
coefficients (a and B).
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;) 0.15 1 3 4 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; = a + Bx; + Ei, i = 1, ..., 10, where ɛi ~ N (0, o?) are independent. We have the following quantities: a = E=1 ¤i = 7.51, j = E1 Yi = 0.328, 1 x = 572.71, 1 Y? = 1.8922, D-1 *iYi = 22.218. i=1 ri=1 Some R output that may help. > р1 <- с(0.01, 0.025, 0.05, 0.1, о.9, 0.95, 0.975, 0.99) > qt (p1, 8) [1] -2.896 -2.306 -1.860 -1.397 1.397 1.860 2.306 2.896 > qt (p1, 9) [1] -2.821 -2.262 -1.833 -1.383 1.383 1.833 2.262 2.821 (a) Find the ordinary least squares (OLS) estimates (denoted as â and ß) of the regression coefficients (a and B).
Expert Solution
Step 1

The following data is given:

Observations 1 2 3 4 5 6 7 8 9 10
pH (x) 8.2 8.4 7.0 7.2 7.3 6.4 9.1 5.8 7.6 8.1
Mercury level (y) 0.15 0.04 0.40 0.50 0.27 0.81 0.04 0.83 0.05 0.19

 where,

x¯ = 7.51, y¯ = 0.328, xi2=572.71, yi2=1.8922, xi yi=22.218.

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