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:
- the probability of an event is a non-negative real number
- the probability of the entire sample space is 1
- 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
- the sample space
is the set of all outcomes, - an event
is a subset of outcomes, - the set of all events
is the event space
Then the probability measureis a measure (a type of function) which takes an event and assigns it a real number .
1.3.2 - Interpreting the Axioms
Now, the probability axioms can be rewritten
for all events for mutually exclusive events
1.3.3 - Corollaries to the Axioms
1.4 - Competing Interpretations
Plainly: For each event
Under the frequentist interpretation of probability,
Under the statistical interpretation of probability,
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:
- complement
is all outcomes not in - union
is all outcomes in either or - intersection
is all outcomes in both and
Explicitly, the complement of an event
1.5.1 - Properties of Set Operations
- involutivity:
- commutativity:
and - associativity:
and - distributivity:
and
1.5.2 - Probability's Inclusion-Exclusion Principle
The inclusion-exclusion principle can be used to show that
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
1.6.2 - Independent Events
Let
which, by the definition of conditional probability, is equivalent to saying
when events
"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
Events
Events
So mutually exclusive events
Therefore, if events
1.6.4 - Collectively Exhaustive Events
A collection of events
1.7 - Conditional Probability
The conditional probability of event
1.7.1 - Law of Total Probability
Let
For any event
This is known as the law of total probability.
1.7.2 - Multiplication Rule
This is known as the multiplication rule.
1.7.3 - Reducing the Sample Space
If
Since
This is called "reducing the sample space"
1.7.4 - Bayes's Theorem
Given events
This is known as Bayes's theorem.
1.8 - Random Variables
A random variable is a function
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
i.e.
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
where
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
i.e.
For a discrete random variable with probability mass function
For a continuous random variable with probability density function
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
and the expected value of a continuous random variable
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
where
This can be simplified to
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
where