Design and Analysis of Agricultural...

38
Design and Analysis of Agricultural Experiments Andrew van Burgel Biometrician, DAFWA, Albany Agriculture Teacher/Trainer PD Conference 23 April 2012

Transcript of Design and Analysis of Agricultural...

Page 1: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Design and Analysis of Agricultural Experiments

Andrew van Burgel Biometrician, DAFWA, Albany

Agriculture Teacher/Trainer PD Conference

23 April 2012

Page 2: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Talk Outline

• Statistics & Variation

• Principles of Good Design

• Ideas for Student Experiments

• “GenStat for Teaching and Learning”

2 of 38

Page 3: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Coin Exercise

• those who have a coin, please toss it 10x and count the number of heads.

• lets record the number of heads

• graph results (histogram)

• calculate – mean [Excel=AVERAGE(...)]

– standard deviation [=STDEV(...)]

– standard error of mean [=STDEV(...)/SQRT(n)]

3 of 38

Page 4: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Average, SD, SE

• Average – estimate of the true unknown average

• Standard Deviation (SD) – measure of variation/spread in the data

• Standard Error (SE) of Average – measure of error/uncertainty in the average

4 of 38

Average +/- 1 SD Includes ~ 70% of the data

Average +/- 2*SD Includes ~ 95% of the data

Average +/- 2*SE ~ 95% confident includes true average (“Confidence Interval”)

Page 5: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Measurement Error

• A skilled Condition Score operator will often give a different (but close) score a 2nd time – Variation due to operator error

• Weigh scales also give different 2nd readings – Variation due to machine error

• Possible student exercise? – Weigh &/or CS sheep

– Repeat in different order.

5 of 38

Page 6: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Field Variation

kg/ha wheat yield (5m x 1.25m plots)

6 of 38

2 10864

25

20

15

5

12

10

<1500

4000 - 35003500 - 30003000 - 25002500 - 20002000 - 1500

>=4000

Page 7: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Agricultural Experiments

• Purpose: – to compare the effect of different treatments

• Problem/Challenge: – many sources of variability so results include

both:

Treatment Variability

Effects

7 of 38

Page 8: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

What is required?

• A design where variation is minimised and measureable

• An analysis method to objectively test if treatments are different

• One approach: – Randomised Block Design

– Analysis of Variance (ANOVA)

8 of 38

Page 9: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Randomised Block Design

Block1 Block2 Block3 Block4

• Treatments: – A = 0 Nitrogen

– B/C/D/E = 10/20/30/40 kg/ha Nitrogen

• Blocks: each treatment once in random order 9 of 38

E A D B B C A D C D B E D E C A A B E C

BLOCKING

RANDOMISATION

REPLICATION CONTROL

Page 10: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Why Replication?

• Most important ingredient for a good design

• Assume the following result (no replication)

• Difference could be the result of different soil or disease variation or human/machine error.

• Replication – gives confidence the result is real an not a once-off.

10 of 38

Control 2.1

Treated 2.4

Page 11: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Results from more Reps

Situation 1 Situation 2

Rep 1:

Rep 2:

Rep 3:

Conclusion: treatment has no conclusive

positive effect treatment effect

11 of 38

Control 2.1

Treated 2.4

Control 2.1

Treated 2.4

Control 2.5

Treated 2.3

Control 2.2

Treated 2.0

Control 2.2

Treated 2.6

Control 1.9

Treated 2.1

Page 12: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Poor Designs

• can give wrong conclusions:

– better one experiment done well, than several poorly

“Consulting a statistician after the experiment has been conducted, is like performing an autopsy. You may be able to say what the experiment died of.” (R.A. Fisher)

12 of 38

Real Treatment Effect

Conclusion from Experiment

Practical Consequence

Yes No Lost opportunity

No Yes Waste $ applying treatment

Page 13: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Repeat how many times?

• More reps required when there is: – Higher variability

– Smaller treatment differences

• 2 or 3 reps is often ok when there is a large number of treatments

13 of 38

Page 14: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Randomisation

• With no randomisation:

– Treatment A is always on the top edge and next to B which may give it an (dis)advantage.

• Randomisation is also insurance against unknown sources of variation

14 of 38

A A A A B B B B C C C C D D D D E E E E

Page 15: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Blocking

• Grouping of plots that are more similar

• Improves comparisons (done within blocks)

Exercise: Which of these is blocked better? – Assuming differences in environment left to right

Option 1 Option 2

15 of 38

E A D B C

B C A D E

E B

A C

D A

B D

C E

Page 16: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Controls

• Base treatment for comparisons – eg. standard practice; 0 rate

• Can be used to deal with spatial trends:

– Each treated plot can be compared to a

neighbouring control 16 of 38

D

C – Control

B A

C – Control

E B C – Control

E D

C – Control

A

Page 17: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Stratification

• Preferred method for allocating animals to treatments

• Eg. Stratification by weight to 5 treatments – weight all animals

– sort animal weights

– randomly allocate 5 heaviest, one to each of the treatments

– randomly allocate next 5, etc...

17 of 38

Page 18: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Factorial Treatments

• Assess 2+ treatments

• Include all combinations

Example “2x3 Factorial”

• 2 levels of Phosphorus (0, +P)

• 3 levels of Nitrogen (0, +N, +2N)

• 6 treatments (all combinations):

Nil, +P, +N, +P+N, +2N, +P+2N

18 of 38

Page 19: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Common Designs

1. Randomised Block Design (RBD): Rep 1 Rep 2 Rep 3

Common, simple design – generally works well

19 of 38

Nil +P+N +P+N +N +P+N +P

+N +2N +P Nil +N +2N

+P+2N +P +P+2N +2N Nil +P+2N

Page 20: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Common Designs

2. Split Block Design: Rep 1 Rep 2 Rep 3

+P +P +P

Practical benefits in applying one treatment (eg. P) together but comes at some statistical cost

20 of 38

Nil +P+N

+N +P+2N

+2N +P

+P+N +N

+P Nil

+P+2N +2N

+P+2N Nil

+P+N +N

+P +2N

Page 21: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Common Designs

3. “Latinised” RBD: Column Rep 1 Column Rep 2 Column Rep 3

Row Rep 1

Row Rep 2

Row Rep 3

Blocking in 2 directions improves design by better control of spatial variation.

21 of 38

Nil +P+N +P +N +2N +P+2N

+N +2N Nil +P+2N +P+N +P

+P+2N +P +P+N +2N Nil +N

Page 22: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Exercise

• How can this RBD be improved?

Rep 1

Rep 2

Rep 3

Rep 4

Latin Square 22 of 38

B D C A

C B D A

B C A D

B D C A

B D C A

C B A D

A C D B

D A B C

Page 23: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Student Exercise 1

• Plant Response to Nutrient Application – Treatments: 6 levels of Thrive: (or say Nitrogen)

– Wheat planted in pots with saucers • In case of over-watering, can use water in saucers at

the next watering to not lose nutrients.

– Randomised Block Design, 3 reps, 18 pots

– Layout/block according to environment • eg. Location in shade house can have an impact

23 of 38

Nil (Control) ¼ x Label Rate ½ x Label Rate

Label Rate 1½ x Label Rate 2 x Label Rate

Page 24: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Timing

• Week 1 – Design, prepare and seed pots

• Week 3 – Apply treatments

• Week 5 – Measurements (eg. dry matter cuts)

• Week 6 – Analyse results

24 of 38

Page 25: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Measurements

• Key Measure: – Dry matter cuts

• Other options: – No. Tillers

– Height

– Stem thickness

– Visual observations (eg. yellowing) • indicate different nutrient deficiencies

– Tissue tests (after sub-sampling) 25 of 38

Page 26: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Alternatives

• An outdoor plot experiment – Representative dry matter sampling

• Factorial treatments (Nitrogen & Phosphorus) – As well as the response to N and P, can assess if

the response of N is different when P is applied

• Different plant eg. vegetable or pasture

26 of 38

Page 27: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Student Exercise 2

• Plant response to Grazing Level – Treatments: use lawnmower to simulate animal

grazing down to different heights

– Randomised Block Design, 3 reps

– Layout/block according to environment

• Measurements – Dry matter cuts at beginning, middle and end

27 of 38

Page 28: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Timing

• Week 1 – layout trial and mow plots

• Week 1 – dry matter cuts

• Week 3 – dry matter cuts

• Week 5 – dry matter cuts

• Week 6 – analyse results

28 of 38

Page 29: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Exercises with Animals

• A couple of ideas:

– “Faecal Egg Count Reduction Test” measuring reduction in worms two weeks after drenching.

• Farmnote: http://www.agric.wa.gov.au/objtwr/imported_assets /content/pw/ah/par/fn2006_drenchresist_devans.pdf

– Weight gain of egg-laying verses meat chickens fed the same for the first 6 weeks of their lives.

• http://www.chicken.org.au/page.php?id=233

29 of 38

Page 30: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Analysis

• Key Question: Does the observed difference between treatments indicate a real difference, rather than just variability?

• Get some idea from mean and 2*SE of mean:

30 of 38

0

2

4

6

8

10

12

14

Control Treated

Yes

0

2

4

6

8

10

12

14

Control Treated

No

0

2

4

6

8

10

12

14

Control Treated

?

Page 31: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Analysis (cont)

• 2 treatments – Excel: TTEST(...)

• >2 treatment – Analysis of Variance (ANOVA) – ANOVA is an extension of T-test

– Excel – has very limited/clumsy ANOVA capability

– GenStat – great ANOVA capability (software used by the Department)

31 of 38

Page 32: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

GenStat

• “GenStat for Teaching and Learning” – free for schools & universities

– simple to receive and install – see: http://www.vsni.co.uk/software/teaching/genstat-teaching

• Run in “undergraduate”, not “school” mode – Change via Options in Tools Menu

32 of 38

Page 33: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Design in GenStat

• Randomised Block Design: – In “Stats” Menu select “Design” and then

“Generate a Standard Design”

– Enter the number of blocks and treatments (the default number showing for each is 4).

– Press Run

• Alternative methods: – Excel (using the =RAND() function)

– “picking numbers out of a hat”

33 of 38

Page 34: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Example Results

34 of 38

70.0

136.7

157.3172.7 174.0

155.0

020406080

100120140160180200

0 0.5 1 1.5 2

Dry

Mat

ter

Thrive Applied (Amount x Label Rate)

Page 35: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Analysis in GenStat

• Analysis of Randomised Block Design – Prepare data in Excel in 3 columns:

• Block! (Note: you need the !)

• Treatment! (Note: you need the !)

• Response (eg. dry matter) (Note: no ! here)

– Load Data into GenStat • In Data menu, select “Load” and then “Data file”

• Change “Files of type” to “Other Spreadsheet Files”

– In “Stats” Menu select “Analysis of Variance” and then “General”...

35 of 38

Page 36: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Analysis in GenStat (cont)

– Enter “Y-variate” (eg. Dry matter), “Treatment” and “Block”

– In Options select “LSD’s”

– Press Run

– In Window Menu, select “Output”

36 of 38

Tables of means Treatment 0.00 0.25 0.50 1.00 1.50 2.00 70.0 136.7 157.3 172.7 174.0 155.0 Least significant differences of means (5% level) l.s.d. 12.02

Page 37: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Analysis of Variance

• 2 key values:

37 of 38

Tests: Significant if: 1. p-value overall treatment

differences p<0.05

2. LSD if two treatments different

difference>LSD

Page 38: Design and Analysis of Agricultural Experimentselearning.uokerbala.edu.iq/pluginfile.php/17214/course/section/6980/المحاضرة... · Design and Analysis of Agricultural Experiments

Thank you

• Questions?

38 of 38