Chapter 6

Straight-Line Regression

[15/100%]
Show
LaTeX
Problem 6.1

Let F=β^12∑i(xi−xˉ)2/S2F = \widehat{\beta }_{1}^{2} \sum_{i}\left(x_{i}-\bar{x}\right)^{2} / S^{2}, the FF-statistic for testing H:β1=0H: \beta_{1} = 0 for a straight line. Using the notation of Section 6.1.5, prove that

x~0−xˉ=FF+(n−2)(x^0−xˉ). \tilde{x}_{0}-\bar{x} = \frac{F}{F+(n-2)}\left(\widehat{x}_{0}-\bar{x}\right) .
?
Problem 6.2

Derive an FF-statistic for testing the hypothesis that two straight lines intersect at the point (a,b)(a, b).

?
Problem 6.3

Obtain an estimate and a confidence interval for the horizontal distance between two parallel lines.

?
Problem 6.4

Show how to transform the following equation into a straight line so that α\alpha and β\beta can be estimated by least squares:

y=αβαsin⁡2θ+βcos⁡2θ. y = \frac{\alpha \beta }{\alpha \sin ^{2} \theta +\beta \cos ^{2} \theta } .
?
Problem 6a.1

In fitting the straight line Yi=β0+β1xi+εi(i=1,2,…,n)Y_{i} = \beta_{0}+\beta_{1} x_{i}+\varepsilon_{i}(i = 1,2, \ldots , n), prove that Yˉ\bar{Y} and β^1\widehat{\beta }_{1} are uncorrelated. If Y^0=β^0+β^1x0\widehat{Y}_{0} = \widehat{\beta }_{0}+\widehat{\beta }_{1} x_{0}, deduce that

Var⁡[Y^0]=σ2{1n+(x0−xˉ)2∑(xi−xˉ)2} \operatorname {Var}\left[\widehat{Y}_{0}\right] = \sigma ^{2}\left\{ \frac{1}{n}+\frac{\left(x_{0}-\bar{x}\right)^{2}}{\sum \left(x_{i}-\bar{x}\right)^{2}}\right\}
?
Problem 6a.2

Using the notation of Section 6.1.2 , prove that ϕ^=−β^0/β^1\widehat{\phi } = -\widehat{\beta }_{0} / \widehat{\beta }_{1} is the maximum likelihood estimate of ϕ\phi.

?
Problem 6a.3

Given a general linear regression model, show how to find a confidence interval for the ratio a1Tβ/a2Tβ\mathbf{a}_{1}^{T} \mathbf{\beta } / \mathbf{a}_{2}^{T} \mathbf{\beta } of two linear parametric functions.

?
Problem 6a.4

Using the notation of Section 6.1.5, show that when xˉ=0\bar{x} = 0,

x^0−x~0x^0=1−r2 \frac{\widehat{x}_{0}-\tilde{x}_{0}}{\widehat{x}_{0}} = 1-r^{2}

where rr is the correlation coefficient of the pairs (xi,Yi)\left(x_{i}, Y_{i}\right).

?
Problem 6b.1

Let Y1,Y2,…,YnY_{1}, Y_{2}, \ldots , Y_{n} be independent random variables such that for i=1,2,…,ni = 1,2, \ldots , n,

E[Yi∣X=xi]=β1xi \mathbb {E}\left[Y_{i} \mid X = x_{i}\right] = \beta _{1} x_{i}

and

Var⁡[Yi∣X=xi]=σ2wi−1(wi>0) \operatorname {Var}\left[Y_{i} \mid X = x_{i}\right] = \sigma ^{2} w_{i}^{-1} \quad \left(w_{i} > 0\right)
?
(a)

If the conditional distribution of YY given xx is the Type III (scaled gamma) distribution,

f(y∣x)=1axpΓ(p)yp−1exp⁡(−y/ax)0≤y<∞,p>0 f(y \mid x) = \frac{1}{a_{x}^{p} \Gamma (p)} y^{p-1} \exp \left(-y / a_{x}\right) \quad 0 \leq y < \infty , \quad p > 0

where αx\alpha_{x} a function of xx, and wi−1=xi2w_{i}^{-1} = x_{i}^{2}, prove that the maximum likeithood estimate of β1\beta_{1} is also the weighted least squares estimate.

(b)

If the conditional distribution of YY given xx is Poisson, and wi−1=xiw_{i}^{-1} = x_{i}, show that the maximum likelihood estimate is just the weighted least squares estimate.

Problem 6b.2

Given the model Yi=β1xi+εi(i=1,2,…,n)Y_{i} = \beta_{1} x_{i}+\varepsilon_{i}(i = 1,2, \ldots , n), where the εi\varepsilon_{i} are independently distributed as N(0,σ2wi−1),wi>0N\left(0, \sigma^{2} w_{i}^{-1}\right), w_{i} > 0, show how to predict x0x_{0} for a given value Y0Y_{0} of YY. Describe briefly a method for constructing a confidence interval for x0x_{0}.

?
Problem 6b.3

Given the regression line

Yi=β0+β1xi+εi(i=1,2,…,n) Y_{i} = \beta _{0}+\beta _{1} x_{i}+\varepsilon _{i} \quad (i = 1,2, \ldots , n)

where the εi\varepsilon_{i} are independent with E[εi]=0\mathbb {E}\left[\varepsilon_{i}\right] = 0 and Var⁡[εi]=σ2xi2\operatorname {Var}\left[\varepsilon_{i}\right] = \sigma^{2} x_{i}^{2}, show that weighted least squares estimation is equivalent to ordinary least squares estimation for the model

Yixi=β1+β0xi+δi. \frac{Y_{i}}{x_{i}} = \beta _{1}+\frac{\beta _{0}}{x_{i}}+\delta _{i} .
?
Problem 6c.1

Using the notation of Example 6.2, prove that the least squares estimates of αk\alpha_{k} and the common slope β\beta (under the null hypothesis of parallelism) are given by

α~k=Yˉk−β~xˉk \tilde{\alpha }_{k} = \bar{Y}_{k}-\tilde{\beta } \bar{x}_{k}

and

β~=∑k∑i(Yki−Yˉk.)(xki−xˉk.)∑k∑i(xki−xˉk.)2 \tilde{\beta } = \frac{\sum _{k} \sum _{i}\left(Y_{k i}-\bar{Y}_{k .}\right)\left(x_{k i}-\bar{x}_{k .}\right)}{\sum _{k} \sum _{i}\left(x_{k i}-\bar{x}_{k .}\right)^{2}}

Prove that

RSSH3=∑k∑i(Yki−Yˉk⋅)2−β~2∑k∑i(xki−xˉk⋅)2. \mathrm{RSS}_{H_{3}} = \sum _{k} \sum _{i}\left(Y_{k i}-\bar{Y}_{k} \cdot \right)^{2}-\tilde{\beta }^{2} \sum _{k} \sum _{i}\left(x_{k i}-\bar{x}_{k} \cdot \right)^{2} .

If β^k\widehat{\beta }_{k} is the least squares estimate of βk\beta_{k} under the general model, prove that

RSSH1−RSS=∑kβ^k2∑i(xki−xˉk.)2−β~2∑k∑i(xki−xˉk.)2 \mathrm{RSS}_{H_{1}}-\mathrm{RSS} = \sum _{k} \widehat{\beta }_{k}^{2} \sum _{i}\left(x_{k i}-\bar{x}_{k} .\right)^{2}-\tilde{\beta }^{2} \sum _{k} \sum _{i}\left(x_{k i}-\bar{x}_{k} .\right)^{2}
?
Problem 6c.2

In Example 6.3 find the least squares estimates of α\alpha and β\beta when H2H_{2} is true.

?
Problem 6c.3

In Example 6.4 derive the following results.

?
(a)

Show that the least squares estimates of α\alpha and βk\beta_{k}, under H3H_{3}, are given by

(N−x1.2∑ix1i2−⋯−xK.2∑ixKi2)αT=(Y..−x1⋅⋅∑iY1ix1i∑ix1i2−⋯−xK⋅⋅∑iYKixKi∑ixKi2) \begin{aligned} & \left(N-\frac{x_{1.}^{2}}{\sum _{i} x_{1 i}^{2}}-\cdots -\frac{x_{K .}^{2}}{\sum _{i} x_{K i}^{2}}\right) \alpha ^{T} \\ & \quad \quad = \left(Y . .-\frac{x_{1 \cdot } \cdot \sum _{i} Y_{1 i} x_{1 i}}{\sum _{i} x_{1 i}^{2}}-\cdots -\frac{x_{K \cdot } \cdot \sum _{i} Y_{K i} x_{K i}}{\sum _{i} x_{K i}^{2}}\right) \end{aligned}

and

βkT=∑i(Yki−αT)xki∑ixki2(k=1,2,…,K) \beta _{k}^{T} = \frac{\sum _{i}\left(Y_{k i}-\alpha ^{T}\right) x_{k i}}{\sum _{i} x_{k i}^{2}} \quad (k = 1,2, \ldots , K)
(b)

When the values of xx are the same for each line so that nk=nn_{k} = n and xki=xi(k=1,2,…,K)x_{k i} = x_{i}(k = 1,2, \ldots , K), prove that

αT=Yˉ..−xˉ∑∑Yki(xi−xˉ)K∑(xi−xˉ)2=Yˉ..−xˉ∑kβ^kK,Var⁡[αT]=σ2∑xi2nK∑(xi−xˉ)2 \begin{gathered} \alpha ^{T} = \bar{Y} . .-\frac{\bar{x} \sum \sum Y_{k i}\left(x_{i}-\bar{x}\right)}{K \sum \left(x_{i}-\bar{x}\right)^{2}} = \bar{Y} . .-\bar{x} \frac{\sum _{k} \widehat{\beta }_{k}}{K}, \\ \operatorname {Var}\left[\alpha ^{T}\right] = \frac{\sigma ^{2} \sum x_{i}^{2}}{n K \sum \left(x_{i}-\bar{x}\right)^{2}} \end{gathered}

and

RSS⁡H3=∑k∑iYki2−(∑∑Ykixi)2∑xi2−(αT)2Kn∑(xi−xˉ)2∑xi2 \operatorname {RSS}_{H_{3}} = \sum _{k} \sum _{i} Y_{k i}^{2}-\frac{\left(\sum \sum Y_{k i} x_{i}\right)^{2}}{\sum x_{i}^{2}}-\left(\alpha ^{T}\right)^{2} K n \frac{\sum \left(x_{i}-\bar{x}\right)^{2}}{\sum x_{i}^{2}}

Hint: Yˉ\bar{Y}. and β^k\widehat{\beta }_{k} are uncorrelated.

Problem 6c.4

The examples in Section 6.4 are all special cases of the following problem.

Consider the model

G:E[Y]=X1β1+X2β2=Xβ G: \mathbb {E}\left[Y\right] = \mathbf{X}_{1} \mathbf{\beta }_{1}+\mathbf{X}_{2} \mathbf{\beta }_{2} = \mathbf{X} \mathbf{\beta }

where Xi\mathbf{X}_{i} is n×pin \times p_{i} of rank pi(i=1,2)p_{i}(i = 1,2). We want to test the hypothesis HH that all the elements of β2\mathbf{\beta }_{\mathbf{2}} are equal (to β\beta, i.e., β2=1p2β\mathbf{\beta }_{2} = \mathbf{1}_{p_{2}} \beta).

?
(a)

If β~\tilde{\beta } is the least squares estimate of β\beta under HH, show that

β~=1p2TX2T(In−P1)Y1p2TX2T(In−P1)X21p2 \tilde{\beta } = \frac{\mathbf{1}_{p_{2}}^{T} \mathbf{X}_{2}^{T}\left(\mathbf{I}_{n}-\mathbf{P}_{1}\right) \mathbf{Y}}{\mathbf{1}_{p_{2}}^{T} \mathbf{X}_{2}^{T}\left(\mathbf{I}_{n}-\mathbf{P}_{1}\right) \mathbf{X}_{2} \mathbf{1}_{p_{2}}}

where P1=X1(X1TX1)−1X1T\mathbf{P}_{1} = \mathbf{X}_{1}\left(\mathbf{X}_{1}^{T} \mathbf{X}_{1}\right)^{-1} \mathbf{X}_{1}^{T}.

(b)

If β^2\widehat{\mathbf{\beta }}_{\mathbf{2}} is the least squares estimate of β2\mathbf{\beta }_{\mathbf{2}} under GG, prove that

RSSH−RSS⁡G=(β^2−β~1p2)TX2T(In−P1)Y \mathrm{RSS}_{H}-\operatorname {RSS}_{G} = \left(\widehat{\mathbf{\beta }}_{2}-\tilde{\beta } \mathbf{1}_{p_{2}}\right)^{T} \mathbf{X}_{2}^{T}\left(\mathbf{I}_{n}-\mathbf{P}_{1}\right) \mathbf{Y}
(c)

If Y^G\widehat{\mathbf{Y}}_{G} is the fitted regression for GG, prove that

Y^G=P1Y+(In−P1)X2β^2 \widehat{\mathbf{Y}}_{G} = \mathbf{P}_{1} \mathbf{Y}+\left(\mathbf{I}_{n}-\mathbf{P}_{1}\right) \mathbf{X}_{2} \widehat{\mathbf{\beta }}_{2}

and

RSS⁡H−RSS⁡G=(1p2β~−β^2)TX2T(In−P1)X2(1p2β~−β^2) \operatorname {RSS}_{H}-\operatorname {RSS}_{G} = \left(\mathbf{1}_{p_{2}} \tilde{\beta }-\widehat{\mathbf{\beta }}_{2}\right)^{T} \mathbf{X}_{2}^{T}\left(\mathbf{I}_{n}-\mathbf{P}_{1}\right) \mathbf{X}_{2}\left(\mathbf{1}_{p_{2}} \tilde{\beta }-\widehat{\mathbf{\beta }}_{2}\right)

Hint: For (a) and (b) apply Theorem 3.6 with Z\mathbf{Z} equal to X2\mathbf{X}_{2} and 1p2\mathbf{1}_{p_{2}}, respectively. For part (c) note that RSS⁡G−RSS⁡H=∥Y^G−Y^H∥2\operatorname {RSS}_{G}-\operatorname {RSS}_{H} = \left\| \widehat{\mathbf{Y}}_{G}-\widehat{\mathbf{Y}}_{H}\right\|^{2}.