Week1 Lecture2 PDF
Week1 Lecture2 PDF
Week1 Lecture2 PDF
Semester 191
Week-1, Lecture-2
n
P A P( A n ).
n 1 n 1
Axioms of Probability
-Field (Example):
But A An , and using the fourth probability axiom
n 1
An
P ( A) P
P( A n ).
n 1 n 1
P( AB ) 0
We have (i) P( A | B ) 0,
P( B ) 0
P (SB ) P (B )
(ii) P (S | B ) 1, since SB = B.
P (B ) P (B )
(iii) Suppose A C 0. Then
P(( A C ) B ) P( AB CB )
P( A C | B ) .
P( B ) P( B )
But AB AC , hence P ( AB CB ) P ( AB ) P(CB ).
P( AB ) P(CB )
P( A C | B ) P( A | B ) P(C | B ),
P( B ) P( B )
satisfying all probability axioms. Thus conditional probability is
a legitimate probability measure.
Conditional Probability
12
Bayes’ Theorem
Let A1 , A2 ,, An are pair wise disjoint and their union is S. Thus
Ai Aj , and
n
A i .
i 1
Thus
B B( A1 A2 An ) BA1 BA2 BAn .
4 4
and P ( B2 | W1 ) ,
54 9
3 4 12
and hence P (W1 B2 ) 0.267.
5 9 45
Independence
Let A A1 A2 A3 An ,
a union of n independent events. Then by De-Morgan’s law and using
their independence A A1 A2 An
n n
P ( A) P ( A1 A2 An ) P ( Ai ) (1 P ( Ai )).
i 1 i 1
n
P ( A) 1 P ( A) 1 (1 P ( Ai )),
Thus
i 1
p p 1 (1 pe ) n
Bit Error Rate (BER) and Packet Error Rate (PER)
P( A1 A2 An ) P1 ( A1 ) P2 ( A2 ) Pn ( An ).
P0 ( ) P({i1 ,i2 ,,ik ,,in }) P({i1 }) P({i2 }) P({ik }) P({in })
P( A) P( A) P( A) P( A) P( A) P( A) p k qnk .
k n k
Repeated Trials – Example cont…
However the k occurrences of A can occur in any particular
location inside . Let 1 , 2 ,, N represent all such events in
which A occurs exactly k times where N k n ! . Then the
n
(n k )!k !
event of interest is
" A occurs exactly k times in n trials" 1 2 N .
But, all these i s are mutually exclusive, and equi-probable.
Therefore P (" A occurs exactly k times in n trials" )
N
n k n k
P0 (i ) NP0 ( ) p q , k 0,1, 2, , n.
i 1 k
a formula, due to Bernoulli.
Bernoulli Trials Cont…
Pn (k )
n 12, p 1 / 2.
Thus Pn (k ) Pn (k 1), if k (1 p ) (n k 1) p or k ( n 1) p.
Thus Pn (k ) as a function of k increases until k (n 1) p
Bernoulli Trials Cont…
Programming exercise:
Write a MATLAB program to compute the probability of k out of
n success in Bernoulli trial and to plot probability versus k.
Weak Law of Large Numbers (WLLN)
Strong Law of Large Numbers (SLLN)
Let X i be independent, identically distributed Bernoulli random
Variables such that
P( X i 1) p, P( X i 0) 1 p q,
and let k X 1 X 2 X n represent the number of “successes”
in n trials. Then the weak law due to Bernoulli states that [see
Theorem 3-1, page 58, Text]
P n p 2.
k
n
pq
n 1
n! i 1 n i 1
p q
n 1
np
n 1 !
p i q n i 1
i 1 n i 1 !i ! i 1 n i 1 !i !
np p q
n 1
np
Similarly,
n n
n!
k pn (k ) k
k 0
2
k 1 n k ! k 1!
p k q nk
n
n!
p q
k nk
n 1
n 1 !
p i q n i 1
k 2 n k ! k 2 ! 1 n i 1 !i !
n 2 p 2 npq
Weak Law of Large Numbers (WLLN)
[Bernoulli’s Therorem]
n2 2 which is equivalent to
2
k p is equivalent to k np
n n n
k np p k n p k n
2 2 2 2 2
n (1) n
n k 0 n k 0 n
k np pn k k 2 pn k 2np kpn k n 2 p 2
2
k 0 k 0 k 0
k np pn k k np pn k k np pn k
2 2 2
k 0 k np n k np n
k np pn k n 2 2 p k
2
From (1) n
k np n k np n
n 2 2 P k np n (3)
k pq
From (2) and (3) P n p n 2 , the desired result.
Strong Law of Large Numbers (SLLN)
The strong law of large numbers states that if { n } is a
sequence of positive numbers converging to zero, then
k p .
n
P n
n 1
From Borel-Cantelli lemma [see (2-69) Text], when above
inequality is satisfied the events An = kn p n can occur
only for a finite number of indices n in an infinite sequence,
or equivalently, the events kn p n occur infinitely
often, i.e., the event k/n converges to p almost-surely.