Probability - Important Formulas

Bayesian

Law of total probability

∑iP(A|Bi)P(Bi)

Bayes' Theorem

P(B|A)=P(A|B)P(B)P(A)

Binomial/Poisson

Binomial Distribution

P(k)=(nk)pk(1−p)n−kP(k)=n!k!(n−k)!pk(1−p)n−k

In this distribution, the expectation is np and the variance is np(1−p)

Poisson Distributions

A special binomial distribution where n is much higher than p and we call λ=np

P(k)=λkk!e−λ

Probability of Exponential Decay

This probability density function gives the probability of a particle existing at time t when decaying at rate α.

f(t)=e−αtα

Mean and variance

Expectation of a sum

"The expectation of the sum is the sum of the expectation."

E(ξ+η)=E(ξ)+E(η)

Expectation with a coefficient

With a constant a, or if a and ξ are independent of each other:

E(aξ)=aE(ξ)

True Variance

V(ξ)=E(ξ2)−[E(ξ)]2

Or

V(ξ)=E[(ξ−E(ξ))2]

Sum of variances

V(ξ+η)=V(ξ)+V(η)

(when ξ and η are independent of each other)

Coefficient with variance

V(aξ)=a2V(ξ)

(Since variance involves squaring the numbers)

Expectation of sample average

E(ξ¯)=E(ξ)

Variance of the sample average

V(ξ¯)=1nV(ξ)

This is a random variable about the variance in between our average values in our sample

Standard Error

SE=V(ξ¯)=1nV(ξ)

Sample Variance

σ2=∑i(ξi−ξ¯)2n−1

Covariance

Cov(ξ,η)=E[(ξ−E(ξ))(η−E(η))]

Or alternatively (same thing):

Cov(ξ,η)=E[ξη]−(E(ξ))(E(η))

Sample covariance

∑i=1n(ξi−ξ¯)(ηi−η¯)n−1

Correlation coefficient

r=cov(ξ,η)V(ξ)V(η)

ANOVA (Maths) (F-test)

F statistic given by dividing the sample variance of the average of each group times n:

V(ξ)=nV(ξ¯)=n∑i=1k(ξ¯i−ξ¯)2k−1

By the average of the sample variance:

V(ξ)=V(σ2¯)=1k∑i=1k∑j=1n(ξij−ξ¯i)2n−1

Simplified:

F=nV(ξ¯)V(σ2¯)

A value close to 1 means the variance calculated by both methods is similar and all groups are part of the same population.

Continuous Distributions

Given a probability density function f(x), the probability of a value being between a and b is given by the integral:

P(a<ξ<b)=∫abf(x)dx

Z-test

Used when the true expectation and variance are known.

z=ξ¯−mVn≈N(0,1)

t-test

Used when the true expectation but not the variance are known. Note that σ2 here refers to the true variance not the sample variance for some reason.

t=ξ¯−mσ2n

Two-sample t-test

Is there a significant difference between the two groups?

t=ξ¯1−ξ¯22σ2n