Lecture 2

18
Lecture 2 Last: Sections 1.1-1.3 (Read these) Today: Quick Review of sections 1.4, 1.6, 1.7 and 1.9 with examples Will not cover section 1.5 Next Day: 2.1-2.3 Review of Regression and Analysis of Variance (ANOVA)… Saturday at 12:00 in Frieze B166

description

Lecture 2. Last: Sections 1.1-1.3 (Read these) Today: Quick Review of sections 1.4, 1.6, 1.7 and 1.9 with examples Will not cover section 1.5 Next Day: 2.1-2.3 Review of Regression and Analysis of Variance (ANOVA)… Saturday at 12:00 in Frieze B166. Experiment. - PowerPoint PPT Presentation

Transcript of Lecture 2

Page 1: Lecture 2

Lecture 2

Last: Sections 1.1-1.3 (Read these)

Today: Quick Review of sections 1.4, 1.6, 1.7 and 1.9 with examples

Will not cover section 1.5

Next Day: 2.1-2.3

Review of Regression and Analysis of Variance (ANOVA)… Saturday at 12:00 in Frieze B166

Page 2: Lecture 2

Experiment

In an experiment, the experimenter adjusts the settings of input factors to observe the impact on the system

Better understanding of how the factors impact the system allows the experimenter predict future values or optimize the process

Should select experiment treatments so that data is easy (as possible) to analyze

Page 3: Lecture 2

Linear Regression Model

Have N observations (y1 , y2 ,…, yN)

Have p covariates (regressors or explanatory variables)

Model:

Where the error terms are independent, identically distributed (iid) normal random variables

iippii xxy ...110

),0(~ 2 Ni

Page 4: Lecture 2

Linear Regression Model

In matrix notation,

Where,

Xy

NpN

p

p

xx

xx

xx

X

...1

.

.

.

...1

...1

1

221

111

Tp ),...,,( 10

TN ),...,( 1

Page 5: Lecture 2

The experiment is run in order to estimate the model

Least squares estimator of the regression coefficients:

Variance of least squares estimators:

yXXX TT 1ˆ

21)ˆ( XXV T

Page 6: Lecture 2

Notice, estimator and variance are functions of X

Does this indicate a strategy for choosing the design points or treatments?

Page 7: Lecture 2

How would one test to see if a particular explanatory variable is statistically significant?

What does this imply about our choice of treatments?

Page 8: Lecture 2

Residuals

Can verify some model assumptions by looking at residuals from model fit

Do this using plots

Page 9: Lecture 2

One-Way ANOVA

Example - Comparing battery lifetimes

Is there a difference in battery life by brand?

Four brands of batteries when used in a one of those 'radio controlled' cars for kids (Schwarz, 1995).

A selection of brands was bought, and used in random order. The total time the car was able to be used was recorded to the nearest 1/2 hour.

Here is the raw data:

Which battery brand would you buy? Why?

A B C D5.5 7.0 4.0 4.55.0 7.5 3.5 4.05.3 7.8 3.8 4.25.8 7.3 3.7 4.8

Page 10: Lecture 2

BRAND

TIM

E

8

7

6

5

4

3

Page 11: Lecture 2

Model:

In matrix form:

Interpretation:

Page 12: Lecture 2

Estimation of model parameters:

Page 13: Lecture 2

Constraints:

Page 14: Lecture 2

Assumptions:

This experiment is an example of a completely randomized experiment

Page 15: Lecture 2

ANOVA Table

ANOVA

TIME

30.637 3 10.212 104.074 .000

1.177 12 9.812E-02

31.814 15

Between Groups

Within Groups

Total

Sum ofSquares df

MeanSquare F Sig.

Page 16: Lecture 2

Hypothesis

Want to test:

Test statistic:

Page 17: Lecture 2

Multiple Comparisons

Which treatments are different?

Will use Tukey method:

Page 18: Lecture 2

General Procedure:

Design experiment (collect data) Plot data to gain intuition and check assumptions Fit model Residuals Test hypothesis Multiple comparisons (if necessary)