• Keine Ergebnisse gefunden

Experiment with different treatments

N/A
N/A
Protected

Academic year: 2022

Aktie "Experiment with different treatments"

Copied!
24
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Single Factor experiments

Topic:

Comparison of more than 2 groups Analysis of Variance

F test

Reason: Multiple t tests won’t do!

Learning Aims:

Understand model parametrization Carry out an anova

(2)

1 Comparison of more than 2 groups

2 Analysis of Variance

3 F test

1 / 23

(3)

1 Comparison of more than 2 groups

2 Analysis of Variance

3 F test

(4)

Potatoe scab

widespread disease causes economic loss

known factors: variety, soil condition

3 / 23

(5)

Experiment with different treatments

Compare 7 treatments for effectiveness in reducing scab Field with 32 plots, 100 potatoes are randomly sampled from each plot

For each potatoe the percentage of the surface area affected was recorded. Response variable is the average of the 100 percentages.

(6)

Field plan and data

2 1 6 4 6 7 5 3

9 12 18 10 24 17 30 16

1 5 4 3 5 1 1 6

10 7 4 10 21 24 29 12

2 7 3 1 3 7 2 4

9 7 18 30 18 16 16 4

5 1 7 6 1 4 1 2

9 18 17 19 32 5 26 4

5 / 23

(7)

1-Factor Design

Plots, subjects

Randomisation

.↓&

Group 1 Group 2 . . . Group 7

× × ×

× × ×

× × . . . ×

× × ×

× × ×

(8)

Complete Randomisation

1 number the plots 1, . . ., 32.

2 construct a vector with 8 replicates of 1 and 4 replicates of 2 to 7.

3 choose a random permutation and apply it to the vector in b).

in R:

> treatment=factor(c(rep(1,8),rep(2:7,each=4)))

> treatment

[1] 1 1 1 1 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 5 6 6 6 6 7 7 7 7

> sample(treatment)

[1] 6 4 3 4 7 3 1 2 3 5 5 6 1 7 1 1 2 1 3 2 1 5 7 4 2 1 7 6 6 1 5 4

7 / 23

(9)

Exploratory data analysis

Group y y¯

1 12 10 24 29 30 18 32 26 22.625

2 9 9 16 4 9.5

3 16 10 18 18 15.5

4 10 4 4 5 5.75

5 30 7 21 9 16.75

6 18 24 12 19 18.25

7 17 7 16 17 14.25

Question:How to plot the data?

Histogram? Bar chart? Boxplot? Pie chart? Scatter plot?

(10)

Graphical display

1 2 3 4 5 6 7

5 10 15 20 25 30

Treatment

y

1 2 3 4 5 6 7

5 10 15 20 25 30

Treatment

y

9 / 23

(11)

Why t tests don’t work?

Group 1 – Group 2 : H0:µ1 =µ2 Group 1 – Group 3 : H0:µ1 =µ3 Group 1 – Group 4 : H0:µ1 =µ4

Group 1 – Group 5 : H0:µ1 =µ5 Group 1 – Group 6 : H0:µ1 =µ6 Group 1 – Group 7 : H0:µ1 =µ7

. . .

α=5%,P( Test not significant|H0) =95%

7 groups, 21 independent tests:

P( none of the tests sign. |H0) =0.9521=0.34

P( at least one test sign. |H0) =0.66 1(1α)n more realistic: 0.42

(12)

Bonferroni correction

ChooseαT such that

1−(1−αT)n=αE =5%

T =α „testwise“,αE =α „experimentwise“)

Since 1−(1−αn)nα, the significance level for a single test has to be divided by the number of tests.

Example: 0.05/21=0.0024

Overcorrection, not very efficient.

11 / 23

(13)

1 Comparison of more than 2 groups

2 Analysis of Variance

3 F test

(14)

Terminology

Factor: categorical, explanatory variable Level: value of a factor

Ex 1: Factor= soil treatment, 7 levels 1 – 7.

=⇒ One-way analysis of variance

Ex 2: 3 varieties with 4 quantities of fertilizer

=⇒ Two-way analysis of variance Treatment: combination of factor levels

Plot, experimental unit: smallest unit to which a treatment can be applied

Ex: feeding (chicken, chicken-houses), dental medicine (families, people, teeth)

13 / 23

(15)

What is analysis of variance?

Comparison of more than 2 groups for more complex designs

global F test Idea:

total variability

in data =

source of

variation 1 +

source of

variation 2 + . . .

Comparison of components

total = treatment + experimental error

total = variability of plots with + variability of plots with

different treatments the same treatment

σ2+treatment effect σ2

(16)

Anova model

Model:

Yij =µ+Ai +ij, i=1, . . . ,I; j =1, . . . ,Ji Yij =response of the jth replicate in group i

µ=overall mean

Ai =ith treatment effect

ij =random error, N(0, σ2) iid.

15 / 23

(17)

Illustration of the model Illustration of the model

0.050.100.150.200.250.30

o o o

o o o ooo oooo oo ooo oo oooooo oo oo ooo oo ooo oo

µ+A1 µ+A2 µ+A3 µ+A4

– p. 14/??

(18)

Decomposition of the deviation of a response from the overall mean

yijy..= yi.y..

| {z }

+ yijyi.

| {z } deviation of deviation from the group mean the group mean

yi.= J1

i

P

jyij mean of groupi, y..= N1P

i

P

jyij overall mean,N=PJi.

17 / 23

(19)

Analysis of variance identity

X

i

X

j

(yijy..)2

| {z }

total variability

= X

i

X

j

(yi.y..)2

| {z }

variability between groups

+ X

i

X

j

(yijy i.)2

| {z }

variability within groups

total sum = treatment sum + residual sum of squares of squares of squares

SStot = SStreat + SSres

(20)

Total and Residual mean squares

Total mean square:

MStot =SStot/(N−1) Residual mean square:

MSres =SSres/(NI)

si2 = P

j(yijyi.)2

Ji −1 is an estimate of σ2 Pooled estimate of σ2:

P

i(Ji −1)Si2 P

i(Ji −1) = SSres

NI =MSres MSres = ˆσ2 =Var\(Yij), E(MSres) =σ2

19 / 23

(21)

Treatment mean square

Treatment mean square:

MStreat =SStreat/(I−1)

E(MStreat) =σ2+XJiA2i/(I−1)

dftot = dftreat+dfres N−1 = I−1 +NI

(22)

1 Comparison of more than 2 groups

2 Analysis of Variance

3 F test

21 / 23

(23)

F test

H0 : allAi =0

HA : at least one Ai 6=0

Sinceij ∼ N(0, σ2),F = MSMStreat

res has an F distribution with I−1 andNI degrees of freedom underH0.

one-sided test:

rejectH0 ifF >F95%,I−1,N−I

(24)

Anova table

Source SS df MS=SS/df F p

Treatment SStreat I−1 MStreat MStreat/MSres Residual SSres NI MSres

Total SStot N−1

in R:

> mod1=aov(y~treatment,data=scab)

> summary(mod1)

Df Sum Sq Mean Sq F value Pr(>F) treatment 6 972.34 162.06 3.608 0.0103 * Residuals 25 1122.88 44.92

F test is significant, there are significant treatment differences.

23 / 23

Referenzen

ÄHNLICHE DOKUMENTE

The aim of the present in vitro study was to evaluate the effect of TC on the water contact angle (WCA), surface roughness (SR), and microhardness (MH) of different CAD-CAM

The commonly used weak organic acids formic and acetic acid show high dissolving power values which underlines their importance in stimulation operations.. The acids in the table

Laboratory tests in a water bath with the ultrasonic resonator at atmospheric pressure showed that casing shields the formation from the ultrasonic waves and nearly no waves

If the requirements, according to the wording of a national VAT exemption regulation, of sec. 4 of the German VAT Act are not met, VAT exemptions will usually be denied by

To determine if microglia treated with teriflunomide influence differentiation or proliferation of OPC, cells were then incubated with a ratio of 1:3 of defined culture media

Influence of consecutive treatments with formic acid (long-term) and oxalic acid (spraying), car- ried out in autumn in different Swiss apiaries and harvested during the following

NUFACT - Daegu - 29.08.2019 Sebastian Dittmeier - Heidelberg University 18... o Extensive lab + test

regression) fall within the (in- and out-of-sample) confidence band of our linear regression for a time that corresponds to 2x the extent of memory?.. Our take-home messages