ECE4007 Information Theory and Coding: DR - Sangeetha R.G
ECE4007 Information Theory and Coding: DR - Sangeetha R.G
ECE4007 Information Theory and Coding: DR - Sangeetha R.G
p(x)
1/6
x
1 2 3 4 5 6
P(x) 1
all x
Probability mass function (pmf)
x p(x)
1 p(x=1)=1/6
2 p(x=2)=1/6
3 p(x=3)=1/6
4 p(x=4)=1/6
5 p(x=5)=1/6
6 p(x=6)=1/6
1.0
Cumulative distribution function
(CDF)
1.0 P(x)
5/6
2/3
1/2
1/3
1/6
1 2 3 4 5 6 x
Cumulative distribution
function
x P(x≤A)
1 P(x≤1)=1/6
2 P(x≤2)=2/6
3 P(x≤3)=3/6
4 P(x≤4)=4/6
5 P(x≤5)=5/6
6 P(x≤6)=6/6
Practice Problem:
• The number of patients seen in the ER in any given hour is a
random variable represented by x. The probability distribution
for x is:
x 10 11 12 13 14
P(x) .4 .2 .2 .1 .1
a. 1/6
b. 1/3
c. 1/2
d. 5/6
e. 1.0
Review Question 2
a. 1/5
b. 2/3
c. 1/2
d. 5/6
e. 1.0
Review Question 2
f ( x) e x
This function integrates to 1:
e
x x
e 0 1 1
0
0
Continuous case: “probability density function”
(pdf)
p(x)=e-x
x
1 2
2 2
x x
P(1 x 2) e e e 2 e 1 .135 .368 .23
1
1
Example 2: Uniform distribution
x
1
1 x
1 0 1
0
0
Example: Uniform
distribution
Discrete case:
E( X ) x p(x )
all x
i i
Continuous case:
E( X )
all x
xi p(xi )dx
Symbol Interlude
• E(X) = µ
– these symbols are used
interchangeably
Example: expected value
x 10 11 12 13 14
P(x) .4 .2 .2 .1 .1
x i n
1
X i 1
n
i 1
xi ( )
n
The probability (frequency) of each person in
the sample is 1/n.
Expected Value
2=Var(x) =E(x-)2
all x
Variance, continuous
Discrete case:
Var ( X ) (x
all x
i ) p(xi )
2
Continuous case:
( xi ) p(xi )dx
2
Var ( X )
all x
Symbol Interlude
• Var(X)= 2
• SD(X) =
– these symbols are used
interchangeably
Review Question 3
a. .50, .50
b. .50, .25
c. .25, .50
d. .25, .25
Important discrete probability
distribution:
Bernoulli
Binomial
Bernoulli Distribution
• In probability theory and statistics, the
Bernoulli distribution, named after Swiss
mathematician Jacob Bernoulli is the discrete
probability distribution of a random variable
which takes the value 1 with probability p and
the value 0 with probability q=1-p.
p(X)=p; x=1
p(x)=q=1-p; x=0 (not necessarily equi-
probable)
Binomial Probability
Distribution
10 * (½)5=0.3125
Binomial distribution function:
x
0 1 2 3 4 5
number of heads
Binomial distribution, generally
Note the general pattern emerging if you have only two possible
outcomes (call them 1/0 or yes/no or success/failure) in n independent
trials, then the probability of exactly X “successes”=
n = number of trials
n X n X
p (1 p )
X 1-p = probability
of failure
X=# p = probability of
successes out success
of n trials
Binomial distribution: example
20 10 10
(.5) (.5) .176
10
Binomial distribution:
example
Joint Distributions
More Than One Random Variable
and Independence
Joint Distributions
More Than One Random Variable
and Independence
Joint Distributions
More Than One Random Variable
and Independence
Joint Distributions
More Than One Random Variable
and Independence
Independence
Independence
Functions of Random Variables
Functions of Random Variables
Linear Combinations of Independent
Random Variables
Functions of Random Variables
What If the Random Variables Are
Not Independent?
Functions of Random Variables
What If the Random Variables Are
Not Independent?
Random Samples, Statistics, and
The Central Limit Theorem
Sum of two Uniform RVs
Sum of multiple Uniform
RVs
Sum of two Exponential
RVs
Sum of multiple Exponential
RVs
Sum of multiple Gaussian
RVs
Random Samples, Statistics, and
The Central Limit Theorem