Statistics Formulas Cheatsheet
Statistics Formulas Cheatsheet
es
Statisticss Formulas
Descriptive Statistics Regression and correlation
Frequencies Linear regression
Sample size n num of individuals in the sample. xi yj ni j
Covariance s x y = x y
n
Absolute frequency n i (num of x i in the sample)
Regression lines :
Relative frequency fi = n i /n
i sx y
Cumulative absolute freq N i = y on x : y = y + (x x )
k =0 n i s x2
Cumulative relative freq Fi = N i /n sx y
x on y : x = x + (y y )
s 2y
Shape statistics
(x i x )3 fi
Coefcient of skewness g 1 =
s3
(x i x )4 fi
Coefcient of kurtosis g 2 = 3
s4
Linear transformations
Linear transformation y = a + bx
y = a + b x
s y = bs x
x x
Standarization z =
sx
1
http://aprendeconalf.es
Conditional probability
AB P (A B)
Conditional probability P (A |B) =
P (B)
Intersection Independent events P (A |B) = P (A).
Total probability Theorem
n
A B P (B) = P (Ai )P (B |Ai )
i =1
AB Bayes Theorem
P (Ai )P (B |Ai )
P (Ai |B) = n
i =1 P (Ai )P (B |Ai )
Complement
Diagnostic tests
Prevalence Proportion of people with the disease
A A P (D )
Sensitivity P (+ |D )
Specicity P (|D )
Positive Predictive Value (PPV) P (D |+)
Negative Predictive Value (NPV) P (D |)
Difference
P (+ |D )
Positive Likelihood Ratio (LR+)
P (+ |D )
A B P (|D )
Negative Likelihood Ratio (LR-)
P (|D )
AB
2
http://aprendeconalf.es
Continuous
Normal N (, )
(x ) 2
1
f (x ) = e 2 2
2
Standard normal N (0, 1)
Chi-square 2 (n)
X = Z 12 + + Z n2 ,
where Z i N (0, 1).
Students t T (n)
Z
T = ,
X /n
where Z N (0, 1) and X 2 (n).
Fishers F F (n, m)
X /m
F = ,
Y /n
where X 2 (m) and Y 2 (n).