Suppose we’re interested in people’s happiness before and after discovering the #rstats Twitter community. We survey them get before and after happiness scores, using a happiness survey that goes from 0 to 100.
The data looks like this
Crucially, since the before measurement and the after measurement are on the same person, we can subtract the before measurement from the after measurement and do a one sample test on these differences.
One key question is: when should we use paired instead of two sample tests? Students typically struggle with this, and it’s worth spending some time thinking about this. In abstract terms, we should use paired tests when we have two observations on the same experimental unit and two sample tests when we have two observations on different experimental units.
The difficulty here is that it takes some time to become comfortable with experimental units. I recommend memorizing
Some examples where paired tests are appropriate:
Some examples where you should use a two sample test:
Also note that we
twosample tests, and when should we use
why pair - power pair if you can memorize and analogize