这是一篇来自美国的关于统计数据需要带回家期中考试的R代码代写
Note: For all hypothesis testing questions, state your null and alternative, and give the name/formula of the testing statistic, its value, the p-value and your conclusion using α = 5%.
- (40 points) Seed germination study.
Researchers at the University of North Carolina–Greensboro investigated a model for the rate of seed germination (Journal of Experimental Botany, January 1993). In one experiment, alfalfa seeds were placed in a specially constructed germination chamber. Eleven hours later,the seeds were examined and the change in free energy (a measure of germination rate) recorded. The results for seeds germinated at seven difffferent temperatures are given in the data set SEEDGERM. The data were used to fifit a simple linear regression model, with y = change in free energy and x = temperature.
(a) (5 points) Graph the points in a scatterplot, locate any unusual data point (outlier) and remove it from the data set (e.g., using data = data[-4, ] if you want to remove the 4th row) for all subsequent analyses.
(b) (5 points) Write an order-one regression model for y using x, and specify the assumptions on the error.
(c) (5 points) Find all least squares estimates for all coeffiffifficients, and interpret these estimates.
(d) (5 points) Find the estimate for the variance of the error term,and specify the degree of freedom.
(e) (5 points) Find the 95% confifidence intervals for all coeffiffifficients,and the 95% simultaneous confifidence intervals for all coeffiffifficients using Bonferroni correction.
(f) (5 points) Give the ANOVA table (with SST, SSReg and SSE and their df).
(g) (5 points) Test if H0 : β1 = 0 vs H1 : β1 < 0 using a one-sided t test.
(h) (5 points) Predict the mean response at the temperature of 286.5 and give both the 95% confifidence intervals for the mean response and 95% prediction interval for a new observation at this temperature. Is such this prediction appropriate?
- (30 points) Extracting crude oil using carbon dioxide.
One of the most promising methods for extracting crude oil employs a carbon dioxide (CO2) flflooding technique. When flflooded into oil pockets, CO2 enhances oil recovery by displacing the crude oil. In a microscopic investigation of the CO2 flflooding process, flflow tubes were dipped into sample oil pockets containing a known amount of oil. The oil pockets were flflooded with CO2 and the percentage of oil displaced was recorded. The experiment was conducted at three difffferent flflow pressures and three difffferent dipping angles. The data
set is CRUDEOIL in the data.zip fifile.
(a) (5 points) Fit the complete second-order model relating percentage oil recovery y to pressure x1 and dipping angle x2,
E(y) = β0 + β1x1 + β2x2
1 + β3x2 + β4x2
2 + β5x1x2
and give the fifitted equation.
(b) (5 points) Run a global utility test for the model in the part (a),and give the ANOVA table (SST, SSReg and SSE and their df).
(c) (5 points) Run an F test to check if we should drop all second-order terms together from the model in part (a).
(d) Suppose we keep the interaction but omit other second-order terms,write the new model, and make
- (5 points) the ANOVA table with df in the order of x1, x2, x1x2,
- (5 points) the confifidence intervals for the mean of y for each pair of x1 and x2 in the data set iii. (5 points) the prediction intervals for single observations of y with each pair of x1 and x2 in the data set.
- (30 points) Factors that impact productivity of an assembly
line.
Consider a second experiment designed to investigate the effffect of arrival rate of product components, (x1) and temperature of the room (x2) on the length of time (y) required by individual workers to perform a product assembly operation. Each factor will be held at two levels:
arrival rate at .5 and 1.0 component per second and temperature at 70◦F and 80◦F. The data set is ASSEMBLY2 in the data.zip fifile.
(a) (5 points) Fit a main-effffect-only regression of y on x1 and x2.
(b) (5 points) Fit a full model including the interaction between x1 and x2, and test whether the interaction term is signifificantly difffferent from 0 or not. Be clear about the hypothesis you are testing.
(c) (10 points) Obtain the confifidence intervals for the mean of y for each pair of x1 and x2 in the data set and the prediction intervals for single observations of y for each pair of x1 and x2 in the data set.
(d) (10 points) What is the effffect of arrival rate (x1) of 1.0 compared to 0.5 when temperature (x2) is controlled at 70◦F and 80◦F respectively? What is the difffference in the effffect between 70◦F and 80◦F? Give a 95% confifidence interval for this difffference.
程序辅导定制C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB

本网站支持 Alipay WeChatPay PayPal等支付方式
E-mail: vipdue@outlook.com 微信号:vipnxx
如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。
