Professional Documents
Culture Documents
Bibliography: Michael Baron - ”Probability and Statistics for Computer Scientists” - chapter 2
INTRODUCTION
Probability theory and Statistics are branches of mathematics developed to deal with uncertainty.
Probability theory provides the basic tools for the science of statistical inference through experi-
mentation and data analysis.
Applications of probability theory to computer science and engineering: assessment of system reliability,
interpretation of measurement accuracy, maintenance of suitable quality controls, etc.
The goal of Probability Theory is to provide a mathematical structure for understanding or explaining
the chances or likelihoods of the various outcomes that may occur in an experiment.
1
FREQUENCY
Let us consider an event A associated to a given experiment.
We repeat the same experiment N times and we denote by α the number of occurrences of the event A.
→ α ∈ {0, 1, 2, ..., N } is called absolute frequency of the event A
♣ The number of occurrences of the event A is N − α.
α
The number fN (A) = is called relative frequency of the event A.
N
♣ 0 ≤ fN (A) ≤ 1, for any N ∈ N? .
♣ fN (Ω) = 1, where Ω is the certain event.
♣ If A ∩ B = ∅ then fN (A ∪ B) = fN (A) + fN (B).
In a long run (large number of repetitions N), the probability of an event A can be estimated
by its relative frequency !!!
lim fN (A) = P (A)
N →∞
Multiplication rule. If an experiment consists of k components (sub-experiments) for which the number
of possible outcomes are n1 , n2 , ..., nk then the total number of experimental outcomes (the size of the
sample space) is equal to n1 × n2 × ... × nk .
Permutations
• permutation = a possible selection of k distinguishable objects from a set of n objects (n ≥ k)
→ the order of the sampled objects is important!
If the selection is performed:
1. with replacement then the experiment is made up of k identical components, each with n possible
outcomes. The number of possible ways to select the k objects is
Pr (n, k) = nk
2
Combinations
• combination = a possible selection of k indistinguishable objects from n objects (n ≥ k)
→ the order of the sampled objects is not taken into account!
If the selection is performed:
1. without replacement then the number of possible ways to select the k objects is
k P (n, k) n!
C(n, k) = Cn = =
P (k, k) k!(n − k)!
2. with replacement then the number of possible ways to select the k objects is
k (k + n − 1)!
Cr (n, k) = Ck+n−1 =
k!(n − 1)!
i) P (A) ≥ 0, ∀A ∈ P(Ω);
ii) P (Ω) = 1;
iii) A ∩ B = ∅ ⇒ P (A ∪ B) = P (A) + P (B), ∀A, B ∈ P(Ω).
Inequalities
♣ If A ⊂ B then P (A) ≤ P (B).
à n
! n
[ X
♣ for any A1 , A2 , .., An ∈ P(Ω) we have: P Ai ≤ P (Ai ) , ∀n ∈ N.
i=1 i=1
à n ! n
\ X
♣ for any A1 , A2 , .., An ∈ P(Ω) we have: P Ai ≥1− P (Ai ) , ∀n ∈ N.
i=1 i=1
INDEPENDENT EVENTS
• The events E1 , E2 ,..., En are called independent if the occurrence of one of these events does not
affect the probabilities of the others.
If events E1 , E2 ,..., En are independent then
♣ if A and B are independent events, then the events A and B; A and B; A and B are also independent.
3
CONDITIONAL PROBABILITY
• conditional probability of event A, given event B
= the probability that A occurs, when B is known to occur
P (A ∩ B)
→ is defined by P (A|B) = , assuming that P (B) 6= 0
P (B)
Properties of the conditional probability:
♣ 0 ≤ P (A|B) ≤ 1
♣ P (Ω|B) = 1
♣ if A1 , A2 are incompatible then P (A1 ∪ A2 |B) = P (A1 |B) + P (A2 |B)
♣ if A and B are independent events then P (A|B) = P (A) and P (B|A) = P (B)
Probability of the intersection of a series of events:
If A1 , A2 , ..., An are events such that P (A1 ∩ A2 ∩ ... ∩ An ) 6= 0 (i.e. they are compatible), then
P (A1 ∩ A2 ∩ ... ∩ An ) = P (A1 ) · P (A2 |A1 ) · P (A3 |(A1 ∩ A2 )) · ... · P (An |(A1 ∩ ... ∩ An−1 ))
♣ consequence: if A1 , A2 , ..., An are independent events then
P (A1 ∩ A2 ∩ ... ∩ An ) = P (A1 ) · P (A2 ) · ... · P (An )
Law of Total Probability:
• The events B1 , B2 , ..., Bk ∈ P(Ω) form a partition of the sample space Ω if:
k
[
i) Bi ∩ Bj = ∅, ∀i 6= j ii) Bi = Ω iii) P (Bi ) > 0, ∀i = 1, 2, ..., k
i=1