The Fitted Response Surface Graph the fitted surface and its - - PowerPoint PPT Presentation

the fitted response surface
SMART_READER_LITE
LIVE PREVIEW

The Fitted Response Surface Graph the fitted surface and its - - PowerPoint PPT Presentation

ST 516 Experimental Statistics for Engineers II The Fitted Response Surface Graph the fitted surface and its standard error: response.R 1 / 17 Response Surface Methods Analyzing a Second-Order Response Surface ST 516 Experimental Statistics


slide-1
SLIDE 1

ST 516 Experimental Statistics for Engineers II

The Fitted Response Surface

Graph the fitted surface and its standard error: response.R

1 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-2
SLIDE 2

ST 516 Experimental Statistics for Engineers II

Predicted Yield

Time Temperature

7 4 75 75 75.5 7 5 . 5 76 76 7 6 . 5 76.5 77 77 77.5 7 8 7 8 . 5 78.5 79 79.5 80

78 80 82 84 86 88 90 92 168 170 172 174 176 178 180 182

2 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-3
SLIDE 3

ST 516 Experimental Statistics for Engineers II

Time 80 85 90 Temperature 170 175 180 Yield 74 76 78 80

3 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-4
SLIDE 4

ST 516 Experimental Statistics for Engineers II

Standard Error

Time Temperature

0.12 . 1 4 0.16 0.18 0.2 0.22 0.22 0.22 0.22 0.24 . 2 4 0.24 . 2 4 . 2 6 0.26 . 2 6 0.26 0.28 0.28 . 3 . 3 0.32 0.32 0.32 0.32

78 80 82 84 86 88 90 92 168 170 172 174 176 178 180 182

4 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-5
SLIDE 5

ST 516 Experimental Statistics for Engineers II

Time 80 85 90 Temperature 170 175 180 Standard Error 0.15 0.20 0.25 0.30 0.35

5 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-6
SLIDE 6

ST 516 Experimental Statistics for Engineers II

Finding the Optimum Write the full quadratic model as ˆ y = ˆ β0 + x′b + x′Bx where x =      x1 x2 . . . xk      , b =      ˆ β1 ˆ β2 . . . ˆ βk      , and B =      ˆ β1,1

1 2 ˆ

β1,2 . . .

1 2 ˆ

β1,k

1 2 ˆ

β1,2 ˆ β2,2 . . .

1 2 ˆ

β2,k . . . . . . ... . . .

1 2 ˆ

β1,k

1 2 ˆ

β2,k . . . ˆ βk,k      . The the location of the stationary point (maximum, minimum, or saddle-point) is xs = −1 2B−1b.

6 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-7
SLIDE 7

ST 516 Experimental Statistics for Engineers II

In the example

l <- lm(y ~ x1 + x2 + I(x1^2) + I(x2^2) + x1:x2, t11d6) lc <- coefficients(l) b <- lc[2:3] B <- matrix(c(lc[4], lc[6]/2, lc[6]/2, lc[5]), 2, 2) cat("Stationary point:", -solve(B, b) / 2, "\n")

Output

Stationary point: 0.3892304 0.3058466

In engineering units: ξ1 = 85 + 5 ∗ 0.3892304 = 86.94615, ξ2 = 175 + 5 ∗ 0.3058466 = 176.5292.

7 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-8
SLIDE 8

ST 516 Experimental Statistics for Engineers II

We want to round these, but how much? 87 and 177? 85 and 175?

8 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-9
SLIDE 9

ST 516 Experimental Statistics for Engineers II

We can test the hypothesis that the stationary point is x(0): the general quadratic with a stationary point at x(0) is y = β∗

0 + β∗ 1,1

  • x1 − x(0)

1

2 + β∗

2,2

  • x2 − x(0)

2

2 + β∗

1,2

  • x1 − x(0)

1

x2 − x(0)

2

  • + ǫ;

fit this as a reduced model, and compare with the full model using the extra sum of squares; reduced model has 4 parameters versus 6 in the full model, so test statistic is F2,n−p. Test specific values, or graph the statistic for a grid of values.

9 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-10
SLIDE 10

ST 516 Experimental Statistics for Engineers II

Test whether 87, 177 is optimal

x10 <- (87 - 85) / 5 x20 <- (177 - 175) / 5 summary(aov(y ~ I((x1 - x10)^2) + I((x2 - x20)^2) + I((x1 - x10)*(x2 - x20)) + x1 + x2, t11d6))

Output

Df Sum Sq Mean Sq F value Pr(>F) I((x1 - x10)^2) 1 18.901 18.901 266.553 7.88e-07 *** I((x2 - x20)^2) 1 8.681 8.681 122.423 1.09e-05 *** I((x1 - x10) * (x2 - x20)) 1 0.526 0.526 7.415 0.0296 * x1 1 0.004 0.004 0.057 0.8186 x2 1 0.134 0.134 1.895 0.2110 Residuals 7 0.496 0.071

  • Signif. codes:

0 *** 0.001 ** 0.01 * 0.05 . 0.1 1

F = ((0.004 + 0.134)/2)/0.071 = 0.97, P ≈ .5, do not reject H0.

10 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-11
SLIDE 11

ST 516 Experimental Statistics for Engineers II

We can test the same hypothesis without fitting the reduced model: the model is ˆ y(x1, x2) = β0 + β1x1 + β2x2 + β1,1x2

1 + β1,2x1x2 + β2,2x2 2;

so ∂ˆ y ∂x1 = β1 + 2β1,1x1 + β1,2x2, ∂ˆ y ∂x2 = β2 + 2β2,2x2 + β1,2x1. So the hypothesis is equivalent to β1 + 2β1,1x(0)

1

+ β1,2x(0)

2

= 0, β2 + 2β2,2x(0)

2

+ β1,2x(0)

1

= 0.

11 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-12
SLIDE 12

ST 516 Experimental Statistics for Engineers II

That is, L

  • x(0)

β = 0, where L

  • x(0)

=

  • 1

2x(0)

1

x(0)

2

1 x(0)

1

2x(0)

2

  • and

β = (β0, β1, β2, β1,1, β1,2, β2,2)′ . Any hypothesis of this form can be tested as follows: SSL = (Lˆ β)′ L(X′X)−1L′−1 (Lˆ β) is the sum of squares associated with the hypothesis, MSL = SSL/2 is the mean square, and F = MSL/MSE is the test statistic.

12 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-13
SLIDE 13

ST 516 Experimental Statistics for Engineers II

R commands

betaHat <- coefficients(l) V <- summary(l)$cov.unscaled msE <- summary(l)$sigma^2 L <- rbind(c(0, 1, 0, 2 * x10, 0, x20), c(0, 0, 1, 0, 2 * x20, x10)) LbetaHat <- L %*% betaHat ssL <- sum(LbetaHat * solve(L %*% V %*% t(L), LbetaHat)) msL <- ssL / 2 F <- msL / msE

We can calculate F for a grid of x(0) values and graph it. The region where F < F2,n−p(α) is a 100(1 − α)% confidence region for the optimal settings.

13 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-14
SLIDE 14

ST 516 Experimental Statistics for Engineers II

F−Statistic

Time Temperature

20 4 60 8 100 120 140

78 80 82 84 86 88 90 92 168 170 172 174 176 178 180 182

4.737414

14 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-15
SLIDE 15

ST 516 Experimental Statistics for Engineers II

Time 80 85 90 Temperature 170 175 180 F−Statistic 50 100 150

15 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-16
SLIDE 16

ST 516 Experimental Statistics for Engineers II

F−Statistic Detail

Time Temperature

5 1 15 2 2 5 25 3 3 35 3 5 40

86 87 88 89 90 175 176 177 178 179 180

4.737414

16 / 17 Response Surface Methods Analyzing a Second-Order Response Surface

slide-17
SLIDE 17

ST 516 Experimental Statistics for Engineers II

We can round to 87 and either 176 or 177. We cannot round to 85 and 175.

17 / 17 Response Surface Methods Analyzing a Second-Order Response Surface