Statistics
- mean
- x_bar = 1/n Σ xi
- permutation
- nPk = n! / (n-k)!
- n: size of the set
- k: elements drawn
Normal Distribution
Z distribution is a normal distribution with a mean (μ) of 0 and a standard deviation (δ) of 1. Any normal distribution is described by its μ and δ value.
To convert a normal distribution to a Z distribution
Z = (x - μ) / δ
Standard deviation is the root of the sum of the square errors:
δ = ( Σ (i - μ)2 ).5
Binomial Distribution
Similar to normal distribution, but for values that can only be discrete.
Probability of an event happening k times given n trials, where p is the probability of n:
nCk * pk(1-p)n-k nCk = n! / ( k! * (n-k)! )
Example: The probability of two heads in six coin flips:
6C2 = 6! / ( 2! * (6-2)! ) = 6! / (2!4!) = 720 / (24 * 2) = 15 15 * .52(1-.5)6-2 = 15 * .25 * .54 = 15 * 0.015625 = 0.234375
Hypothesis Testing
Null hypothesis h0. Alternate hypothesis HA or H1
Single Tail Test
H0 : μ1 = μ2 HA : μ1 > μ2
Two Tailed Test
H0 : μ1 = μ2 HA : μ1 ? μ2
Familywise Error Rate
The probability of make one or more false discoveries (Type I errors) among all hypothesis when performing multiple hypothesis tests.
Fisher's Exact Test
Smaller data sets than Chi-squared.
p = (r1!r2!c1!c2!) / (n!a!b!c!d!)