introduction to probability

1 - What is Probability?

1.1 - Experiments

An experiment is a procedure, subject to uncertainty, which necessarily produces an outcome.

A collection of outcomes is called an event.
The collection of all outcomes is called the sample space.
The collection of all events to be considered is the event space.

An event is said to occur if it contains the observed outcome.
Probability concerns events and how likely they are to occur.


1.2 - Probability Axioms

Probability is axiomatized by the probability axioms:

  1. the probability of an event is a non-negative real number
  2. the probability of the entire sample space is 1
  3. any mutually exclusive events have probability which is additive

1.3 - Probability as a Measure

A model is a mathematical tool which systematizes a set of axioms to something which can be manipulated. See probability space for the rigorous model in the most technical language.

1.3.1 - Definitions

Here, we define

1.3.2 - Interpreting the Axioms

Now, the probability axioms can be rewritten

  1. P(E)[0,1] for all events E
  2. P(Ω)=1
  3. P(Ei)=P(Ei) for mutually exclusive events Ei

1.3.3 - Corollaries to the Axioms

  1. P()=0
  2. EFP(E)P(F)

1.4 - Competing Interpretations

Plainly: For each event A, there is some associated probability P(A).

Under the frequentist interpretation of probability, P(A) is the frequency with which A would occur under a theoretically infinite number of repetitions of the experiment (i.e. the law of large numbers)

Under the statistical interpretation of probability, P(A) describes the probability distribution of characteristic/property A in a population Ω.

Both interpretations are compatible with the set-theoretic model used throughout this document.


1.5 - Set Theory

Consider the sample space as the set of all outcomes in an experiment, and an event as a subset of the sample space.

As such, for any two events, we can take their union and intersection with the standard conventions of disjunction and conjunction, respectively:

Explicitly, the complement of an event E is the set difference E={ΩE}, such that P(E)=1P(E).

1.5.1 - Properties of Set Operations

1.5.2 - Probability's Inclusion-Exclusion Principle

The inclusion-exclusion principle can be used to show that

P(AB)=P(A)+P(B)P(AB)

which is equivalent to "removing the double-counted".


1.6 - Classifying Events

1.6.1 - Mutually Exclusive Events

Two events are mutually exclusive if they cannot occur simultaneously.

Formally, as sets of outcomes, mutually exclusive events are disjoint sets. This is equivalent to saying that events E,F are mutually exclusive if EF=.

1.6.2 - Independent Events

Let E,F be events. We say they are independent events if and only if both

P(EF)=P(E)P(FE)=P(F)

which, by the definition of conditional probability, is equivalent to saying

P(EF)=P(E)P(F)

when events E,F are independent. We may write EF.

"Knowing that one event occurs gives no information to whether the other also occurs."

"The occurrence of either event does not affect the occurrence of the other."

1.6.3 - Relationship between Mutual Exclusivity and Independence

Let E,F be events.

Events E,F are mutually exclusive events if and only if (EF)=, i.e. P(EF)=0.

Events E,F are independent if and only if P(EF)=P(E)P(F).

So mutually exclusive events E,F are only independent if P(E)=0 or P(F)=0.

Therefore, if events E,F have nonzero probability and are mutually exclusive, then E,F are necessarily dependent events.

1.6.4 - Collectively Exhaustive Events

A collection of events {A1,,An} is said to be collectively exhaustive if A1An=Ω, i.e. the events together cover the sample space.


1.7 - Conditional Probability

The conditional probability of event A given that conditioning event B occurs is expressed by

P(AB)=P(AB)P(B)

1.7.1 - Law of Total Probability

Let {A1,A2,} be a set of events that are mutually exclusive and collectively exhaustive.
For any event E,

P(E)=iP(EAi)=iP(EAi)P(Ai)

This is known as the law of total probability.

1.7.2 - Multiplication Rule

P(EF)=P(EF)P(F)=P(FE)P(E)

This is known as the multiplication rule.

1.7.3 - Reducing the Sample Space

If EF, then EF=E, so P(EF)=P(E)P(F).
Since P(F)[0,1], then P(EF)P(E).
This is called "reducing the sample space"

1.7.4 - Bayes's Theorem

Given events A,B with P(B)0,

P(AB)=P(BA)P(A)P(B)

This is known as Bayes's theorem.


1.8 - Random Variables

A random variable is a function X:ΩR which maps each outcome to a quantity, in a way sufficient for analysis. See meaningfulness

The support of a real-valued function is the subset of the domain which is not mapped to zero.

A discrete random variable has a support which is finite or countably infinite.
A continuous random variable has a range which is an interval of real numbers.


1.9 - Probability Distribution

A probability distribution maps the values or ranges of values of outcomes of a random variable to the respective probabilities of the events they represent.

1.9.1 - Probability Mass Function

A probability mass function is a probability distribution which maps every value of a discrete random variable to its associated probability.

Formally,
a discrete random variable X:ΩR has a probability mass function p:R[0,1] such that

P{X=x}=p(x)

i.e. p(x) is the probability that X takes a value of exactly x.

1.9.2 - Probability Density Function

A probability density function is a probability distribution which maps every interval of values of a continuous random variable to its associated probability.

Formally,
a continuous random variable X:ΩR has probability density function f(x) such that for any two ab in R,

P{aXb}=abf(x)dx

where f(x) is non-negative and f(x)dx=1.

1.9.3 - Cumulative Distribution Function

A cumulative distribution function is a probability distribution which returns the probability that the random variable will take a value of at most the argument of the function.

Formally,
a random variable X has a cumulative distribution function F:R[0,1] such that

F(x)=P{Xx}

i.e. F(x) is the probability that X will take a value of at most x.

For a discrete random variable with probability mass function p(x), the cumulative distribution function is given by

F(x)=P{Xx}=kxp(k)

For a continuous random variable with probability density function f(x), the cumulative distribution function is given by

F(x)=P{Xx}=xf(t)dt

1.10 - Measures

1.10.1 - Expected Value

The expected value of a random variable is the average value it will take when weighted by the probability of each outcome, aka the mean. It is a measure of center.

Formally,
the expected value of a discrete random variable X with probability mass function p(x) is given by

E[X]=xp(x)

and the expected value of a continuous random variable X with probability density function f(x) is given by

E[X]=xf(x)dx

1.10.2 - Variance

The variance of a random variable is a measure of dispersion from the mean.

Formally,
the variance of a random variable X is given by

Var(X)=E[(Xμ)2]

where E is the expected value and μ is the mean μ=E[X].

This can be simplified to

Var(X)=E[X2]μ2

1.10.3 - Standard Deviation

The standard deviation of a random variable is a measure of dispersion from the mean. It is the square root of the variance, and has the same units as its data.

Formally,
the standard deviation σ of a random variable X is given by

σ=Var(X)

where Var(X)=E[(Xμ)2] is the variance, and μ=E[X] is the mean.


Powered by Forestry.md