AP Statistics Curriculum 2007 ANOVA 1Way
From Socr
Line 39: | Line 39: | ||
<center>[[Image:SOCR_EBook_Dinov_ANOVA1_021708_Fig1.jpg|500px]]</center> | <center>[[Image:SOCR_EBook_Dinov_ANOVA1_021708_Fig1.jpg|500px]]</center> | ||
- | |||
Using ANOVA, the data are regarded as random samples from ''k'' populations. Suppose the population means of the samples are <math>\mu_1, \mu_2, \mu_3, \mu_4, \mu_5</math> and their population standard deviations are: <math>\sigma_1, \sigma_2, \sigma_3, \sigma_4, \sigma_5</math>. We have 5 group means to compare. Why not just carry out <math>{5\choose 2}=10</math> T-tests comparing all (independent) pairs of groups? | Using ANOVA, the data are regarded as random samples from ''k'' populations. Suppose the population means of the samples are <math>\mu_1, \mu_2, \mu_3, \mu_4, \mu_5</math> and their population standard deviations are: <math>\sigma_1, \sigma_2, \sigma_3, \sigma_4, \sigma_5</math>. We have 5 group means to compare. Why not just carry out <math>{5\choose 2}=10</math> T-tests comparing all (independent) pairs of groups? | ||
Line 86: | Line 85: | ||
: Mean variability within groups: <math>MSE(within) = {SSE(Between)\over df(Within)}.</math> This is a measure of variability within the groups. | : Mean variability within groups: <math>MSE(within) = {SSE(Between)\over df(Within)}.</math> This is a measure of variability within the groups. | ||
- | === | + | * Decomposition of Variance: Note that we have the following decomposition of the total variability in the data: |
- | + | ||
+ | : (Verbal): Deviation of an observation from the grand mean (Total variability) = Variation-Within + Variation_Between! | ||
+ | |||
+ | : (Mathematics): <math>y_{i,j} - \bar{y} = (y_{i,j} - \bar{y}_{i,.}) + (\bar{y}_{i,.} - \bar{y})</math>. Ans summing up over all observations we get the desired ANOVA decomposition. | ||
+ | |||
+ | : ('''ANOVA Decomposition'''): <math>\sum_{i=1}^{k}{\sum_{j=1}^{n_i}{(y_{i,j} - \bar{y})^2}} = \sum_{i=1}^{k}{\sum_{j=1}^{n_i}{(y_{i,j} - \bar{y}_{i,.})^2}} + \sum_{i=1}^{k}{n_i(\bar{y}_{i,.} - \bar{y})^2}}</math>. | ||
+ | |||
+ | * Interpretations: | ||
+ | |||
+ | : This means S''ST(total) = SSE(within) + SST(between)'' | ||
+ | |||
+ | : ''df(Total) = df(Within) + df(Between) = (n - k) + (k – 1) = n - 1'' | ||
+ | |||
+ | ===SOCR ANOVA Calculations=== | ||
+ | [http://socr.ucla.edu/htmls/SOCR_Analyses.html SOCR Analyses] provide the tools to compute the [[SOCR_EduMaterials_AnalysisActivities_ANOVA_1 |1-way ANOVA]]. For example, the ANOVA for the peas data above may be easily computed - see the image below: | ||
+ | |||
+ | <center>[[Image:SOCR_EBook_Dinov_ANOVA1_021708_Fig2.jpg|500px]]</center> | ||
- | |||
===Model Validation=== | ===Model Validation=== |
Revision as of 05:31, 19 February 2008
Contents |
General Advance-Placement (AP) Statistics Curriculum - One-Way Analysis of Variance (ANOVA)
In the two-sample inference chapter we considered the comparisons of two independent group means using the independent T-test. Now, we expand our inference methods to study and compare k independent samples. In this case, we will be decomposing the entire variation in the data into (independent/orthogonal) components - i.e., we'll be anzlyzing the variance of the data. Hence, this procedure called Analysis of Variance (ANOVA).
Motivational Example
Suppose 5 varieties of peas are currently being tested by a large agribusiness cooperative to determine which is best suited for production. A field was divided into 20 plots, with each variety of peas planted in four plots. The yields (in bushels of peas) produced from each plot are shown in two identical forms in the tables below.
Variety of Pea | ||||
A | B | C | D | E |
26.2 | 29.2 | 29.1 | 21.3 | 20.1 |
24.3 | 28.1 | 30.8 | 22.4 | 19.3 |
21.8 | 27.3 | 33.9 | 24.3 | 19.9 |
28.1 | 31.2 | 32.8 | 21.8 | 22.1 |
A | 26.2,24.3,21.8,28.1 |
B | 29.2,28.1,27.3,31.2 |
C | 29.1,30.8,33.9,32.8 |
D | 21.3,22.4,24.3,21.8 |
E | 20.1,19.3,19.9,22.1 |
Using the SOCR Charts (see SOCR Box-and-Whisker Plot Activity and Dot Plot Activity) we can generate plots that enable us to compare visually the yields of the 5 different types peas.
Using ANOVA, the data are regarded as random samples from k populations. Suppose the population means of the samples are μ_{1},μ_{2},μ_{3},μ_{4},μ_{5} and their population standard deviations are: σ_{1},σ_{2},σ_{3},σ_{4},σ_{5}. We have 5 group means to compare. Why not just carry out T-tests comparing all (independent) pairs of groups?
Repeated T-tests would mean testing hull hypotheses of the type . What is the problem with this approach? Suppose each test is carried out at α = 0.05, so a type I error is 5% for each test. Then, the overall risk of a type I error is larger than 0.05 and gets much larger as the number of groups (k) gets larger. To solve this problem, we need to make multiple comparisons with an overall error of α = 0.05 (or whichever level is specified initially).
The main idea behind ANOVA is that we need to know how much inherent variability there is in the data before we can judge whether there is a difference in the sample means - i.e., presence of a grouping effect. To make an inference about means we compare two types of variability:
- variability between sample means
- variability within each group
It is very important that we keep these two types of variability in mind as we work through the following formulas. It is our goal to come up with a numerical recipe that describes/computes each of these variabilities.
One-Way ANOVA Calculations
Let's make the following notation:
- y_{i,j} = the measurement from group i, observation-index j.
- k = number of groups
- n_{i} = number of observations in group i
- n = total number of observations,
- The group mean for group i is:
- The grand mean is:
To compute the difference between the means we will compare each group mean to the grand mean.
- SST (Sum Square due to Treatment):
First, we describe the variation between the groups means. For the independent T-test we described the difference between two group means as . In ANOVA we describe the difference between k means as sums of squares due to treatments (or between-group variance):
- SST(between) = . SST can be though of as the difference between each group mean and the grand mean.
- Degrees of Freedom: df (Between) = k – 1.
- Mean Smm Square due to Treatment (Between): c This measures variability between the sample means.
- SSE (Sum Square due to Error):
Second, we assess the within group variation. Recall that to measure the variability within a single sample we used: . In ANOVA to describe the combined variation within the k groups we use sums of squares due to error (within-group variation):
- SSE(within) = , which can be though of as the combination of variation within the k groups.
- SSE(within)degrees of freedom: df (Within) = n - k
- Mean variability within groups: This is a measure of variability within the groups.
- Decomposition of Variance: Note that we have the following decomposition of the total variability in the data:
- (Verbal): Deviation of an observation from the grand mean (Total variability) = Variation-Within + Variation_Between!
- (Mathematics): . Ans summing up over all observations we get the desired ANOVA decomposition.
- (ANOVA Decomposition): Failed to parse (syntax error): \sum_{i=1}^{k}{\sum_{j=1}^{n_i}{(y_{i,j} - \bar{y})^2}} = \sum_{i=1}^{k}{\sum_{j=1}^{n_i}{(y_{i,j} - \bar{y}_{i,.})^2}} + \sum_{i=1}^{k}{n_i(\bar{y}_{i,.} - \bar{y})^2}}
.
- Interpretations:
- This means SST(total) = SSE(within) + SST(between)
- df(Total) = df(Within) + df(Between) = (n - k) + (k – 1) = n - 1
SOCR ANOVA Calculations
SOCR Analyses provide the tools to compute the 1-way ANOVA. For example, the ANOVA for the peas data above may be easily computed - see the image below:
Model Validation
Checking/affirming underlying assumptions.
- TBD
Computational Resources: Internet-based SOCR Tools
- TBD
Examples
Computer simulations and real observed data.
- TBD
Hands-on activities
Step-by-step practice problems.
- TBD
References
- TBD
- SOCR Home page: http://www.socr.ucla.edu
Translate this page: