ANOVA Examples

Embed Size (px)

DESCRIPTION

Analysis of Variance

Citation preview

ttestUse the t-test to determine if two groups (two treatments) are different.Compare the blood pressure of patients taking a drug to that of patients not taking the drugTwo treatments: Drug vs. No drugDrugNo drug(cells A7:A13 and B7:B13)110130115145120145125150130150135170140175The p-value for the t-test tells us the probability that we are wrongif we conclude that there is a difference between the treatments.Expressed another way:The t-test tells us the probability that the observed differences between the two groupsis just due to random differences in sampling the two groups,in the absence of any effect of the drug.Using the Excel ttest workbook function:=TTEST(A7:A13,B7:B13,2,2)t-test p-value =Using Menu: Tools / DataAnalysis / t-test Two-sample assuming equal variancet-Test: Two-Sample Assuming Equal VariancesDrugNo drugMean125152.1428571429Variance116.6666666667240.4761904762Observations77Pooled Variance178.5714285714Hypothesized Mean Difference0df12t Stat-3.8P(T