b). Apply Response Surface Method in R, use first-order model (Write your R
code).
c). Is the first-order model fit the data? (Write down the P-value for Lack of fit
test, and answer the question at _ = 0.05).
d). Apply Response Surface Method in R, use second-order model (Write your R
code). Write down the stationary point (if exists).
x1 | x2 | Response |
-1 | -1 | 76.5 |
-1 | 1 | 77 |
1 | -1 | 78.1 |
1 | 1 | 79.5 |
0 | 0 | 79.9 |
0 | 0 | 80.3 |
0 | 0 | 80 |
0 | 0 | 79.7 |
0 | 0 | 79.8 |
1.414 | 0 | 78.4 |
-1.414 | 0 | 75.6 |
0 | 1.414 | 78.5 |
0 | -1.414 | 77.2 |
Hi
I think this will help you and make you understand the logic of it.
If not please feel free to comment.
I am happy to take your comment.
> library(rsm)
> x1=c(-1,-1,1,1,0,0,0,0,0,1.414,-1.414,0,0)
> x2=c(-1,1,-1,1,0,0,0,0,0,0,0,1.414,-1.414)
> response=c(76.5,77,78.1,79.5,79.9,80.3,80,79.7,79.8,78.4,75.6,78.5,77.2)
> d1=data.frame(x1,x2,response)
> d1
x1 x2 response
1 -1.000 -1.000 76.5
2 -1.000 1.000 77.0
3 1.000 -1.000 78.1
4 1.000 1.000 79.5
5 0.000 0.000 79.9
6 0.000 0.000 80.3
7 0.000 0.000 80.0
8 0.000 0.000 79.7
9 0.000 0.000 79.8
10 1.414 0.000 78.4
11 -1.414 0.000 75.6
12 0.000 1.414 78.5
13 0.000 -1.414 77.2
> CR.rs1 <- rsm (response ~ FO(x1,x2), data=d1)
> summary(CR.rs1)
Call:
rsm(formula = response ~ FO(x1, x2), data = d1)
Estimate Std. Error t value Pr(>|t|)
(Intercept) 78.50000 0.37450 209.6107 < 2e-16 ***
x1 1.00755 0.47744 2.1103 0.06101 .
x2 0.46735 0.47744 0.9789 0.35073
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Multiple R-squared: 0.3511, Adjusted R-squared: 0.2214
F-statistic: 2.706 on 2 and 10 DF, p-value: 0.115
Analysis of Variance Table
Response: response
Df Sum Sq Mean Sq F value Pr(>F)
FO(x1, x2) 2 9.8671 4.9335 2.7058 0.1150132
Residuals 10 18.2329 1.8233
Lack of fit 6 18.0209 3.0035 56.6695 0.0007986
Pure error 4 0.2120 0.0530
Direction of steepest ascent (at radius 1):
x1 x2
0.9071625 0.4207806
Corresponding increment in original units:
x1 x2
0.9071625 0.4207806
Here the P-Value is 0.115. A p-value higher than 0.05 (> 0.05) is not statistically significant and indicates weak evidence against the null hypothesis. This means we fail to reject the null hypothesis and cannot accept the alternative hypothesis
> CR.rs2 <- rsm (response ~ SO(x1,x2), data=d1)
> summary(CR.rs2)
Call:
rsm(formula = response ~ SO(x1, x2), data = d1)
Estimate Std. Error t value Pr(>|t|)
(Intercept) 79.939958 0.114754 696.6216 < 2.2e-16 ***
x1 1.007552 0.090728 11.1052 1.068e-05 ***
x2 0.467346 0.090728 5.1511 0.001322 **
x1:x2 0.225000 0.128299 1.7537 0.122924
x1^2 -1.382706 0.097308 -14.2095 2.031e-06 ***
x2^2 -0.957578 0.097308 -9.8407 2.378e-05 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Multiple R-squared: 0.9836, Adjusted R-squared: 0.9719
F-statistic: 83.96 on 5 and 7 DF, p-value: 4.302e-06
Analysis of Variance Table
Response: response
Df Sum Sq Mean Sq F value Pr(>F)
FO(x1, x2) 2 9.8671 4.9335 74.9299 1.877e-05
TWI(x1, x2) 1 0.2025 0.2025 3.0755 0.1229
PQ(x1, x2) 2 17.5695 8.7848 133.4214 2.670e-06
Residuals 7 0.4609 0.0658
Lack of fit 3 0.2489 0.0830 1.5654 0.3293
Pure error 4 0.2120 0.0530
Stationary point of response surface:
x1 x2
0.3879028 0.2895971
Eigenanalysis:
eigen() decomposition
$values
[1] -0.9296432 -1.4106413
$vectors
[,1] [,2]
x1 -0.2409913 -0.9705273
x2 -0.9705273 0.2409913
A chemical engineer is interested in determining the operating conditions that maximize the yield of a...
6.15. Parts manufactured by an injection molding process are subjected to a compressive strength test. Twenty samples of five parts each are collected, and the compressive strengths (in psi) are shown in Table 6E.11. (a) Establish 7 and R control charts for compressive strength using these data. Is the process in statis- tical control? (b) After establishing the control charts in part (a), 15 new subgroups were collected and the com- pressive strengths are shown in Table GE.12. Plot the...
Steps Open the Heart Rate Dataset in Excel Using the classification of variables from Unit 1 assignment as qualitative, quantitative discrete, or quantitative continuous, match each of the 3 variables to the most appropriate graph type. (For example, qualitative data can best be displayed with a pie chart or bar graph; continuous numerical data can best be displayed using a histogram) Use the graphing functions in Excel to create an appropriate graph of the data for each variable. Remember to...
6.16. Reconsider the data presented in Exercise 6.15. (a) Rework both parts (a) and (b) of Exercise 6.15 using the i and s charts. (b) Does the s chart detect the shift in process vari- ability more quickly than the R chart did origi- nally in part (b) of Exercise 6.15? 6.15. Parts manufactured by an injection molding process are subjected to a compressive strength test. Twenty samples of five parts each are collected, and the compressive strengths (in psi)...
Here is a data set (n = 117) that has been sorted. 56.8 69.8 71.2 73.7 75.5 77. 4 78.7 80.3 81. 8 84. 5 87 88.6 92.4 59.9 70.4 72.2 74 75.6 77.5 78.7 80.5 8 2 85 87.1 88.6 92.7 61.2 70.4 72.3 74.1 75.9 77.7 78.7 80.8 82.2 85.3 87.6 88.9 92.8 62.2 68.4 70.5 70.6 72.4 72.5 74.2 74.3 76.1 76.2 77.8 77. 8 78.9 79.1 | 81 | 81.1 82.2 82.2 86.1 86.5 87.8 87.9...
Estimate the infiltration for both summer and winter at design condition for a two story house in Birmingham Municipal airport. The house has effective leakage area of 100 in2 and volume of 14,000 ft', with no obstruction or local shielding. Then determine for both seasons the following Sensible heat Latent heat and total heat 2) a) b) (40) T-Mobile LTE 11:43 PM design conditions_chart.pdf design conditions-chart. pdf ▼ Meaning of acronyms DB: Dry bulb temperature, MCWB: Mean coincident wet bulb...
please answer the following using the r code provided . The data set below contains information about the gasoline mileage performance for 32 au- tomobiles. We are interested in developing a model to predict the miles per gallon () using related predictor variables. The variables in the study are Dependent variable: Miles per gallon (v) Independent variables: ri horsepower (ft-lb) ra: torque (ft-lb) r: horsepower+torque (ft-lb) rs: carburetor (barrels) (a) We first start by fitting a model using y and...
Matlab code: Task 5 As an engineer you are asked to calculate the approximate surface area of a lake in your local community. In order to do that, you decide to use a GPS to measure the x and y coordinates at various points around the lake. You pick a starting point and calibrate your GPS position at that point to be (0,0). You begin to walk around the lake collecting the following data below and eventually return to your...
I. In a regression analysis of banks, four types of banks were involved, namely, commercial banks, mutual banks, community banks and savings banks. In this study, Y is the previous year's profit (in millions of dollars), X, is the size of the bank (in millions of dollars) and type of bank = X, X, X, which are indicator variables as coded below. Type of Bank X X X , Commercial 1 0 Mutual Community Savings 0 0 0 The first-order...
A group of physics students collected data from a test of the projectile motion problem that was analyzed in a previous lab exercise (L5). In their test, the students varied the angle and initial velocity Vo at which the projectile was launched, and then measured the resulting time of flight (tright). Note that tright was the dependent variable, while and Vo were independent variables. The results are listed below. (degrees) Time of Flight (s) Initial Velocity V. (m/s) 15 20...
gold ($/oz) Y copper (cents/lb) X1 silver ($/oz) X2 Aluminum (cents/lb) X3 161.1 64.2 4.4 39.8 308 93.3 11.1 61 613 101.3 20.6 71.6 460 84.2 10.5 76 376 72.8 8 76 424 76.5 11.4 77.8 361 66.8 8.1 81 318 67 6.1 81 368 66.1 5.5 81 448 82.5 7 72.3 438 120.5 6.5 110.1 382.6 130.9 5.5 87.8 Statistics 11 Homework 9 Due Wednesday, Nov. 20 Metals.jmp lists the yearly average price of gold, copper, silver, and aluminum....