Lecture 1 20240304v5
Lecture 1 20240304v5
Communication
Networks
Lecture 1
Why is the
understanding of
randomness important?
2
Why we should study the probability?
How can we find 𝜋𝜋?
1. Geometric Methods
• Circumscribed and Inscribed Polygons: Archimedes used this method
with a 96-sided polygon to estimate 𝜋𝜋 as being between 3.1408 and 3.1429.
2. Infinite Series
1 1 1 1
• Leibniz Formula for 𝜋𝜋: 𝜋𝜋 = 4 × 1 − + − + − ⋯ simple, yet slow-converging series
3 5 7 9
4 4 4
• Nilakantha's Series: 𝜋𝜋 = 4 × 3 + − + … A faster-converging series from the
2×3×4 4×5×6 6×7×8
15th century
3. Probabilistic Methods
• Monte Carlo Simulations: Randomly generating points, the ratio of points
that fall inside the quarter circle to the total number of points
4. Analytical Methods
• Buffon's Needle: This is a probability-based method involving dropping needles on a surface
marked with parallel lines and observing the number of times the needles cross the lines.
5.Computational Algorithms
• Machin-like Formulas: These are formulas that express 𝜋𝜋 as𝜋𝜋 sums of arctangents,
𝜋𝜋
which
1
can be 1
computed to high precision using Taylor series expansions. = 𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎, = 4 atan + atan
4 4 5 239
• BBP (Bailey-Borwein-Plouffe) Formula: This formula allows for the calculation of the nth binary
digit of π without needing to calculate the preceding n−1digits, facilitating high-precision
calculations of π on computers.
6.Using Built-in Mathematical Functions
Buffon's Needle
1. A third
2. A half
3. A quarter
8
Solution 1: Bertrand Paradox
•Choose a point on the
circumference and rotate the
triangle so that the point is at one
vertex.
9
Solution 2: Bertrand Paradox
•Choose a radius of the circle and
rotate the triangle so a side is
perpendicular to the radius.
10
Solution 3: Bertrand Paradox
1
•The area of the smaller circle is one
fourth the area of the larger circle,
therefore the probability a random
chord is longer than a side of the
inscribed triangle is one fourth.
11
Our Interest and Goals
25 1.2
1
20
0.8
15
0.6
0.4
10
0.2
5
0
0 -0.2
0 2 4 6 8 10 0 2 4 6 8 10
Random Noise
Y=2X+1
Randomness around us
• At bus stop
• Waiting time for bus
• The number of people to take a bus
• At a bank
• Waiting time for service
• Service time
• The number of customers to wait for
• Bet/Game
• Toss a coin: Head or Tail
• Roll a dice: 1, 2, 3, 4, 5, 6
• Shooting game
Typical Electrical Engineering Problems
(1/3)
• A noisy binary communication channel
• The channel can be twisted pair, coaxial cable, fiber optic cable, or
wireless medium.
• The channel introduces noise and thereby bit errors.
h(n)
x(n) y(n)
Station A Channel Station B
00110001010... 00100001010...
Typical Electrical Engineering Problems
(2/3)
• Desired target signal is buried in noise.
𝑥𝑥(𝑡𝑡) = 𝐴𝐴(𝑡𝑡) cos( 𝜔𝜔𝜔𝜔 + 𝜑𝜑(𝑡𝑡)) + 𝑛𝑛(𝑡𝑡)
0.8 3
0.6 2
0.4
1
Signal waveform
0.2
0
0
-1
-0.2
-0.4 -2
-0.6 -3
-0.8
-4
-1
0 1 2 3 4 5 6
A(t)cos(ωt+φ(t)) A(t)cos(ωt+φ(t))+n(t)
1 2 3 4 5 6
-3
x 10 Time [sec] -3
x 10
Typical Electrical Engineering Problems
(3/3)
• In large computer networks, there are limited resources
(e.g., bandwidth, routers, switches, printers and other devices)
that need to be shared by the users.
• User jobs/packets are queued and assigned service based on
predefined criteria.
• Demand is uncertain and service time is also uncertain.
• Delay from the time the service is requested to the time it is
completed is uncertain.
Sample space
X (s, t)
Space of time
functions
Probability Space
• The set containing no elements is called the empty set or null set.
• Two sets E and F are equal if they contain exactly the same elements.
Event Space (S, F(S), P)
• P(S)=1
• P(E)+P(Ec)=P(S)
• P(E) =1-P(Ec)
• P(Ø)=0
• If EF = Ø, then P(EF) = 0
• P(E∪F)=P(E)+P(F)-P(EF)
• If E⊂F, then P(E)≤P(F)
• P(E∪F∪G)
=P(E)+P(F)-P(EF)+P(G)-P(EG∪FG)
=P(E)+P(F)-P(EF)+P(G)-P(EG)-P(FG)+P(EFG)
=P(E)+P(F)+P(G)-P(EF) -P(EG)-P(FG)+P(EFG)
• P(E1∪E2∪E3∪…∪En)
=∑iP(Ei)-∑i<jP(EiEj)+∑i<j<kP(EiEjEk)+…+(-1)n+1P(E1E2…En)
The Principle of Total Probability
Let A1, A2, …, An be a set of mutually exclusive and collectively
exhaustive events:
𝐴𝐴𝑘𝑘 𝐴𝐴𝑗𝑗 = 0 𝑘𝑘 ≠ 𝑗𝑗
• Two event E and F that are not independent are said to be dependent
• Ex) F∪Fc=S
• P(E)=P(ES)=P(E(F∪Fc))=P(EF∪EFc)=P(EF)+P(EFc)
=P(E|F)P(F)+P(E|Fc) P(Fc)=P(E|F)P(F)+P(E|Fc) (1-P(F))
• P(F|E)=P(E|F)P(F)/P(E)=P(E|F)P(F)/(P(E|F)P(F)+P(E|Fc) P(Fc))
Example of Bayes’Formula
• P(B)
• P(AB)
• P(A|B)
• P(B|A)
Answer: Example 1
• P(A)=3/12=1/4
• P(B)=6/12=1/2
• P(A|B)=P(AB)/P(B)=1/3
• P(B|A)=P(AB)/P(B)=2/3
Example 2 of Probability
• Let A1 (A0) and B1 (B0) be the event that 1 (0) is sent and the event
that 1(0) is received, respectively.
• Assumption
• P(A0) = 0.8, P(A1) = 1- P(A0) = 0.2,
• The probability of error, i.e., p=P(B1|A0)= P(B0|A1), is 0.1
0 0.9 0
0.1
0.1
1 0.9 1
• Find
• The error probability at the receiver
• The probability that 1 is sent when the receiver decides 1.
Answer: Example 2
• Parameters
• P(A0) = 0.8, P(A1) = 1- P(A0) = 0.2, P(B1|A0)= P(B0|A1) = 0.1