Stats Final Notes
Stats Final Notes
• Degree of Freedom (DF) = Degrees of freedom refers to the maximum number of logically independent values,
which are values that have the freedom to vary, in the data sample. Calculated by counting up the number of
distinct quantities that are used to describe your data and subtracting all of the constraints that they must satisfy.
• Non parametric test Xsquare =
• Input : numeric.
• Compares the means for two groups.
• Assumptions
• Two group have same sd.
• Normality (qqplot, Shapiro wilk test)
• Independence
• Homogeneity of variance (levene test)
Independent sample t test (Welch)
• Input : numeric.
• Compares the means for two groups.
• Assumptions
• Normality (qqplot, Shapiro wilk test)
• Independence
• Homogeneity of variance (levene test)
Paired sample T test
• The paired sample t-test, sometimes called the dependent sample t-test, is a
statistical procedure used to determine whether the mean difference between
two sets of observations is zero. In a paired sample t-test, each subject or entity
is measured twice, resulting in pairs of observations.
T Test violation (Wilcoxon rank sum test)
• Cohen himself defined it primarily in the context of an independent samples t-test, specifically the
Student test. In that context, a natural way of defining the effect size is to divide the difference between
the means by an estimate of the standard deviation. There are several different version in common usage,
the cohensD() function uses the method argument to distinguish between them. I’ll use d to refer to any
statistic that you calculate from the sample, and use δ to refer to a theoretical population effect
One sided t-test
• the difference with a t-test is that there are more than 2 groups. In ANOVA the H0 and H1 are
• Within-group sum of squares: how different is each individual person from their own group mean, where is the group
mean
• Between-group sum of squares: variation that captures only the differences between groups. This is difference between
group means and grand mean
Effect size
• There’s a few different ways you could measure the effect size in an ANOVA, but the most commonly
used measures are η2 (eta squared) and partial η2. It refers to the proportion of the variability in the
outcome variable that can be explained in terms of the predictor.