Testing methods Flashcards

1
Q

When is Cohen’s W used?

Also explain how the effect sizes are distributed

A

To test the effect size of a Chi squared goodness of fit test

0.10: small, 0.30: medium, 0.5: large

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

What are the assumptions of a Chi-squared Goodness of fit test?

A
  • The variable is nominal
  • Observations are independent
  • All groups have >= 5 observations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Chi squared goodness of fit test?

Explain: use, formula, degrees of freedom

A
  1. Tests whether a sample is from a certain distribution
  2. ∑((O - E)^2 / E)
  3. Categories - 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Chi squared test of association?

Explain: Use, formula, degrees of freedom

A
  1. Tests whether two categorical variables are independent
    2.∑((O - E)^2 / E)
    Creating expected: (row amount * column amount) / N
  2. (r-1) * (c-1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When is Cramer’s V used?

A

To calculate the effect size of a Chi squared test of independence

Effect size:
0 – 0.15: very weak, 0.15 – 0.20: weak, 0.20 – 0.25: moderate; 0.25 – 0.30:
moderately strong, 0.30 to 0.35: strong, 0.35 to 0.40: very strong

Formula: sqr root (test statistic / N(k-1))
k is min(r,c)

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

What are the assumptions of a Chi squared test of independence?

Also name the tests used in case of violation

A
  • Observations in each group are at least 5
    violation: Fisher exact test (fisher.test())
  • observations are independent
    violation: McNemar test (mcnemar.test())
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the problem with the z-test?

A

It assumes that the true population standard deviation is known, which is almost never the case.

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

When is Cohen’s D used?

A

To test the effect size of a t-test

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

What is the difference in assumptions between the Student t- test and Welch’s t-test?

A

Student t-test assumes homogeneity of variance (both variables have the same variance). This is almost never true. Welch does not have this assumption.

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

When is an independent samples t-test used?

A

To compare the means of two samples.

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

What is the formula for a Welch t-test?

A

mean1 -mean2 / Standard error, where SE = sqrt (sd1 / n1) / (sd2 / n2)

degrees of freedom: N-2

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

What are the assumptions of a one sample t-test?

A
  • The observations are normally distributed
  • The observations are independent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

When is a paired samples t-test used?

A

To test the means between the same subject (such as same participants at a different time)

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

How can normality be tested?

A
  • The Shapiro-Wilk test
  • Histogram
  • QQ plot
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are non-parametric alternatives for t-tests?

A

Wilcoxon tests
1. signed rank for one or paired samples
2. rank sum for independent samples

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

How can homogeneity of variance be tested?

A

Using Levene’s test.

17
Q

What is ANOVA? And when is it used?

A

Analysis of variance, used to test more than two means.

18
Q

How do you calculate ANOVA?

A

F-statistic = Mean square between groups (MSb) / Mean square within groups (MSw) (also called residuals)

Mean square = Sum of squares / degrees of freedom (DF)

DFb = groups - 1
DFw = N - G

19
Q

When is eta squared used?

Also give the formula.

A

Calculate the effect size of an ANOVA.
Formula: SSb / SStot

(How much of the total Sum of squares can be attributed to the model?)

20
Q

How do you find out which group is significant in an ANOVA?

And what is a big problem with this method? (also mention its solution)

A

Using a post hoc pairwise T-test
The problem: inflation of a type 1 error
Correction method: bonferroni method
Use TukeyHSD as post-hoc test

21
Q

What are the assumptions of an ANOVA?
And how are these tested?

A
  • Residuals are normally distributed checked by QQplot, histogram, Shapiro wilk
  • Homogeneity of variance checked by Levene’s test
  • Residuals are independent
22
Q

What are non-parametric alternatives to ANOVA?

A
  • Normality: Kruskal-Wallis rank sum test (kruskal.test())
  • Homogeneity: Welch one-way test (oneway.test())
23
Q

How is the between groups sum of squares calculated?

A

Squared difference between the group mean and true mean * the amount of observations in the group (N)

Do this for each group and add them together

24
Q

How is the within sum of squares calculated?

A

For each observation, take the squared difference between the value and the group mean, and sum these all up

25
Q

What is a crossed ANOVA design?

A

All combinations are represented.

26
Q

What is a balanced ANOVA design?

A

Equal number of observations in each group.

27
Q

What are marginal means?

A

The means of each row and column in an ANOVA table.

28
Q

How is Sum of Squares for factor A calculated in a factorial ANOVA?

A

Sq diff between mean of factor A and overall mean, * number of observations in factor A.

With a balanced design, this is N * groups of factor A.

29
Q

What are main effects?

A

The independent effects of independent variables
on the dependent variable.

30
Q

What is an interaction in an ANOVA?

A

The effect of one independent variable depends on the effect of another independent variable.

In a lineplot, an interaction can be seen when the two lines have different slopes.

31
Q

What are the degrees of freedom when testing for an interaction?

Both for the interaction itself, and the residuals.

A

Interaction: (r-1)(c-1)
Residuals: N - (R*C)

32
Q

How is a two-tailed test statistic transformed into a one-tailed?

A

statistic / 2

33
Q

What is the Yates continuity correction and when is it needed?

A

A correction method which is needed when a Chi square goodness of fit test only has one degree of freedom. To fix this, you subtract 0.5 from each observation