Docsity

Least Square - Applied Regression Analysis - Solved Assignment, Exercises of Mathematical Statistics

Toggle sidebar
bg1
Question #1:
(a) The least-square estimate of the regression line when systolic blood pressure
(Y) regressed on weight (X) is:
ˆ
Y= 69.10437 + 0.41942 X
(b) Based on the computer output on page 1, we have
Analysis of Variance Table
Source df Sum of squares Mean of squares F-value p-value
Model 1 2693.58122 2693.58122
35.74 <0.0001
Error 24 1808.57262 75.35719
Total 25 4502.15385
R2=SSR
SST
=2693.58122
4502.15385 = 0.5983
which means 59.83% of variation in Yis explained by the regression model.
(c) Since ˆ
β1= 0.41942 is positive, ris positive too. In addition, in a simple
linear regression model, we have r2=R2. Then
r2=R2= 0.5983 =⇒r= +√0.5983 = 0.77349
(The rvalue also can be found from the computer output on page 2.) Therefore,
there is a (strong) positive linear relationship between Xand Y.
(d) The test statistic for testing H0:ρ= 0 is
T S =r√n−2
√1−r2=0.77349√26 −2
p1−(0.77349)2= 5.98
Based on your text book, t0.0005,df=24 = 3.745. Therefore,
p−value = P(TS > 5.9) <0.0005.
1
Docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Least Square - Applied Regression Analysis - Solved Assignment and more Exercises Mathematical Statistics in PDF only on Docsity!

Question #1:

(a) The least-square estimate of the regression line when systolic blood pressure (Y ) regressed on weight (X) is:

Yˆ = 69.10437 + 0. 41942 X

(b) Based on the computer output on page 1, we have

Analysis of Variance Table

Source df Sum of squares Mean of squares F -value p-value Model 1 2693.58122 2693. 35.74 < 0. 0001 Error 24 1808.57262 75.

Total 25 4502.

R^2 =

SSR

SST

which means 59.83% of variation in Y is explained by the regression model.

(c) Since βˆ 1 = 0.41942 is positive, r is positive too. In addition, in a simple linear regression model, we have r^2 = R^2. Then

r^2 = R^2 = 0.5983 =⇒ r = +

(The r value also can be found from the computer output on page 2.) Therefore, there is a (strong) positive linear relationship between X and Y.

(d) The test statistic for testing H 0 : ρ = 0 is

T S =

r

n − 2 √ 1 − r^2

1 − (0.77349)^2

Based on your text book, t 0. 0005 ,df =24 = 3.745. Therefore,

p − value = P (T S > 5 .9) < 0. 0005.

Since p-value is less than α = 0.05, we reject H 0 : ρ = 0. Note that Based on the computer output on page 2,

r = 0. 77349 and p − value < 0. 0001.

In addition, in a simple linear regression, testing H 0 : ρ = 0 and testing H 0 : β 1 = 0 are equivalent. Based on the computer output on page 1, we have

T S =

βˆ 1 − 0 se( βˆ 1 )

and p-value = P (T S > 5 .98) < (0.0001)/2 = 0.00005, since alternative is one- sided.

(e) The test statistic for testing H 0 : ρ = 0.6 is

T S =

1 2 ln

1+r 1 −r

− 12 ln

1+0. 6 1 − 0. 6

√^1 n− 3

1 2 ln

1+0. 77349 1 − 0. 77349

− 12 ln

1+0. 6 1 − 0. 6

√^1 26 − 3

Therefore, based on the normal table in your text book, we have

p − value = 2P (T S > 1 .61) = 2(1 − 0 .95448) = 0. 09104

Since p-value > α = 0.05, we fail to reject H 0 : ρ = 0.6.

(f ) 1 − α = 0. 95 −→ α = 0.05. Then Z α 2 = 1.96. A 95% confidence interval for 1 2 ln

1+r 1 −r

is given by

ln

1 + r 1 − r

± Z α 2

n − 3

ln

or (0. 6203 , 1 .4376). Therefore, a 95% confidence interval for ρ is

( e2(0.6203)^ − 1 e2(0.6203)^ + 1

e2(1.4376)^ − 1 e2(1.4376)^ + 1

(g) The least-square estimate of the regression line when systolic blood pressure (Y ) regressed on weight (X) is: Yˆ = 0. 79164 X. The R^2 for no-intercept model is 0.9929 while the R^2 for the model with intercept is 0.5983. This implies that a no-intercept model is superior if we use R^2. Note that M SRes = 158.707 for the model without intercept while M SRes = 75.357 for the model with intercept. Then the model with intercept is better if we use M SRes. Note that, in the model with intercept, the p-value for testing H 0 : β 0 = 0 is less than 0.0001, and therefore, we reject H 0 : β 0 = 0. By looking at the plots of Y versus X we might choose the model with intercept.

Since p − value = 0. 0033 < α = 0. 05

we reject H 0 : β 1 = 0 versus H 1 : β 1 6 = 0.

(c) Based on the computer output on page 4, we have

T S =

βˆ 1 − 0 se( βˆ 1 )

Since p − value = 0. 0033 < α = 0. 05

we reject H 0 : β 1 = 0 versus H 1 : β 1 6 = 0.

(d) Note that

T 2 =

= (3.3861)^2 = 11.47 = F

and the p-values are exactly the same. Recall that the null hypothesis in part (b) and part (c) is H 0 : β 1 = 0, and therefore, the equality of p-values make sense intuitively since we are testing the same null hypothesis. In addition, under the null hypothesis, the test statistic in part (b) has a F - distribution with ν 1 = 1 and ν 2 = 18 degrees of freedom, and therefore, the p-value = P (T S > 11 .47) is calculated for the F -distribution. On the other hand, under the null hypothesis, the test statistic in part (c) has a t- distribution with ν = 18 degrees of freedom. Since t-distribution is a symmetric distribution, we have

p − value = P (T S > 3 .3861) + P (T S < − 3 .3861) = 2P (T S > 3 .3861)

and the p-value is calculated for the t-distribution. Moreover,

T S < − 3. 3861 or T S > 3. 3861 if and only if (T S)^2 > (3.3861)^2 = 11. 47

It can be shown that if random variable T has a t-distribution with 18 degrees of freedom, then T 2 has F distribution with ν 1 = 1 and ν 2 = 18 degrees of freedom. Therefore, the two p-values must be the same.

Question #4:

Recall that

Yˆi = βˆ 0 + βˆxxi =

Y¯ − βˆ 1 ¯x

  • βˆxxi = Y¯ + βˆ 1 (xi − x¯) → Yˆi − Y¯ = βˆ 1 (xi − x¯)

Then

SSR ==

∑^ n

i=

Yi − Y¯

∑^ n

i=

β^ ˆ 12 (xi − x¯)^2 = βˆ 12

∑^ n

i=

(xi − x¯)^2 = βˆ 12 Sxx

In addition, in simple linear regression model, we e have M SR = SSR/1 = SSR. Therefore

EM SR = ESSR = E

[

βˆ 12 Sxx

]

= SxxE

[

βˆ^21

]

= Sxx

[

Var( βˆ 1 ) +

E( βˆ 1

) 2 ]

= Sxx

[

σ^2 Sxx

  • (β 1 )^2

]

= σ^2 + β^21 Sxx

Since SSRes = SST − SSR, we have

ESSRes = E (SST − SSR) = ESST − ESSR

We already found ESSR, so we will find ESST. Note that

Var( Y¯ ) = Var

n

∑^ n

i=

Yi

n^2

∑^ n

i=

Var(Yi) =

n^2

∑^ n

i=

σ^2 =

σ^2 n

and

E( Y¯ ) = E

n

∑^ n

i=

Yi

n

∑^ n

i=

E(Yi) =

n

∑^ n

i=

μi = ¯μ

In addition,

ESST = E

[ (^) n ∑

i=

(Yi − Y¯ )^2

]

= E

[ (^) n ∑

i=

Y (^) i^2 − n Y¯ 2

]

∑^ n

i=

E(Y (^) i^2 ) − n E( Y¯ 2 )

∑^ n

i=

[

Var(Yi) + (EYi)^2

]

− n

[

Var( Y¯ ) +

E Y¯

) 2 ]

∑^ n

i=

[

σ^2 + μ^2 i

]

− n

[

σ^2 n

  • ¯μ^2

]

= n σ^2 +

∑^ n

i=

μ^2 i − σ^2 − nμ¯^2

= (n − 1) σ^2 +

[ (^) n ∑

i=

μ^2 i − nμ¯^2

]

= (n − 1) σ^2 +

∑^ n

i=

(μi − μ¯)^2

Moreover,

μ¯ =

n

∑^ n

i=

μi =

n

∑^ n

i=

(β 0 + β 1 xi) = β 0 + β 1

n

∑^ n

i=

xi

= β 0 + β 1 ¯x

So we have

∑^ n

i=

(μi − μ¯)^2 =

∑^ n

i=

[β 0 + β 1 xi − (β 0 + β 1 ¯x)]^2 = β 12

∑^ n

i=

(xi − ¯x)^2 = β^21 Sxx