Find the least-squares regression line - find the least


Exercise 1:

A new profit-sharing plan was introduced at an automobile parts manufacturing plant last year. Both management and union representatives were interested in determining how a worker's years of experience influence his or her productivity gains. After the plan had been in effect for a while, the data shown below were collected:

Years of experience     Number of units

Years of

Number of units

experience (x)

daily (y)

15.1

110

7.0

105

18.6

115

23.7

127

11.5

98

16.4

103

6.3

87

15.4

108

19.9

112


For your convenience:

i=19 yi = 965, i=19 xi = 133.9, i=19 y2i = 104469, i=19 x2i = 2258.73, i=19 xiyi = 1480.12

a. Find the least-squares regression line (perform all calculations by hand).

b. Use R: Verify your answer to part (b). Submit the R results.

c. Use R: Construct the scatterplot of the number of units manufactured daily against the number of years of experience and add the fitted line .

d. Predict the number of units manufactured daily by an employee who has 10 years of experience on the assembly line.

Exercise 2

For the regression model yi = β0 + β1xi + ∈i show that

a. ∑ni=1 ei = 0,

b. ∑ni=1 eixi = 0,

c. ∑ni=1 eiy^i = 0,

Exercise 3:

Suppose in the model yi = β0 + β1xi + ∈i, where i = 1, ........, n, E(∈i) = 0, var(∈i) = σ2 the measurements xi were in inches and we would like to write the model in centimeters, say, zi. If one inch is equal to c centimeters (c is known), we can write the above model as follows yi = β0*+ β1*zi + ∈i.

a. Suppose β*0 and β^1 are the least squares estimates of β0 and β1 of the first model. Find the estimates of β0 and β* in terms of β*0 and β*1.

b. Show that the value of R2 remains the same for both models.

c. Find the variance of β*1^

Exercise 4:

Consider the regression model

yi = (β0 + β1x¯) + β1(xi - x¯) + ∈i

This model is called the centered version of the regression model yi = β0 + β1xi + ∈i that was discussed in class. If we let γ0 = β0 + β1x¯ we can rewrite the centered version as yi = γ0 + β1(xi - x¯) + si. Find the least squares estimates of γ0 and β1.

Exercise 5:

Consider the regression model yi = β0 + β1xi + ∈i. Show that Cov(Y¯ , β*1) = 0 where Y¯ is the sample mean of the y values, and β*1 is the estimate of β1.

Exercise 6:

Consider the regression model yi = β0 + β1xi + ∈i. Find cov(ei, ej ).

Exercise 7:

Suppose Yi = βxi + ∈i. In this equation X is non-random, β is a parameter (unknown), and ∈ ~ N (0, σ).

a. Find the mean of Y .

b. Find the variance of Y .

c. What distribution does Y follow?

d. Write down the likelihood function based on n observations of Y and x.

e. Find the maximum likelihood estimate of β. Denote it with β^.

f. Show that the estimate of part (e) is unbiased estimator of β.

g. Find the variance of this estimate.

Exercise 8:

Find the covariance between ei and ej . Also find the variance of ei.

Solution Preview :

Prepared by a verified Expert
Basic Statistics: Find the least-squares regression line - find the least
Reference No:- TGS01135839

Now Priced at $60 (50% Discount)

Recommended (97%)

Rated (4.9/5)