Question

In: Math

Loss,x1,x2 372,45,162 206,55,233 175,61,232 154,66,231 136,71,231 112,71,237 55,81,224 45,86,219 221,53,203 166,60,189 164,64,210 113,68,210 82,79,196 32,81,180 228,56,200...

Loss,x1,x2
372,45,162
206,55,233
175,61,232
154,66,231
136,71,231
112,71,237
55,81,224
45,86,219
221,53,203
166,60,189
164,64,210
113,68,210
82,79,196
32,81,180
228,56,200
196,68,173
128,75,188
97,83,161
64,88,119
249,59,161
219,71,151
186,80,165
155,82,151
114,89,128
341,51,161
340,59,146
283,65,148
267,74,144
215,81,134
148,86,127

I am asking the R studio Code, pleas leave your code and comment here, thanks a lot!

Q1.The data file abrasion contains the results from a small scale study (Davies, O.L. and Goldsmith, P.L. Statistical methods in Research and Production, 1972),  of the relation between rubber's resistance to abrasion (Y) and rubber hardness (X1) and rubber tensile strength (X2).

The data set abrasion is in Course Content -> Data Sets AL -> Ch04

  • Import the data set into R.
  • Obtain the scatter plot matrix and the correlation matrix.You can do this together using the commands in the file pairs.r

Upload the results here (one file in .png or .pdf formats) - Remember to include a title.

Q2.

Run the regression model. Obtain the estimates of the coefficients (round answer to 4 decimal places, it the answer is 7.5e-08 enter 0)

Coefficient estimate se p-value
b0 __ __ __
b1 __ __ __
b2 __ __ __

Which variable is significant? __ (enter exactly on of the three options: x1, x2 or both)

Q3.

Enter here the coefficient of determination (adjusted R-squared). Round your answer to 4 decimal places.

Q4.

Enter here the estimate for σ, that is s or the residual standard error. Round your answer to 2 decimal places.

Q5.

Use your model to obtain the mean abrasion loss for rubber with hardness 71 an tensile strength 201. Round your answer to 2 decimal places.

Q6.

Use your model to obtain a 98% confidence interval for the mean abrasion loss for rubber with hardness 71 an tensile strength 201.

Enter here the Lower Bound for the confidence interval. Round your answer to 2 decimal places.

Q7.

After the scatter plots, the correlation between the variables, the summary of the model, R-squared and s, and the F-test, briefly comment on the adequacy of the model fit.

Solutions

Expert Solution

code

datar<-"Loss,x1,x2
372,45,162
206,55,233
175,61,232
154,66,231
136,71,231
112,71,237
55,81,224
45,86,219
221,53,203
166,60,189
164,64,210
113,68,210
82,79,196
32,81,180
228,56,200
196,68,173
128,75,188
97,83,161
64,88,119
249,59,161
219,71,151
186,80,165
155,82,151
114,89,128
341,51,161
340,59,146
283,65,148
267,74,144
215,81,134
148,86,127"

data <-read.table(textConnection(object=datar),
                  header=TRUE,
                  sep=",",
                  stringsAsFactors = FALSE)

                  stringsAsFactors = FALSE)
pairs(data)
cor(data)

> cor(data)
           Loss         x1         x2
Loss  1.0000000 -0.7377107 -0.2983939
x1   -0.7377107  1.0000000 -0.2992345
x2   -0.2983939 -0.2992345  1.0000000

2)

model = lm (Loss ~ . , data = data )
summary(model)

Call:
lm(formula = Loss ~ ., data = data)

Residuals:
    Min      1Q  Median      3Q     Max 
-79.385 -14.608   3.816  19.755  65.981 

Coefficients:
            Estimate Std. Error t value Pr(>|t|)    
(Intercept) 885.1611    61.7516  14.334 3.84e-14 ***
x1           -6.5708     0.5832 -11.267 1.03e-11 ***
x2           -1.3743     0.1943  -7.073 1.32e-07 ***
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 36.49 on 27 degrees of freedom
Multiple R-squared:  0.8402,    Adjusted R-squared:  0.8284 
F-statistic:    71 on 2 and 27 DF,  p-value: 1.767e-11

both are significant as their p-value < alpha

Q3

adjusted R^2 = 0.8284

Q4

Residual standard error: 36.49

Please rate

Please post rest parts again


Related Solutions

If the joint probability distribution of X1 and X2 is given by: f(X1, X2) = (X1*X2)/36...
If the joint probability distribution of X1 and X2 is given by: f(X1, X2) = (X1*X2)/36 for X1 = 1, 2, 3 and X2 = 1, 2, 3, find the joint probability distribution of X1*X2 and the joint probability distribution of X1/X2.
2.2.8. Suppose X1 and X2 have the joint pdf f(x1, x2) = " e−x1 e−x2 x1...
2.2.8. Suppose X1 and X2 have the joint pdf f(x1, x2) = " e−x1 e−x2 x1 > 0, x2 > 0 0 elsewhere . For constants w1 > 0 and w2 > 0, let W = w1X1 + w2X2. (a) Show that the pdf of W is fW (w) = " 1 w1− w2 (e−w/w1 − e−w/w2) w > 0 0 elsewhere . (b) Verify that fW (w) > 0 for w > 0. (c) Note that the pdf fW...
Bridgit’s utility function is U(x1, x2)= x1 + ln x2 x1 - stamps x2 - beer...
Bridgit’s utility function is U(x1, x2)= x1 + ln x2 x1 - stamps x2 - beer Bridgit’s budget p1 x1 + p2 x2 = m p1 – price of stamps p2 – price of beer m – Bridgit’s budget a) What is Bridgit’s demand for beer and stamps? b) Is it true that Bridgit would spend every dollar in additional income on stamps? c) What happens to demand when Bridgit’s income changes (i.e. find the income elasticity)? d) What happens...
Let T(x1, x2) = (-x1 + 3x2, x1 - x2) be a transformation. a) Show that...
Let T(x1, x2) = (-x1 + 3x2, x1 - x2) be a transformation. a) Show that T is invertible. b)Find T inverse.
Consider the following three consumption bundles (X1,X2)=(10,10) ; (X1,X2)=(15,10) ; (X1,X2)=(3000,8).
Answer each of the following statements True/False/Uncertain. Give a full explanation of your answer including graphs where appropriate. (When in doubt, always include a fully labeled graph.)A) Consider the following three consumption bundles (X1,X2)=(10,10) ; (X1,X2)=(15,10) ; (X1,X2)=(3000,8). Non-satiation implies that (15,10) is preferred to (10,10) but does not imply that (3000,8) is preferred to (10,10).B) It is not theoretically possible for two indifference curves to cross if the preference relations they are based on satisfy the assumptions of completeness,...
Lauren’s utility function is uL(x1,x2) = min{x1, x2} and Humphrey’s utility function is uH (x1, x2)...
Lauren’s utility function is uL(x1,x2) = min{x1, x2} and Humphrey’s utility function is uH (x1, x2) = ?(x1) + ?(x2). Their endowments are eL = (4,8) and eH = (2,0). a) Suppose Humphrey and Lauren are to simply just consume their given endowments. State the definition of Pareto efficiency. Is this a Pareto efficient allocation? As part of answering this question, can you find an alternative allocation of the goods that Pareto dominates the allocation where Humphrey and Lauren consume...
x1 + x2 - 2x4 = 2 x1 + x2 + 2x3 + 6x4 + x5...
x1 + x2 - 2x4 = 2 x1 + x2 + 2x3 + 6x4 + x5 = 8 −2x1 - 2x2 + x3 + 8x4 = −1 3x3 + 12x4 + 2x5 = 9 Let the linear system be given. a. Find the reduced row eelon form of the combined matrix (augmented matrix) of the system. b. Is the system consistent? If the system is consistent, find the overall solution of the system. c. Do all the solutions of the...
Let X1 and X2 have the joint pdf f(x1,x2) = 2 0<x1<x2<1; 0.  elsewhere (a) Find the...
Let X1 and X2 have the joint pdf f(x1,x2) = 2 0<x1<x2<1; 0.  elsewhere (a) Find the conditional densities (pdf) of X1|X2 = x2 and X2|X1 = x1. (b) Find the conditional expectation and variance of X1|X2 = x2 and X2|X1 = x1. (c) Compare the probabilities P(0 < X1 < 1/2|X2 = 3/4) and P(0 < X1 < 1/2). (d) Suppose that Y = E(X2|X1). Verify that E(Y ) = E(X2), and that var(Y ) ≤ var(X2).
Amy has utility function u (x1, x2) = min { 2*(x1)^2*x2, x1*(x2)^2 }. Derive Amy's demand...
Amy has utility function u (x1, x2) = min { 2*(x1)^2*x2, x1*(x2)^2 }. Derive Amy's demand function for x1 and x2. For what values (if any) of m, p1, and p2 are the goods gross complements or gross substitutes of each other?
Let the utility function be given by u(x1, x2) = √x1 + x2. Let m be...
Let the utility function be given by u(x1, x2) = √x1 + x2. Let m be the income of the consumer, P1 and P2 the prices of good 1 and good 2, respectively. To simplify, normalize the price of good 1, that is P1 = £1. (a) Write down the budget constraint and illustrate the set of feasible bundles using a figure. (b) Suppose that m = £100 and that P2 = £10. Find the optimal bundle for the consumer....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT