Presentation is loading. Please wait.

Presentation is loading. Please wait.

One-way Analysis of Variance (ANOVA) Note: In this version, we’ll use Excel to do all the calculations. If you wanted the tutorial that worked through.

Similar presentations


Presentation on theme: "One-way Analysis of Variance (ANOVA) Note: In this version, we’ll use Excel to do all the calculations. If you wanted the tutorial that worked through."— Presentation transcript:

1 One-way Analysis of Variance (ANOVA) Note: In this version, we’ll use Excel to do all the calculations. If you wanted the tutorial that worked through the calculations using only a calculator, go back to the menu of tutorials to select that one.

2 Once upon a time…. (that time was Fall 2012) At a community college far, far away… (actually, right here at Saddleback College, but “far, far away” sounds better)

3 An evil biology professor… That’s me!

4 …enslaved an entire class in a room full of fancy equipment and made them do work! This was called….

5

6 The students were trying to determine whether light conditions had a significant effect on the concentration of chlorophyll in geranium leaves. For their experiment, they had three groups of plants: Acknowledgement: This image was found on Google images. It originated at http://geranamine.org/

7 The first group was exposed to normal light conditions. Aaah…. I love sunshine!

8 The second group was kept in the dark for 72 hours. Yikes! I’ve always been afraid of the dark!

9 The third group was kept in the dark for 72 hours and then exposed to light for 4 hours.

10 Then the students measured the chlorophyll concentration in the leaves. Click on Dr. Huntley if you’d like to read about how they did this.

11 LIGHTDARKDARK + 4 hr. Light 56.0225.9746.73 63.4144.0550.67 60.3551.3145.33 64.3044.9555.64 58.9538.5847.36 69.0134.1243.42 69.5237.9451.95 56.0245.58 48.89 55.2627.2545.20 56.5344.4456.02 58.0749.0254.11 61.0544.9552.67

12 Perform an ANOVA test with α =.05 to determine whether there is a significant difference in the mean concentration of chlorophyll between the 3 groups. You may assume that chlorophyll concentration is approximately normally distributed. If you want to work through this problem on your own and just check your work when you’re done, go ahead. Click on the leaf to the right when you’re ready to check your answer.

13 Set-up Open a new Excel workbook and enter in the data. Your worksheet should look like this.

14 From the top menu, select “Data.”

15 When this menu opens up, select “Data Analysis” from the far right.

16 If “Data Analysis” doesn’t appear here, yell at your computer in frustration! Then install the Analysis Toolpak (you should have directions for doing so in one of your labs.)

17 The dialogue box to the left will open up. If “Anova: Single Factor” isn’t the first option, move this bar up until you see it.

18 The dialogue box to the right will open up. Click on “Anova: Single Factor” to highlight it and then click on “OK.”

19 The above dialogue box will appear. In the “Input Range” box, type in the cells that contain the headings (light, dark, and 4- hour) and the data, starting with the cell in the upper left- hand corner, followed by a colon (:), followed by the cell in the lower right-hand corner.

20 From the screen shot below, we see that for this example that is A1:C13. A1:C13

21 From the screen shot below, we see that for this example that is A1:C13. A1:C13 Note that you can also enter the input range by using the red arrow and highlighting the appropriate cells; feel free to use this option if you are familiar with it.

22 A1:C13 Make sure you’ve checked the bubble that says the data is sorted by columns.

23 A1:C13 Click on this box to indicate that the first row contains the headings (labels) for our columns; the actual data starts in row 2. When you click on the box, a check mark will appear.

24 A1:C13 Click on this box to indicate that the first row contains the headings (labels) for our columns; the actual data starts in row 2. When you click on the box, a check mark will appear. This is a neat feature of Excel; when we type in the headings and check this box, we’ll see these headings in the output generated by Excel. If we didn’t do this, the data would be described as “Column 1, Column 2,” and “Column 3” instead of “Light, Dark,” and “4-hour.”

25 A1:C13 Be sure the correct value of alpha appears in this box. If it doesn’t, click on the box and type in the correct value---for this problem,.05..05

26 A1:C13.05 Under “Output options,” select “Output Range” by clicking on the bubble next to it.

27 A1:C13.05 Pick an empty cell and enter it here. This is where your results will appear. I’ve chosen to enter E3. Again, if you prefer to use the red arrow and highlight the desired cell, that’s fine. E3

28 A1:C13.05 E3 Finally, click “OK.”

29 You’ll see the output boxes below, positioned to start in the cell you selected. Notice that it’s a little hard to read, since not all the information fits in the space allotted for it.

30 To fix this, click on “Home” at the top of your screen.

31 When this menu opens up, click on “Format” in the options above “Cells.”

32 Then select “Autofit Column Width” from the drop-down menu that opens up.

33 Now we can read everything in the output box.

34 Now we’re ready to perform our hypothesis test! We’ll work through the usual 6-step process, and refer to the output from Excel whenever we need a calculated value.

35 Step 1: State the hypotheses and identify the claim (if there is one) The Null hypothesis is always that there is no difference between the means. We can describe this in symbols. Remember to use μ, the symbol for population mean. Notice that I’m using a subscript of “l” for the light group, “d” for the dark group, and “4” for the 4-hour group.

36 The Alternate hypothesis is that there is a difference in the means. This includes the possibility a)that we have 3 different means, or b)that 2 means are the same and only 1 is different from the others. To allow for both possibilities, we state the Alternate hypothesis in words. Note that this problem was posed as a question so that there is no claim.

37 Step (*) Draw the F distribution and mark off the area in the right tail. Slow Down! There are 3 things we have to check first!

38 1. Chlorophyll concentration is approximately normally distributed. We were told to assume this. 2. We have independent samples.We can trust Dr. Huntley to set up a valid experiment. 3. The population variances are equal. This is a tough one, since we don’t know any of the population variances.

39 We’ll rely on the rule of thumb that it’s ok to proceed if the largest sample standard deviation (not the variance!) is no more than twice the smallest. Excel gives us the sample variances. To calculate the sample standard deviations, we need to take the square roots.

40 We’ll rely on the rule of thumb that it’s ok to proceed if the largest sample standard deviation (not the variance!) is no more than twice the smallest. LARGEST smallest The largest is less than twice the smallest.

41 So we can go ahead and draw the F distribution and mark off the area in the right tail..05 This test is always right-tailed (like me!) since if the means are different, that will make the F- value BIG.

42 Step 2 Mark off the critical value..05 The critical value is the boundary of the right tail; it goes here.

43 Find the critical value in the Excel output here.

44 Then add the critical value to our picture..05 3.284…

45 Step 3 Mark off the test value, F.

46 Find the test value in the Excel output here.

47 Then add the test value to our picture..05 3.284… 33.411… Since 33.411… > 3.284…, it goes to the right.

48 Step 4: Decide whether or not to reject the Null..05 3.284…33.411… The test value is in the critical region; reject the Null.

49 Step 5: Answer the question in plain English There is enough evidence to support a claim that light conditions affect chlorophyll concentration. Equivalently, there is enough evidence to reject a claim that light conditions don’t affect chlorophyll concentration.

50 I’m exhausted! Could we just see a quick summary of all that?

51 First we entered the data into Excel, selected the “Anova: Single Factor” option, and got the above output. Then we used this output to perform the usual 6 steps of hypothesis testing.

52 Each click will give you one step; step (*) is broken into two clicks. Step(*).05 3.284…Step 233.411…Step 3 Step 4 Reject the Null. Step 5 There is enough evidence to support a claim that light conditions affect chlorophyll concentration.

53 And there was much rejoicing.

54 Press escape to exit the slide show If you keep clicking through the slides, you’ll go to the explanation of the experiment.

55 Step 1. Cut two 5 mm disks from a geranium leaf. Acknowledgement: The image of the geranium leaf was found on Google images. It originated at davesgarden.com 5 ml 8 % acetone solution

56 Acknowledgement: This image was found on google images, which credits it with coming from flushgordon.info

57 Thanks Dr. Huntley!! Please don’t mention it. Especially not to my 3b students; I make them do the conversions themselves.

58 Click on the picture below to see the data the students collected. Top Secret Lab Results


Download ppt "One-way Analysis of Variance (ANOVA) Note: In this version, we’ll use Excel to do all the calculations. If you wanted the tutorial that worked through."

Similar presentations


Ads by Google