DC - Short Notes (Module 1 to 3)
DC - Short Notes (Module 1 to 3)
Processes (SPs)
Module – Probability and Random Processes Notes
1. Introduction
Before learning Stochastic Processes (SPs), one must be comfortable with the lan-
guage of Probability and Statistics, as these form the mathematical foundation of
randomness.
In engineering, especially in fields like Electronics, Communication, and Signal
Processing, most real-world signals (like noise, voice, or sensor data) are random in
nature.
To analyze and predict their behavior, we model them statistically using probability
theory.
P (A ∪ B) = P (A) + P (B) − P (A ∩ B)
1
2.4. Conditional Probability
Conditional probability tells us the probability of event A given that B has already
occurred:
P (A ∩ B)
P (A|B) =
P (B)
P (B|Ai )P (Ai )
P (Ai |B) = P
j P (B|Aj )P (Aj )
2
3.3. Properties of PDF
• fX (x) ≥ 0
Z ∞
• fX (x) dx = 1
−∞
3
5.2. Marginal Distribution
Obtained by summing or integrating out the other variable:
Z ∞
fX (x) = fX,Y (x, y) dy
−∞
fX,Y (x, y)
fX|Y (x|y) =
fY (y)
This concept is widely used in analyzing signals from sensor arrays, radar, and MIMO
systems.
4
• Deterministic Signal: Exactly known (e.g., x(t) = sin(2πf t))
RX (τ )
Typical ACF of Random Signal
• Energy of a Signal: Z ∞
E= |x(t)|2 dt
−∞
• Average Power: Z T
1
P = lim |x(t)|2 dt
T →∞ 2T −T
In communication, energy signals represent data bursts, while power signals represent
continuous noise or carrier waves.
X(t), t∈T
where T is the parameter space (time) and the possible values of X(t) form the state
space.
5
• Probability theory describes uncertainty in one experiment.
11. Conclusion
A solid grasp of the above topics ensures smooth understanding of advanced stochastic
process concepts like:
These topics help engineers analyze noise, design optimal filters, and improve communi-
cation reliability.
6
EC503 – Digital Communication
Module I – Stochastic Processes
Formal Definition
A stochastic process (SP) is defined as a family of random variables:
{X(t) : t ∈ T }
where • T is the index (parameter) space, often representing time • X(t) is a random variable
defined on the same probability space
(Ω, F, P )
Intuitive Meaning
A stochastic process describes how uncertainty evolves over time. Useful in:
• noise modeling
• signal variations
S = {x : P (X(t) = x) > 0}
Examples:
• R → Gaussian noise
1
Parameter (Time) Space (Definition)
The set of all index values for which the process is defined:
T = {t} (discrete or continuous)
Second moment:
E[X 2 (t)]
Variance:
2
σX (t) = E[(X(t) − mX (t))2 ]
Autocorrelation:
RX (t1 , t2 ) = E[X(t1 )X(t2 )]
2
Ergodic Process — Formal Definition
A process is ergodic if time averages (from one long signal realization) equal ensemble averages
(statistical averages taken over all possible signals).
A process is ergodic in mean if:
Z T
1
lim X(t) dt = E[X(t)]
T →∞ T 0
1 T
Z
lim X(t)X(t + τ ) dt = RX (τ )
T →∞ T 0
Importance of Ergodicity
Ergodic processes allow:
Autocorrelation (Definition)
RX (t1 , t2 ) = E[X(t1 )X(t2 )]
For WSS:
RX (τ ) = E[X(t)X(t + τ )]
Autocovariance (Definition)
CX (t1 , t2 ) = E[(X(t1 ) − m)(X(t2 ) − m)]
For WSS:
CX (τ ) = RX (τ ) − m2
Correlation Coefficient
CXY
ρXY = p
CX (0)CY (0)
Measures similarity between signals.
3
Properties of Autocorrelation
• RX (0) is maximum
• RX (τ ) = RX (−τ ) (even)
• |RX (τ )| ≤ RX (0)
Definition
A random binary waveform is a discrete-state, continuous-time stochastic process generated
by mapping random bits to amplitude levels.
Mean
m = E[X(t)] = A(2p − 1)
Autocorrelation
If symbols are independent: (
A2 , |τ | < T
RX (τ ) =
m2 , |τ | ≥ T
Usage
• Baseband signaling (NRZ, RZ)
• PCM signals
Definition
The PSD describes how signal power is distributed in the frequency domain.
4
Z ∞
SX (f ) = RX (τ )e−j2πf τ dτ
−∞
Markov Chains
Definition
A discrete-time stochastic process is a Markov chain if:
P (n) = P n
(n)
X (n−1)
Pij = Pik Pkj
k
5
n-Step Transition Probability
(n)
Pij = (P n )ij
Classification of States
Recurrent State:
P (return to state i) = 1
Transient State:
P (return to state i) < 1
Periodic State:
Steady-State Distribution
A vector π satisfying: X
πP = π, πi = 1
i
• Queueing networks
6
EC503 – Digital Communication
Module II – Signal Vector Representation
Orthogonality (Definition)
Two signals s1 (t) and s2 (t) are orthogonal if:
⟨s1 , s2 ⟩ = 0
Orthonormality (Definition)
A set {ϕk (t)} is orthonormal if: (
1, i = j
⟨ϕi , ϕj ⟩ =
̸ j
0, i =
1
Basis Function (Definition)
A basis function is an elementary, independent waveform used for expanding any signal in the
space:
N
X
s(t) = sk ϕk (t)
k=1
2
Likelihood Functions and Detection Theory
Statement
Geometric Interpretation
Angle θ between vectors:
⟨s, x⟩
cos θ = √
Es Ex
Definition
A systematic method to convert linearly independent signals into orthonormal basis functions.
Procedure
Given s1 , s2 , ..., sN :
3
s1
ϕ1 =
∥s1 ∥
ŝ2
ŝ2 = s2 − ⟨s2 , ϕ1 ⟩ϕ1 ϕ2 =
∥ŝ2 ∥
General step:
k−1
X
ŝk = sk − ⟨sk , ϕi ⟩ϕi
i=1
ŝk
ϕk =
∥ŝk ∥
Projection on basis: Z T
rk = r(t)ϕk (t)dt = sik + nk
0
Noise projection:
nk ∼ N (0, N0 /2)
Definition
Choose the hypothesis with maximum likelihood:
ML Rule in AWGN
î = arg min ∥r − si ∥
i
4
Decision Boundary (Definition)
The hypersurface satisfying:
∥r − si ∥2 = ∥r − sj ∥2
Definition
A receiver that computes:
zi = ⟨r(t), si (t)⟩
and chooses the largest correlation value.
Equivalent to ML in AWGN.
Probability of Error
Q-Function (Definition)
The Q-function represents the tail probability of the standard Gaussian distribution:
Z ∞
1 2
Q(x) = √ e−u /2 du.
2π x
erfc(x) = 1 − erf(x).
5
Type-I and Type-II Errors
Interpretation: The receiver falsely detects the presence of signal s1 (t) when s0 (t) was actually
transmitted.
Also called: False Alarm Probability
PF A = PType-I
Example: Detecting a binary “1” when the transmitted symbol was “0”.
Interpretation: The receiver fails to detect the transmitted signal s1 (t) and incorrectly decides
that s0 (t) was sent.
Also called: Miss Detection Probability
PM D = PType-II
6
EC503 – Digital Communication
Module III (Part 1) – Digital Data Transmission
Concept of Sampling
Sampling (Definition): Sampling is the process of converting a continuous-time signal x(t) into
a discrete-time sequence by taking samples at equal intervals:
x(nTs ), n = 0, 1, 2, . . .
Sampling Frequency:
1
fs =
Ts
Nyquist Sampling Theorem: A bandlimited signal of bandwidth B can be perfectly recon-
structed from its samples if:
fs ≥ 2B
This minimum value 2B is called the Nyquist rate.
Applications:
• Digital telephony
• PCM systems
1
Interlacing and Multiplexing of Samples
Multiplexing (Definition): Multiplexing combines multiple sampled message signals into a
single composite stream.
Interlacing (Definition): Interlacing arranges samples from different signals in alternating time
slots.
Time Division Multiplexing (TDM): Each channel is assigned a separate time slot within a
periodic frame:
Frame = [x1 , x2 , . . . , xK ]
TDM is widely used in telephony and PCM-based systems.
1. Sampling
2. Quantization
3. Binary encoding
• Digital audio
• Communication networks
Quantization
Quantization (Definition): The process of mapping a continuous-valued sample to a discrete
level:
Q(x) = qi for x ∈ [bi , bi+1 )
Uniform Quantization
Definition: Equal spacing between quantization levels:
xmax − xmin
∆=
L
where L is the number of quantization levels.
Useful for signals with nearly uniform amplitude distribution.
Non-Uniform Quantization
Definition: Quantization intervals are narrower for small amplitudes and wider for large ampli-
tudes. Used for voice/speech signals, where low amplitudes are more probable.
2
Quantization Noise
Quantization Noise (Definition): Error between the input sample and quantized output:
For a uniform mid-rise quantizer with step size ∆, assuming eq is uniformly distributed in
[−∆/2, ∆/2]:
∆2
σq2 = E[e2q ] =
12
Binary Encoding
Binary Encoding (Definition): Mapping each quantization level to a unique binary word.
For L quantization levels:
Bits per sample = log2 L
ln(1 + µ|x|)
C(x) = , |x| ≤ 1
ln(1 + µ)
where µ = 255 for telephony.
Purpose of Companding:
3
Differential Pulse Code Modulation (DPCM)
DPCM (Definition): A predictive coding technique that encodes the difference between the
present sample and a predicted sample:
(
+1, x(n) > x̂(n)
s(n) =
−1, x(n) < x̂(n)
Problems in DM:
• Slope overload distortion when signal slope is high and step size is too small.
• Granular noise when step size is too large for slowly varying signals.
• Reduces granular noise by decreasing step size when signal is slowly varying.
4
Digital Data Transmission
Digital communication involves converting analog or digital information into discrete-time, dig-
itized signals suitable for reliable transmission through physical channels. This module covers
sampling, pulse modulation, quantization, encoding, companding, and the components of a digi-
tal transmission system, including line coding, pulse shaping, ISI, eye patterns, and equalization.
Concept of Sampling
Sampling (Definition): Sampling converts a continuous-time signal x(t) into a discrete-time
sequence:
x[n] = x(nTs )
1
where Ts is the sampling interval and fs = Ts
is the sampling frequency.
Nyquist Sampling Theorem: A bandlimited signal of bandwidth B Hz can be uniquely re-
constructed if:
fs ≥ 2B
1. Sampling
2. Quantization
3. Binary encoding
5
Quantization
Quantization (Definition): Mapping a continuous sample x to a discrete output level:
Uniform Quantization
Definition: Equal-width quantization intervals:
xmax − xmin
∆=
L
Non-Uniform Quantization
Definition: Unequal quantization intervals; finer resolution near zero. Used for speech where
small amplitudes occur frequently.
Quantization Noise
Error:
eq (n) = x(n) − Q(x(n))
Binary Encoding
Definition: Mapping each quantization level to binary.
For L quantization levels:
Bits/sample = log2 L
A-Law
A|x|
, |x| < 1/A
C(x) = 11 + ln A
+ ln(A|x|) , 1/A ≤ |x| ≤ 1
1 + ln A
6
µ-Law
ln(1 + µ|x|)
C(x) = , µ = 255
ln(1 + µ)
Used in North America and Japan.
Advantages:
Issues:
Source
Generates the analog or digital data to be transmitted.
Multiplexer
Combines multiple data streams into one using TDM/FDM/CDM.
7
Line Coder
Line Coding (Definition): Mapping bits {0, 1} to waveforms s(t).
Required properties:
• DC suppression
• Self-clocking
Regenerative Repeater
Reconstructs digital pulses using:
• Sampling
• Threshold detection
• Re-transmission
Unipolar NRZ
Polar NRZ
Polar RZ
Manchester Coding
8
Differential Encoding
Definition: Information encoded as transitions, not absolute levels:
Pulse Shaping
Pulse Shaping (Definition): Designing pulses to limit bandwidth and reduce ISI.
Common pulses:
• Rectangular
• Raised cosine
∞
X
r(n) = ak h(nT − kT )
k=−∞
Eye Pattern
Eye Pattern (Definition): A superposition of multiple received waveforms used to visualize
ISI and noise.
Interpretation:
9
Nyquist Criterion for Zero ISI
Time-domain criterion: (
1, n = 0
p(nT ) =
̸ 0
0, n =
Frequency-domain condition:
1
P (f ) + P f − = constant
T
Equalizer
Equalizer (Definition): A receive-side filter that compensates channel distortion to minimize
ISI.
Advantage:
Disadvantage:
• Early–Late Gate
• Mueller–Müller algorithm
10