Microsoft Word XXXXXXXXXXDec XXXXXXXXXX1129pm PSTAT 126 Final.docx XXXXXXXXXXPSTAT 126: Final 1) Obtaining data samples for a multiple regression problem from the dataset “PSTAT 126 Final Dataset 1”...

I just need it plain language and the R code. I can send some more samples



Microsoft Word - 2020 Dec 11 2020 1129pm PSTAT 126 Final.docx PSTAT 126: Final 1) Obtaining data samples for a multiple regression problem from the dataset “PSTAT 126 Final Dataset 1” (which will be sent in an email with that subject line), utilize any or all of the various regression model-fit assessment tools available in R that we have discussed in the course to help identify and validate a linear regression model that appears to best fit the given data. These will for example likely include, but may not be limited to, visual plots and/or graphs (for example, residual vs. fitted value plots), results of statistical hypothesis tests, numerical regression model accuracy measures, and linear model summary output reports, as well as any other applicable diagnostic tools that we have considered in the course. You should use the solutions to Problems 1 and 5 in Homework #3 as a general guide as to what types of information your answer could or should contain, but there may have been course material introduced after Homework #3 was assigned that may also be relevant here. You will likely need to try a number of different variable transformations on the response variable and/or predictor variables, using the diagnostic tools to decide which of the resulting regression models appear consistent with the data and which do not. You should clearly identify one or perhaps two candidate regression models that you believe are most consistent with the given data. Please try to include screenshots of the graphical plots you use as well as quote any relevant R code output results. You can or even should include the R code itself as well if you feel it helps to support your argument. Please explain your reasoning as to why the model(s) you propose may be the right one(s) in plain, natural language; you do not necessarily have to identify the “right” model to get a great deal of partial credit or even perhaps full credit. 2) In this problem work within the Simple Linear Regression (SLR) context: ?!=?" + ?#?! + ?!, ? = 1,… ,?, ?!~?(0, ?$), ? = 1,… ,?. (a) Show that that E[?3#] = ?#, where E[ ] denotes expectation. Please do not simply quote a theorem statement for this part of this problem or those below, but instead give a mathematical argument. (Also note that showing E[?3%] = ?% for ? = 0 is similar to the case ? = 1,and you only need to include in your answer the case for ? = 1.) (b) Show that Var( ?3#)= &! '"" , where ?(( = ∑ (?! − �̅�)$)!*# and Var( ) denotes the variance. (c) Show that Var( ?3")= ?$ : # ) + (̅ ! '"" ;, where �̅� = # ) ∑ ?!)!*# . (d) Are we able to conclude, directly from parts (a) and (b), that ?3# is normally- distributed with mean ?#and variance &! '"" ? Why or why not? 3) Agents at a call center get a score of 1 if a caller was satisfied with a particular call and a score of 0 if not. The company wants to see if it can accurately predict, including generating a probability estimate for the prediction, whether customers will be satisfied with a call based on relevant predictors involved such as, for example, length of the call, number of months of experience of the agent, time of day that the caller calls, etc. What is a natural regression method to use to build such a predictive model? Please first describe in detail (without any R or other software code) how you would algorithmically/mathematically set up a regression-based model to solve this problem, including how you could generate probability value estimates. You can assume there are M predictor variables. Then describe how you could set up and numerically solve such a problem in practice using R. For this part, do include the R code. You can use the built-in mtcars dataset, which does include 0/1-valued variables, as a stand-in dataset for this part of the problem. In your proposed model, use the “vs” variable -- a 0/1-valued variable -- as the response variable to serve as a stand-in for the score of a call-center call. Taking M=2, you should use “wt” and “disp” as the stand-in predictor variables. What estimates for the intercept and the coefficients of wt and disp do you get? What probability values for 0 and 1 do you get from this model when wt = 2.8, disp = 160? 4) Obtain data samples from the dataset “PSTAT 126 Final Dataset 2” (which will be sent in an email with that subject line) with a single predictor variable. Then follow the same instructions as for Problem 1 above of this final. 5) This last problem is broken up into the 5 following, lettered parts. Please address each one independently of the others. Answer the corresponding question(s), giving a short explanation (say, one or two sentences) with your answer. a) What is a difference – or differences -- between the AIC and BIC measures used in stepwise regression? Why use one as opposed to the other? b) Is the F-test with its associated p-value, as reported in the R linear model summary output report, a measure of genuine model accuracy? Why or why not? c) You have executed a regression with a number N of data samples, but you are concerned that the value ?3% may not be a close enough estimate for the corresponding value of ?%. What is one simple step you can take in this context to obtain a ?3% value that is likely closer to ?%? d) Are the residuals in a simple linear regression problem in general fully independent (independent in the standard sense of probability theory)? Why or why not? When or when not? e) Do polynomials often tend to be promising functions to use in a regression to approximate the mean function (or any function you may wish to approximate, for that matter)? What is/are a general mathematical condition or conditions on a function that implies/imply the function can be well-approximated or efficiently approximated by polynomials?
Dec 14, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here