Comm-Optical Instrumentation - Unit 2
Comm-Optical Instrumentation - Unit 2
Instrumentation
Dr. Jaiprakash Narain Dwivedi
Course Outcome
• CO1: Understand and remember different modulation and
demodulation schemes for analog and digital
communications.
• CO2: Illustrate the basic knowledge of probability theory and
understand the effect of Noise in communication system.
• CO3: To design, implement and compare various modulation
and demodulation schemes.
• CO4: To understand about different component of optical
networks
• CO5: To understand the working of Optical sensors
2
Unit 2
• Probability Theory, Random Variables
• Gaussian Distribution, Transformation of Random
Variables
• PDF, CDF
• Mean, Moments, Covariance Functions
• Power Spectral Density, Correlation Functions
• Sampling theorem (Instantaneous Sampling and Flat
Top Sampling),
• TDM, Pulse Code Modulation,
• Differential PCM systems (DPCM), Delta modulation
3
Phenomena
Non-deterministic
Deterministic
Deterministic Phenomena
• There exists a mathematical model that allows
“perfect” prediction the phenomena’s
outcome.
• Many examples exist in Physics, Chemistry
(the exact sciences).
Non-deterministic Phenomena
• No mathematical model exists that allows
“perfect” prediction the phenomena’s
outcome.
Non-deterministic Phenomena
• may be divided into two groups.
1. Random phenomena
– Unable to predict the outcomes, but in the long-
run, the outcomes exhibit statistical regularity.
2. Haphazard phenomena
– unpredictable outcomes, but no long-run,
exhibition of statistical regularity in the
outcomes.
Phenomena
Non-deterministic
Deterministic
Haphazard
Random
Haphazard phenomena
– unpredictable outcomes, but no long-run,
exhibition of statistical regularity in the
outcomes.
– Do such phenomena exist?
– Will any non-deterministic phenomena exhibit
long-run statistical regularity eventually?
Random phenomena
– Unable to predict the outcomes, but in the long-
run, the outcomes exhibit statistical regularity.
Examples
1. Tossing a coin – outcomes S ={Head, Tail}
Unable to predict on each toss whether is Head or
Tail.
In the long run can predict that 50% of the time
heads will occur and 50% of the time tails will occur
2. Rolling a die – outcomes
S ={ , , , , , }
={1, 2, 3, 4, 5, 6}
An Event , E
The event, E, is any subset of the sample space,
S. i.e. any set of outcomes (not necessarily all
outcomes) of the random phenomena
Venn
S diagram
E
The event, E, is said to have occurred if after the
outcome has been observed the outcome lies in
E.
S
E
Examples
AB
A B
The event A B occurs if the event A occurs or
the event and B occurs .
AB
A B
Intersection
AB
A B
The event A B occurs if the event A occurs and
the event and B occurs .
AB
A B
Complement
A
A
The event A occurs if the event A does not
occur
A
A
In problems you will recognize that you are
working with:
A B
If two events A and B are are mutually
exclusive then:
1. They have no outcomes in common.
They can’t occur at the same time. The outcome
of the random experiment can not belong to both
A and B.
A B
Probability
Definition: probability of an Event E.
Suppose that the sample space S = {o1, o2, o3, …
oN} has a finite number, N, of oucomes.
Also each of the outcomes is equally likely
(because of symmetry).
Then for any event E
n E n E no. of outcomes in E
P E =
n S N total no. of outcomes
Note : the symbol n A = no. of elements of A
Thus this definition of P[E], i.e.
n E n E no. of outcomes in E
P E =
n S N total no. of outcomes
if A B = f
(A and B mutually exclusive)
If two events A and B are are mutually
exclusive then:
1. They have no outcomes in common.
They can’t occur at the same time. The outcome
of the random experiment can not belong to both
A and B.
A B
P[A B] = P[A] + P[B]
i.e.
P[A or B] = P[A] + P[B]
A B
Rule The additive rule
(In general)
or
P[A or B] = P[A] + P[B] – P[A and B]
Logic AB
A B
AB
Example:
Saskatoon and Moncton are two of the cities competing
for the World university games. (There are also many
others). The organizers are narrowing the competition to
the final 5 cities.
There is a 20% chance that Saskatoon will be amongst
the final 5. There is a 35% chance that Moncton will be
amongst the final 5 and an 8% chance that both
Saskatoon and Moncton will be amongst the final 5.
What is the probability that Saskatoon or Moncton will
be amongst the final 5.
Solution:
Let A = the event that Saskatoon is amongst the final 5.
Let B = the event that Moncton is amongst the final 5.
Given P[A] = 0.20, P[B] = 0.35, and P[A B] = 0.08
What is P[A B]?
Note: “and” ≡ , “or” ≡ .
P A B P A P B P A B
0.20 0.35 0.08 0.47
Rule for complements
2. P A 1 P A
or
P not A 1 P A
Complement
A
A
The event A occurs if the event A does not
occur
A
A
Logic:
A and A are mutually exclusive.
and S A A
A
A
thus 1 P S P A P A
and P A 1 P A
Conditional Probability
Conditional Probability
• Frequently before observing the outcome of a
random experiment you are given information
regarding the outcome
• How should this information be used in prediction of
the outcome.
• Namely, how should probabilities be adjusted to take
into account this information
• Usually the information is given in the following
form: You are told that the outcome belongs to a
given event. (i.e. you are told that a certain event has
occurred)
Definition
Suppose that we are interested in computing
the probability of event A and we have been
told event B has occurred.
Then the conditional probability of A given B is
defined to be:
P A B if P B 0
P A B
P B
Rationale:
If we’re told that event B has occurred then the sample
space is restricted to B.
The probability within B has to be normalized, This is
achieved by dividing by P[B]
The event A can now only occur if the outcome is in of
A ∩ B. Hence the new probability of A is:
A
P A B B
P A B
P B A∩B
An Example
The academy awards is soon to be shown.
For a specific married couple the probability that
the husband watches the show is 80%, the
probability that his wife watches the show is
65%, while the probability that they both watch
the show is 60%.
If the husband is watching the show, what is the
probability that his wife is also watching the
show
Solution:
The academy awards is soon to be shown.
Let B = the event that the husband watches the show
P[B]= 0.80
Let A = the event that his wife watches the show
P[A]= 0.65 and P[A ∩ B]= 0.60
P A B 0.60
P A B 0.75
P B 0.80
Independence
Definition
Two events A and B are called independent if
P A B P A P B
Note if P B 0 and P A 0 then
P A B P A P B
P A B P A
P B P B
P A B P A P B
and P B A P B
P A P A
Thus in the case of independence the conditional probability of
an event is not affected by the knowledge of the other event
Difference between independence
and mutually exclusive
mutually exclusive
Two mutually exclusive events are independent only in
the special case where
P A 0 and P B 0. (also P A B 0
Mutually exclusive events are
A highly dependent otherwise. A
B
and B cannot occur
simultaneously. If one event
occurs the other event does not
occur.
Independent events
P A B P A P B
P A B P A
or P A
P B PS
S
A B
The ratio of the probability of the
AB set A within B is the same as the
ratio of the probability of the set
A within the entire sample S.
The multiplicative rule of probability
P A P B A if P A 0
P A B
P B P A B if P B 0
and
P A B P A P B
and
P[A B] = P[A] + P[B] if A B = f
The Rule for complements
for any event E
P E 1 P E
Conditional probability
P A B
P A B
P B
The multiplicative rule of probability
P A P B A if P A 0
P A B
P B P A B if P B 0
and
P A B P A P B
if A and B are independent.
n E n E no. of outcomes in E
3. P E =
n S N total no. of outcomes
Note : n A = no. of elements of A
• In
an experiment, a measurement is usually
denoted by a variable such as X.
Normal Distribution
Undoubtedly, the most widely used model for the
distribution of a random variable is a normal
distribution.
For all time shift t, all k, and all possible choice of t1,t2…,tk
73
Mean, Correlation and Covariance Function
Let X(t) be a strictly stationary RP
The mean of X(t) is
X (t ) E X (t )
xf X ( t ) ( x ) d x
X for all t
fX(t)(x) : the first order pdf.
The autocorrelation function of X(t) is
E Y (t ) H ( f ) exp( j 2fτ1 ) df h( τ 2 ) RX ( τ 2 τ1 ) dτ1 dτ 2
2
df H ( f ) dτ h(τ ) R (τ τ ) exp( j 2fτ ) dτ
2 2
X 2 1 1 1
df H ( f ) dτ h(τ ) exp( j 2fτ ) R ( ) exp( j 2fτ ) d
2 2 2 X
*
H ( f ) (complex conjugate response of the filter)
77
2
E Y (t ) df H ( f )
-
2
R
-
X (τ ) exp( j 2f ) dτ
H ( f ) : the magnitude response
Define: Power Spectral Density ( Fourier Transform of R(τ )
S X ( f ) RX ( ) exp( 2πfτ ) d
-
E Y (t ) H ( f ) S X ( f ) df
2
-
2
E Y 2 (t ) h( τ1 )RX ( τ 2 τ1 ) dτ1 dτ 2
Recall
- -
Let H ( f ) be the magnitude response of an ideal narrowband filter
1, f f c 1 f
|H ( f )| 2
1
0, f f c 2 f
D f : Filter Bandwidth
If Δf f c and S X ( f ) is continuous,
E Y 2 (t ) 2Δf S X ( f c ) in W/Hz
78
Properties of The PSD
S X ( f ) RX ( τ ) exp( j 2f ) d
RX ( τ ) S X ( τ ) exp( j 2f ) df
Einstein-Wiener-Khintahine relations:
S X ( f ) RX ( τ )
79
a. S X (0) RX ( τ ) d
b. E X (t ) S X ( f ) df
2
c. If X (t ) is stationary,
E Y 2 (t ) (2Δf ) S X ( f ) 0
S X ( f ) 0 for all f
d. S X ( f ) RX ( τ ) exp( j 2f ) dτ
RX (u ) exp( j 2fu ) du, u τ
S X ( f )
e. The PSD can be associated with a pdf :
SX ( f )
pX ( f )
S
X ( f ) df
80
Baseband Communication System
Sampling
• Sampling
is taking samples from a continuous signal to convert
it to a discrete signal
TS=1/fS t (sec)
M(f)
LPF
TS=1/ t (sec)
fS
M(f)
LPF
TS=1/fS t (sec)
M(f)
0 0
1 201 1 201
0 0
1 201 1 201
Pulse Code Modulation (PCM) is a special form of A/D conversion. It consists of sampling, quantizing, and encoding steps. It is widely popular because:
- Used for long time in telephone systems
- Inexpensive electronics exists
- Errors can be corrected during long haul transmission
- Can use time division multiplexing
PCM
signal
Signals in PCM Process
Design Issues for PCM
- Analog to Digital Conversion
Aliasing
Sample timing accuracy
Quantization noise
D/A accuracy
Reconstruction filter
- Often voice and video signals do not change much from one
sample to next.
- Such signals has energy concentrated in lower frequency.
- Sampling faster than necessary generates redundant information.
Can save bandwidth by not sending all samples.
* Send true samples occasionally.
* In between, send only change from previous value.
* Change values can be sent using a fewer number of bits
than true samples.
Examples (CCITT standards)
* 32 k bits / s (4-bit quantization and 8 k samples /s) for 3.2kHz
* 64 k bits / s (4-bit quantization and 16 k samples /s) for 7 kHz
For slowly varying signals, a future sample can predicted from
past samples.
s(t) + e(t) e(t) s(t)
+ + +
- +
Predictor Predictor
Types of noise
* Quantization noise: step size takes place of smallest
quantization level.
* Granular noise: z(nTs) is always different from z((n-1)Ts).
* Slope overload noise: maximum slope of output signal is / Ts.
too small: slope overload noise
too large: quantization noise and granular noise
Example. Let w(t) A cos 2πf ot and the sampling frequency, f s kf o
where k is an integer, k 2. What is the minimum value of δ for no slope overload?
dw(t )
2 Af o π sin 2πf ot which has the maximum value of 2 Af o π.
dt
1 1
Ts
f s kf o
2 Aπ
For no slope overload, 2 Af o .
Ts k
Time Division Multiplexing
• Time interleaving of samples from different sources to be transmitted over a
single communication channel.
References