Skip to content

Probability theory

Counting

Selecting k elements from n elements can be done in the following number of ways:

Without replacementWith replacement
Orderedn(n1)...(nk+1)nk
Unordered(nk)(n+k1k)

Conditional Probability

Conditional probability is used when we are in a position to update the sample space based on new information.

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

Bayes' Theorem

Let A1,A2,...,An be mutually exclusive events that cover the entire sample space A. Then for any event B,

P(Ai|B)=P(B|Ai)P(Ai)j=1P(B|Aj)P(Aj)

TIP

The odds form of Bayes' theorem can be also be written as: posterior odds is equal to likelihood ratio times prior odds.

P(Ai|B)P(Aic|B)=P(B|Ai)P(B|Aic)P(Ai)P(Aic)

Survival Probability

The survival probability is the probability that a random variable X is greater than a certain value x, denoted as P(X>x).

Expected Value

The expected value of a function g(X) over a random variable XfX is defined as:

E[g(X)]=g(x)fX(x)dx