Top Banner
Probability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter 2 Viewgraphs 1
32

Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Apr 25, 2018

Download

Documents

dangdien
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Probability and Stochastic ProcessesA FriendlyIntroductionfor ElectricalandComputerEngineers

Chapter 2 Viewgraphs

1

Page 2: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Random Variables

Experiment:Procedure+ Observations

Observationis anoutcome

Assigna numberto eachoutcome:Randomvariable

2

Page 3: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Random Variables

Threewaysto geta rv:

Therv is theobservation

Therv is a functionof theobservation

Therv is a functionof a rv

3

Page 4: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Discrete Random Variables

� rangeof (setof possiblevalues)

is discreteis � is countable

Discreterv hasPMF

4

Page 5: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

PMF Properties

�� � � �

For anevent � ,

� ��

5

Page 6: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Bernoulli RV

Getthephonenumberof a randomstudent.Let if thelastdigit is

even.Otherwise,let .

�otherwise

6

Page 7: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Binomial RV

Test circuits,eachcircuit is rejectedwith probability independentof

othertests.

no. of rejects

is thenumberof successesin trials:

� � � � �

otherwise

7

Page 8: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Geometric RV

Circuit rejectedwith prob . is thenumberof testsup to andincludingthe

first reject.

� � � � � �� � � � � � �� � � � � � ��

� � � � � �� � �

Fromthetree, , ,

� �otherwise

8

Page 9: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Geometric:

� �

otherwise

0 10 200

0.1

0.2

y

PY(y

)

9

Page 10: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Pascal RV

No. of tests, , neededto find rejects.

rejectsin tests

successon attempt

Events and areindependent

10

Page 11: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Pascal continued

and is binomial:

succ.in trials

� � � � � � � �

� �� � � � �

otherwise

11

Page 12: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Pascal: ,

� �� � � �

otherwise

0 10 20 30 400

0.05

0.1

l

PL(l

)

12

Page 13: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Summary

Bernoulli No. of succ.ononetrial

Binomial No. of succon trials

Geometric No. of trialsuntil first succ.

Pascal No. of trials until succ

13

Page 14: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Poisson rv

Countsarrivals of something.

Arrival rate , interval time .

With ,�

� �

otherwise

14

Page 15: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Poisson:

� � ��

otherwise

0 2 40

0.5

1

j

PJ(j

)

15

Page 16: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Poisson:

� �

otherwise

0 5 10 150

0.1

0.2

j

PJ(j

)

16

Page 17: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Cumulative Distribution Functions

Thecumulative distribution function (CDF) of randomvariable is

17

Page 18: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

CDF Example

−1 0 1 2 30

0.5

1

r

PR(r

)

−1 0 1 2 30

0.5

1

r

FR(r

)

At thediscontinuities and , � is theuppervalues.(right

handlimit)

18

Page 19: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

CDF Properties

For any discreterv , range � � � satisfying � � ,� and �

For all , � �

For � � andsmall ,� � � � � �

� � � for � � � �

19

Page 20: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Expected Value

Theexpectedvalueof is

�� � �

Also calledtheaverageof .

20

Page 21: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Average vs.

Averageof samples: � ����� �

Each � . If each � occurs � times,�

� � ��

� � ��

� � ��

21

Page 22: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Derived Random Variables

Eachsamplevalue of a derived rv is a function of a sample

value of a rv .

Notation:

ExperimentalProcedure

1. Performexperiment,observe outcome .

2. Find , thevalueof

3. Calculate

22

Page 23: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

PMF of

� ! � � �� ��

23

Page 24: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Problem 2.6.5

Sourcetransmitsdatapacketsto receiver.

If rec’d packet is error-free,rec’vr sendsbackACK, otherwiseNAK sent.

For eachNAK, thepacket is resent.

Eachpacket transmissionis independentlycorruptedwith prob .

Find thePMF of , no. of timesapacket is sent

Eachpacket takes1 msecto transmit.Sourcewaits1 msecto receive

ACK. equalthetime req’d until thepacket is receivedOK. Whatis

" ?

24

Page 25: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Expected value of

Thm: Givenrv with PMF � , theexpectedvalueof , is

� � �

Example: :

� � �

25

Page 26: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Variance and Std Deviation

Variance: � �� � �

� � �

Variancemeasuresspreadof PMF

StandardDeviation: �

Unitsof � arethesameas .

26

Page 27: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Properties of the variance

If , .

If , � .

27

Page 28: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Conditional PMF of given

Given , with ,

� �

Two kindsof conditioning.

28

Page 29: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Conditional PMFs - version 1

Probabilitymodeltellsus � � # for possible � .

Example:In the th monthof theyear, thenumberof cars crossingthe

GW bridgeis Poissonwith param � .

29

Page 30: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Conditional PMFs - version 2

is aneventdefinedin termsof .

is a subsetof � suchthatfor each � , either or .� �

$ � � � �$ % � &

otherwise

30

Page 31: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Conditional PMF Example

Example: is geometricwith . Whatis theconditionalPMF of

givenevent that ?

31

Page 32: Probability and Stochastic Processes - Bucknell …kozick/elec47102/prob_ch2.pdfProbability and Stochastic Processes A Friendly Introduction for Electrical and Computer Engineers Chapter

Conditional Expectations

Replace � with � �

� � �� � �

32