Docsity

Random Variables - Telecommunications - Lecture Slides, Slides of Telecommunication electronics

Partial preview of the text

Download Random Variables - Telecommunications - Lecture Slides and more Slides Telecommunication electronics in PDF only on Docsity!

Random Variables

Random Variables

  • Many random phenomena have outcomes that are real

numbers,

  • e.g., the voltage, v(t) at time, t, across a noisy resistor, number of people on a New York to Chicago train, etc.
  • In engineering, technology, and science; we are generally

interested in numerical outcomes.

  • Even when the universal set, S, in not numerical, we may apply a mapping to convert the outcomes to real numbers.

Universal Set, S

R

X(.)

X:S→R

(Real numbers)

Mapping

Domain Range

Conditions:

The mapping is single-valued.

The set {X ≤ x} is an event. This is the set of random variable X taking values equal or less than x in a trial chance experiment, E.

Basic Definitions

• Discrete Random Variable: A random variable

that has a countable number of elements in

the range.

• Continuous Random Variable: A random

variable that has an uncountably infinite

number of elements in the range.

Example 1:

X 1 -1 -1 1 S HH HT TH TT

Suppose you match coins with a friend, winning $1 if two coins match and losing $1 if the coins do not match.

Example 1: S={HH, HT, TH, TT} s1 s2 s 3 s 4

Random Variable: X( s1 ) = X( s4 ) = + X( s2 ) = X( s3 ) = -

Thus,

⇒ Single-valued mapping

In this case, a random variable takes on only a finite number of values (+1, -1), satisfying property c.

If we let x = 0.6, then X ≤ 0.6, if s = HT or TH, i.e., the event {HT, TH}. Thus x = 0.6 determines an event.

Let x = -10, the {X ≤ -10} = Ø

Let x > 1, then {X ≤ x} = S

Thus, for every x, we have an event and b is satisfied.

Cumulative Distribution Function (CDF)

Let X : a random variable with a particular value, x, then,

FX(x) = Pr[X ≤ x]

Thus, the CDF is the probability of event {X ≤ x}, i.e., the random variable, X, takes on a value equal to or less than x.

Example 2

Experiment: Observing the parity bit in a word in computer memory.

Bit “ON” ⇒ X = 1 Bit “OFF” ⇒ X = 0

The OFF state has a probability q and thus the ON state has a probability of (1-q).

Sample space, S = {OFF, ON}

Plot FX(x)

Example 3

Determine CDF for a single toss of a die.

S = { 1 , 2 , 3 , 4 , 5 , 6 }

 - Example - x ≥ 6 FX ( x ) = Pr[ X ≤ x ]= - For x < 1 FX ( x ) = Pr[ X ≤ x ] = 
  • 1 ≤ x < 2 FX ( x ) = Pr[ X ≤ x ] = 1 /
    • 2 ≤ x < 3 FX ( x ) = Pr[ X ≤ x ] = 2 / - 5 ≤ x < 6 FX ( x ) = Pr[ X ≤ x ] = 5 /

Example 4

A random variable has a PDF given by

FX(x) = 0 - ∞ < x ≤ 0 = 1-e-2x^ 0 < x ≤ ∞

Find the probability that X > 0.5.

Find the probability that X ≤ 0.

Find the probability that 0.3 ≤ X ≤ 0.

Example 4

[ ]

1 ( 1 ) 0. 3679

( ) Pr 0. 5 1 Pr[ 0. 5 ] 1 ( 0. 5 )

= − −^1 =

= − ≤ = −

e −

a X X FX

( b ) Pr [ X ≤ 0. 25 ] = FX ( 0. 25 ) = ( 1 − e −^0.^5 ) = 0. 3935

[ ]

( ) Pr 0. 3 0. 7 ( 0. 7 ) ( 0. 3 )

= −^1.^4 − −^0.^6 =

e −^ e −

c X FX FX

Example 5

A random variable has PDF given by:

FX(x) = A(1-e-(x-1)^ ) 1< x < ∞ = 0 - ∞ < x ≤ 1

Find A for a valid CDF FX(x) =?

Pr[2 < X < ∞] =?

Pr[1 < X ≤ 3] =?

Example 5

(a) Since F (^) X(∞) = 1,

⇒ A [1 – e-∞] ⇒ A = 1

(b) FX(2) = [1 – e-1] = 0.

Pr[2 < X < ∞ ] = FX(∞) - FX(2) = 1 - 0.6321 = 0.

(c) Pr[1 < X ≤ 3 ] = FX(3) - FX(1)

= (1 – e-2) - (1 – e^0 ) = 0.