2.5 Some statistical test

2.5.1 Parametric statistical test

2.5.1.1 t-test

2.5.1.1.1 One sample t-test

This test is used to determine if the mean of a single population is significantly different from a specified value μ0.

    • Null hypothesis: H0:μ=μ0
    • Alternative hypothesis: H1:μμ0 (two-sided), H1:μ>μ0 (one-sided), or H1:μ<μ0 (one-sided)
  • t=ˉxμ0s/n where ˉx is the sample mean, s is the sample standard deviation, and n is the sample size.

  • df=n1

  • Reject H0 if |t|>tα/2,df (two-sided) or t>tα,df (one-sided, upper tail) or t<tα,df (one-sided, lower tail), where tα/2,df and tα,df are the critical values from the t-distribution with df degrees of freedom and significance level α.

2.5.1.1.2 Two sample t-test

This test is used to determine if the means of two independent populations are significantly different, assuming that the populations have equal variances.

    • Null hypothesis: H0:μ1=μ2
    • Alternative hypothesis: H1:μ1μ2 (two-sided), H1:μ1>μ2 (one-sided), or H1:μ1<μ2 (one-sided)
  • t=ˉx1ˉx2sp1n1+1n2 where ˉx1 and ˉx2 are the sample means, n1 and n2 are the sample sizes, and sp is the pooled sample standard deviation:

    sp=(n11)s21+(n21)s22n1+n22 where s1 and s2 are the sample standard deviations.

  • df=n1+n22

  • Reject H0 if |t|>tα/2,df (two-sided) or t>tα,df (one-sided, upper tail) or t<tα,df (one-sided, lower tail).

2.5.1.1.3 Welch’s t-test

This test is used to determine if the means of two independent populations are significantly different, without assuming that the populations have equal variances.

    • Null hypothesis: H0:μ1=μ2
    • Alternative hypothesis: H1:μ1μ2 (two-sided), H1:μ1>μ2 (one-sided), or H1:μ1<μ2 (one-sided)
  • t=ˉx1ˉx2s21n1+s22n2

  • df(s21n1+s22n2)2(s21n1)2n11+(s22n2)2n21

  • Reject H0 if |t|>tα/2,df (two-sided) or t>tα,df (one-sided, upper tail) or t<tα,df (one-sided, lower tail). Note that the degrees of freedom will likely be a non-integer value, so you’ll need to interpolate in a t-table or use statistical software.

2.5.1.1.4 Comparing Paired Samples

https://en.wikipedia.org/wiki/Paired_difference_test

2.5.1.2 F-test

2.5.1.3 χ2-test

2.5.1.3.1 for goodness-of-fit
2.5.1.3.2 for Homogeneity
2.5.1.3.3 for Independence

2.5.2 Non-parametric test

2.5.2.1 Mann–Whitney U-test (Wilcoxon rank-sum test)

2.5.2.2 Wilcoxon signed-rank test

2.5.2.3 Kolmogorov–Smirnov test

2.5.2.4 Lilliefors test