Probability l1 Slides
Probability l1 Slides
References
Introduction
Probability Space
Conditional Probability
Bayes’ Rule
Independence
Combined Experiments
Bernouli Trials
V. Prakash Singh, PhD
Department of Electronics and Communication Engineering, National Institute of Technology Andhra Pradesh, Tadepalligudem, Andhra Pradesh India
Lec 1: Introduction to Probability
Introduction Mathematical Preliminaries Axiomatic theory of Probability Conditional Probability Independence Combined Experiments
Outline
1 Introduction
2 Mathematical Preliminaries
4 Conditional Probability
5 Independence
6 Combined Experiments
Introduction
Probability theory has its roots in gambling and games of chance but
has grown into a fundamental aspect of modern mathematics and
science.
The classical definition assumes that all outcomes are equally likely,
which is not always the case in real-world scenarios. For example:
biased coins or loaded die may not give correct probabilities using
classical definition.
Bertrand Paradox
Bertrand Paradox
Bertrand Paradox
Bertrand Paradox
Outline
1 Introduction
2 Mathematical Preliminaries
4 Conditional Probability
5 Independence
6 Combined Experiments
B⊆A and B ⊆ A
Null Set: A set which has no element is called a null set. It is denoted
by Φ or {}.
Set Operations
A ∪ B ≜ {x | x ∈ A or x ∈ B}
A ∩ B ≜ {x | x ∈ A and x ∈ B}
Set Operations
We can generalize the union and intersections to infinitely many sets
∞
[
Ai = A1 ∪ A2 ∪ · · · = {x | x ∈ Ai for some i}
i=1
\∞
Ai = A1 ∩ A2 ∩ · · · = {x | x ∈ Ai for all i}
i=1
Set Operations
A∪B = B ∪A
A∩B = B ∩A
(A ∪ B) ∪ C = A ∪ (B ∪ C ) = A ∪ B ∪ C
(A ∩ B) ∩ C = A ∩ (B ∩ C ) = A ∩ B ∩ C
(A ∪ B) ∩ C = (A ∩ C ) ∪ (B ∩ C )
(A ∩ B) ∪ C = (A ∪ C ) ∩ (B ∪ C )
Set Operations
The distributive law for union and intersection operations can be
generalized to infinitely many sets as
[ ∞ ∞
[
Ai ∩ B = Ai ∩ B
i=1 i=1
∞
\ \∞
Ai ∪B = Ai ∪ B
i=1 i=1
Venn Diagrams
Sets and the set operations can be easily visualized using Venn
Diagrams
Consider two arbitrary sets A and B. The set of all ordered pairs (a, b)
where a ∈ A and b ∈ B is called the product, or Cartesian product, of
A and B. This product is denoted as A × B and read as A cross B.
A × B = {(a, b)|a ∈ A, b ∈ B}
Function
Function : A function f : A → B is a rule that associate every
element of A with a unique element of B.
The set of all elements of B that are covered by the function is called
the range of the function.
R = {y ∈ B|∃x ∈ A, f (x) = y }
V. Prakash Singh, PhD
Department of Electronics and Communication Engineering, National Institute of Technology Andhra Pradesh, Tadepalligudem, Andhra Pradesh India
Lec 1: Introduction to Probability
Introduction Mathematical Preliminaries Axiomatic theory of Probability Conditional Probability Independence Combined Experiments
Types of Functions
Cardinality of a Set
For finite sets, we can count the number of elements in the sets and
compare their sizes. For infinite sets, we can use the concept of
bijective functions to compare their sizes.
Cardinality of a Set
Sets B has cardinality strictly greater than that of set A if there exist
an injective function from A to B but no bijective function from A to
B. We denote it as |B| > |A|.
Countable Sets
Countable Sets
Example : Show that the set of rational numbers between 0 and 1 i.e.
A = Q ∩ [0, 1] is a countable set.
Solution : Since the given set is not finite, we need to prove that the
set is countable infinite. In other words, we need to show that a
bijective function exist between the set and the set of natural
numbers. We need to put the elements of the set as a list and the list
should cover all the elements of the set.
1 1 2 1 3 1
A = 0, 1, , , , , , , . . .
2 3 3 4 4 5
Uncountable Sets
The set of real numbers R, the set of irrational numbers R\Q, any
interval on real line i.e. [0, 1], the set of all infinite length binary
strings {0, 1}∞ , power set of N are all uncountable sets.
Outline
1 Introduction
2 Mathematical Preliminaries
4 Conditional Probability
5 Independence
6 Combined Experiments
Probabilistic Models
Probabilistic Models
Sample Space
Tossing a pair of dice and we are interested in both the numbers that
show up.
Ω = {(1, 1), (1, 2), (1, 3), . . . , (6, 5), (6, 6)} Sample space is finite
Events
The subsets of the sample space are called events. At each trial of an
experiment, we observe an outcome ωi . We say that the event A has
occurred during this trial if ωi ∈ A.
In this lecture, we will assume that all subsets of Ω are events. This is
not true in general. Only a class F of subset of Ω are called events.
The main reason, however, for not including all subsets of Ω in the
class F of events is of a mathematical nature. In certain cases
involving sets with infinitely many elements, it is impossible to assign
probabilities to all subsets satisfying the probability axioms.
Events
A = {2, 4, 6}
B = {4, 5, 6}
Probability Law
The probability law assigns a number P(A) to every event A, called
the probability of the event. The probability of an event is a measure
of how likely the event is to occur when we run the experiment. P(A)
must satisfy the following Probability axioms.
If A ⊆ B This implies
P(A) ≤ P(B)
For two events A and B
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
P(A ∪ B) ≤ P(A) + P(B) Union Bound
V. Prakash Singh, PhD
Department of Electronics and Communication Engineering, National Institute of Technology Andhra Pradesh, Tadepalligudem, Andhra Pradesh India
Lec 1: Introduction to Probability
Introduction Mathematical Preliminaries Axiomatic theory of Probability Conditional Probability Independence Combined Experiments
k
P(A) = P({ω1 , ω2 , . . . , ωk }) = P({ω1 })+P({ω1 })+· · ·+P({ωk }) =
n
Example
Example
Example
Outline
1 Introduction
2 Mathematical Preliminaries
4 Conditional Probability
5 Independence
6 Combined Experiments
Conditional Probability
Conditional Probability
Conditional Probability
The conditional probability of an event A given that the event B has
occurred is denoted as P(A|B) and computed as
P(A ∩ B)
P(A|B) =
P(B)
Conditional Probability
Multiplication Rule
The probability that two events occur is equal to the product of the
probability that first event occurs and the probability that the second
event occurs given that the first event has occurred. The order of the
events can be changed.
Multiplication Rule
where Ai are the disjoint events that form a partition of the sample
space and B is any event.
Bayes’ Rule
Bayes’ Rule
We start with a probabilistic model where we know the prior
probabilities of different scenarios Ai i.e. P(Ai ). Given that the event
B has occurred in a trial and we wish to use this information to revise
the probabilities of Ai . These revised probabilities P(Ai |B) are known
as posterior probabilities.
P(Ai ∩ B)
P(Ai |B) =
P(B)
P(Ai )P(B|Ai )
=
P(B)
P(Ai )P(B|Ai )
= Pn
j=1 P(Aj )P(B|Aj )
where last equality follows from the total probability rule and events
Aj j = 1, 2, . . . , n form a partition of the sample space.
V. Prakash Singh, PhD
Department of Electronics and Communication Engineering, National Institute of Technology Andhra Pradesh, Tadepalligudem, Andhra Pradesh India
Lec 1: Introduction to Probability
Introduction Mathematical Preliminaries Axiomatic theory of Probability Conditional Probability Independence Combined Experiments
Examples
Examples
Examples
Examples
Examples
Examples
Examples
Examples
Outline
1 Introduction
2 Mathematical Preliminaries
4 Conditional Probability
5 Independence
6 Combined Experiments
P(B) = P(B|A)
P(A) = P(A|B)
In other words, we say that the two events A and B are (statistically)
independent if the probability that event A and B occur is equal to
the product of the probabilities of event A and B.
P(A ∩ B) = P(A)P(B)
Conditional Independence
Pairwise Independence
P(A ∪ B) = P(A)P(B)
P(B ∪ C ) = P(B)P(C )
P(A ∪ C ) = P(A)P(C )
Pair-wise Independence
Example
Example
Example
Outline
1 Introduction
2 Mathematical Preliminaries
4 Conditional Probability
5 Independence
6 Combined Experiments
Combined Experiments
Ω = Ω1 × Ω2 = {(ω1 , ω2 )|ω1 ∈ Ω1 , ω2 ∈ Ω2 }
Combined Experiments
Counting
n!
n(n − 1) . . . (n − k + 1) =
(n − k)!
n.(n − 1) . . . 3.2.1 = n!
Counting
Bernoulli Trial
An experiment for which there are only two outcomes 1) Success and
2) Failure in a trial, is called a Bernoulli experiment. For example :
flipping a coin, passing or failing in an exam etc. Any of the two
outcome can be used as success or failure.
Binomial Probabilities
p(k)
= P(k successes in n independent trials)
n k
= p (1 − p)n−k
k
Example