Showing posts with label mathematics. Show all posts
Showing posts with label mathematics. Show all posts

MCMC (Markov Chain Monte Carlo)

A class of algorithms used to find the probability distribution of an event given the probabilities of causally linked events.

Random walks are taken through the causal chain,
the results of these walks eventually converging on a stationary distribution within an acceptable margin of error.

Combinatorics

nCr : "from n choose r"

n = length of possibility set (ex. 5 letters)
r = length of combination set (ex. pick 2)



Permutation with Repetition

Order matters and elements of the possibility set can be repeated.

nr

abcde
aaaabacadae
bbabbbcbdbe
ccacbcccdce
ddadbdcddde
eeaebecedee


Permutation without Repetition

Order still matters, but elements cannot be repeated.

n!
(n-r)!

abcde
aabacadae
bbabcbdbe
ccacbcdce
ddadbdcde
eeaebeced


Combination without Repetition

Order does not matter, and elements cannot be repeated.

n!
r!(n-r)!

abcde
aabacadae
bbcbdbe
ccdce
dde
e


Combination with Repetition

Order does not matter, but elements can be repeated.

(n+r-1)!
r!(n-1)!

abcde
aaaabacadae
bbbbcbdbe
ccccdce
dddde
eee