STAT 541: Two-Sample

# Statistics 541: Two-Sample

• Give back homework

## Two sample t-test

• Scientific contex

• Suppose we compare two groups
• one typically called X other typically called Y.
• Or scientifically: control and treatment group
• EG: Do people with ACL replacements do "better" than those without ACL replacement?
• interested in deciding which group is better/larger/higher mean.

• How can we compare two group?

• Also called simple regression
• Let indicator represent each group
• Run regression of outcome on indicator variable

• What if the two groups have different variances?

• Also called simple regression using the sandwich estimator
• Done automatically by all statistical packages

• What if we take two measurement on each person?

• Also called multiple regression
• First indicator called treatment (1=treatment, 0=control)
• Add one indicator for each person (called "row effect")
• Don't look at row effects, only at column effect
• Easy to represent in a table

## ANOVA

• Scientific context

• Suppose we compare more than two groups
• EG: Which surgery is best, ACL reconstruction, cadavorious replacement, none, Teflon replacment
• interested in deciding which group is best.

• How can we compare many groups?

• Also called multiple regression
• have one indicator for each group (no constant)
• Multiple comparisons come up

• What if the two groups have different variances?

• Easy with sandwich estimator

• What if we take several measurements on each person?