Probability

Gist

A gambler's favorite topic

Axioms

  1. A probability space consists of a sample space S and a probability function P which takes an event A ⊆ S as input and returns P(A), a real number between 0 and 1, as output. The function P must satisfy the following axioms:

Properties:

  1. P(Ac) = 1 − P(A).
  2. If A ⊆ B, then P(A) ≤ P(B).
  3. P (A ∪ B) = P (A) + P (B) − P (A ∩ B).

P(A ∩ B) = P(A) * P(B|A)

The joint probability that the event A and B are to occur is that the

Other Laws

Chain Law of Probability

The joint probability of a sequence of events can be computed by multipliying the conditional probability of an even given the preceding event. If we have events A1,A2,...,An. The probability of An happening is:

P(A1,A2,...,An)=P(A1)P(A2|A1)P(A3|A1,A2)...P(An|A1,...An1)

Used for large-language models. If I want to predict the probability of the sentence I love cheese then it would be:

P(I,Love,Cheese)=P(I)P(Love|I)P(Cheese|I,Love)

References

Introduction ot PRobability