Comparing Two Groups Flashcards

1
Q

How do you compare two unrelated groups (apples and oranges)?

A

By comparing their z score (standard deviation)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What test do you use to compare your data against a theoretically predicted mean?

A

One sample t-test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In one-sample t-tests, what do these symbols mean?

A

X = The sample mean we actually observed

μ = true population mean if the null hypothesis is correct

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In one-sample t-tests, what does σ mean?

A

SEM (standard error of the mean)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the R code for one-sample t-tests?

A

t.test(x, y)

x = the variable containing raw data

y = true population mean, according to null hypothesis

alternative: oneSampleTTest(x, y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the symbol for the test statistic in a one-sample t-test?

A

t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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?

A

Average over lots of possible choices for the standard deviation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens to the sampling distribution of t as the sample size (N) grows larger?

A

Our estimate of the standard deviation is more precise and the t-distribution grows similar to normal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How are degrees of freedom calculated for a t-distribution?

A

N-1

N = number of data points

1 = number of constraints (i.e. the mean)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How is the t-tests t statistic calculated

A

(Sample mean we observed - true population mean if the null hypothesis is correct)

/ (divided by)

(The true population standard deviation / SEM)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Because the width of the t distribution depends on sample size, the size of the rejection region changes as ___ increases

A

N

(number of data points)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is Cohen’s d?

A

A simple measure of effect size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you interpret Cohen’s d (roughly)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you run Cohen’s d in R?

A

library(lsr)

>cohensD(x, y)

(x,y same as t-test)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do you write up the results of a one-sided t-test

A

e.g. (t(19) = 3.42, p = .003)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you write the null hypothesis and the alternative hypothesis for one-sided and two-sided one-sample t-tests?

A

Two-sided one-sample t-test:

H0: the true mean is (x)

H1: the true mean isn’t (x)

One-sided one sample t-test:

H0: the true mean is x or less (or more if the other way)

H1: the true mean is above x

17
Q

What is the R command for one-sided t-tests in R?

A

t.test(x, y, alternative=”greater”)

x = sample mean

y = theorised mean

alternative = ‘greater’ or ‘less’ depending on direction

18
Q

When do you use an independent samples t-test?

A

When comparing two groups

19
Q

How do you write the null hypothesis and alternative hypothesis for independent samples t-tests?

A
20
Q

What assumptions are made in an independent samples t-test?

A

population distributions are normal

observations are independently sampled

groups have the same standard deviation

(a.k.a. “homogeneity of variance”, “homoscedasticity”)

21
Q

What is the diagnostic test statistic for independent samples t-tests?

What is the sampling distribution?

A

test statistic: t

Sampling distribution: t, with N1+N2-2 degrees of freedom

22
Q

If the null hypothesis is true in an independent sample t-test, what should the sampling distribution of t be?

A

Close to 0

If different, substantially different from 0

23
Q

Student t-test assumes what about variance?

A

Equal variance

24
Q

What is the R command for a student t-test?

A

t.test( price ~ colour, wines, var.equal=TRUE )

just like independent samples but with added variance

25
Q

What is the R command for an independent samples t-test?

A

independentSamplesTTest( x ~ y, z )

x ~ y are groups comparing

z is data set

26
Q

The Welch t-test assumes what about variance?

A

Not equal variance

(much safer thing to do)

27
Q

How does the Welch t-test adjust for not having equal variance?

A

“Effective” degrees of freedom is adjusted to be a bit smaller, depending on just how unequal the sample standard deviations are (not necessarily a whole number)

28
Q

R command for Welch t-test?

A

t.test (price~colour, wines)

  • Price~colour = the formula that describes our test, to see if price is related to colour*
  • Wines = the dataset that the formula is taken from*
29
Q

What are the important test results to report for a Welch t-test?

A

The test statistic, degrees of freedom, p-value, effect size and confidence interval (for the difference between means)

30
Q

What is the command in R for a one-sided two-sample t-test?

A

t.test(price ~ colour, wines, alternative=”less”)

31
Q

What is a z-score?

A

They reflect the distance from the mean in terms of standard deviations

e.g. z-score of +2 means it is 2 standard deviations above the mean

32
Q

What does the test statistic (t) represent in t-tests?

A

Reflects the distance of your data from the mean

33
Q

Define: homoscedasticity

A

Same variance