Skip to main content
留学咨询

辅导案例-GU5205

By May 15, 2020No Comments

STAT GU5205 Homework 1 [100 pts]Due 8:40am Monday, September 23rdProblem 1 (1.22 KNN)Sixteen batches of the plastic were made, and from each batch one test item was molded.Each test item was randomly assigned to one of the four predetermined time levels, andthe hardness was measured after the assigned elapsed time. The results are shown below;X is the elapsed time in hours, and Y is hardness in Brinell units. Assume the first-orderregression model (1.1) is appropriate (model (2.1) in the notes).Data not displayedPerform the following tasks:i. Use R to obtain the estimated regression function.ii. Use R to create a scatter plot with the line of best fit. Make the line of best fit red.iii. Use R to calculate the best point estimate of σ2.iv. Use R to calculate the sample correlation coefficient and coefficient of determination.Problem 2Recall the sample residual is defined by ei = yi− yˆi, where yi is the ith response value and yˆiis its corresponding fitted value computed by least squares estimates yˆi = βˆ0 + βˆ1xi. Provethe following properties:i.n∑i=1xiei = 0ii.n∑i=1yˆiei = 01Problem 3Recall that the ith fitted value Yˆi can be expressed as a linear combination of the responsevalues, i.e.,Yˆi =∑j=1hijYj,wherehij =1n+(xi − x¯)(xj − x¯)Sxx,andSxx =∑i=1(xi − x¯)2.Prove the following properties of the hat-values hij.i. ∑j=1h2ij = hiiii. ∑j=1hijxj = xiProblem 4Consider the regression through the origin model given by(1) Yi = βxi + i i = 1, 2, . . . , n iiid∼ N(0, σ2).The estimated model at observed point (x, y) isyˆ = βˆx,where(2) βˆ =∑ni=1 xiyi∑ni=1 x2i.Complete the following tasksi. Show thatβˆ =∑ni=1 xiYi∑ni=1 x2iis an unbiased estimator of β.ii. Compute the standard error of estimator βˆ.iii. Identify the probability distribution of estimator βˆ.2

admin

Author admin

More posts by admin