18 - Comparative Analytics Flashcards
How to estimate (µ1 - µ2)
(Xbar1 - Xbar2)
t-statistic for the hypothesis test comparing 2 means
a standard error counter:
t = [(Xbar1 - Xbar2) - D0] / se(Xbar1 - Xbar2)
95% CI for (Xbar1 - Xbar2)
(Xbar1 - Xbar2) +/- 2se(Xbar1 - Xbar2)
SE(Xbar1 - Xbar2)
sqr(σ12/n1 + σ22/n2)
se(Xbar1 - Xbar2)
sqr(s12/n1 + s22/n2)
Assumptions for 2 sample t-test
- Independence, within and between groups
- variances of the 2 groups are allowed to be different
- Constant variance within each group
- Approximate normality of the raw data
- ^as long as you have decent sample sizes, the test doesn’t require this 3rd assumption due to the CLT
test statistic for two-sample proportions
[Estimate - Null Hyp Value] / [std. error (Estimate)]
95% CI for 2-sample proportion
Estimate +/- 2 std. error(Estimate)
100(1-a)% confidence interval for 2 sample proportions
*+/- za/2
Paired t-test
2 repeat observations on the same experimental unit
- *controls for unwanted variability between eusbjects**
- **a one-sample t-test on the pairwise differences***
di
dbar
sd
n
d0
di = pairwise differences = (xi - yi)
dbar = mean of differences
sd = SD of differences
n = number of pairs
d0 = value of the diff in means under the Null
test statistic for the paired t-test
t = (dbar - d0)/(sd/sqr(n)
100(1 − α)% confidence interval for paired t-test
dbar +/- ta/2, n-1 (sd/sqr(n))
ta/n, n-1 = 100(1-a/2) quantile of the t-distrib on (n-1) degrees of freedom
n = number of data pairs, not original data points
pooled t-test
another 2-sample t-test that assumes the variances are the same