Comparing Two Groups Flashcards
How do you compare two unrelated groups (apples and oranges)?
By comparing their z score (standard deviation)
What test do you use to compare your data against a theoretically predicted mean?
One sample t-test
In one-sample t-tests, what do these symbols mean?
X = The sample mean we actually observed
μ = true population mean if the null hypothesis is correct
In one-sample t-tests, what does σ mean?
SEM (standard error of the mean)
What is the R code for one-sample t-tests?
t.test(x, y)
x = the variable containing raw data
y = true population mean, according to null hypothesis
alternative: oneSampleTTest(x, y)
What is the symbol for the test statistic in a one-sample t-test?
t
Since one-sample t-tests are unsure about what the true standard deviation is, how do they obtain the overall sampling distribution for the t-statistic?
Average over lots of possible choices for the standard deviation.
What happens to the sampling distribution of t as the sample size (N) grows larger?
Our estimate of the standard deviation is more precise and the t-distribution grows similar to normal.
How are degrees of freedom calculated for a t-distribution?
N-1
N = number of data points
1 = number of constraints (i.e. the mean)
How is the t-tests t statistic calculated
(Sample mean we observed - true population mean if the null hypothesis is correct)
/ (divided by)
(The true population standard deviation / SEM)
Because the width of the t distribution depends on sample size, the size of the rejection region changes as ___ increases
N
(number of data points)
What is Cohen’s d?
A simple measure of effect size
How do you interpret Cohen’s d (roughly)
How do you run Cohen’s d in R?
library(lsr)
>cohensD(x, y)
(x,y same as t-test)
How do you write up the results of a one-sided t-test
e.g. (t(19) = 3.42, p = .003)