logo - islamic university of...

32
1

Upload: others

Post on 01-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

1

Page 2: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

LOGO

iugaza2010.blogspot.com

Chapter 2

Discrete Random Variables(R.V)

Part3

Page 3: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

3

Expected value (the average) of a random variable:

is one number that summarizes an entire probability model.

After that we want to know : what are the chances of observing an

event far from the average ? ( variance)

Example exam average and variance

Refer to page.77

Page 4: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

4

2

x

[ ] [( ) ]

Standard Deviation: = [ ]

xVar X E x

Var X

Page 5: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

5

2 2 2

2 2

2 2

2 2

2 2

[ ] [( ) ] [ 2 ]

[ ] [ ] 2 [ ]

[ ] 2 [ ]

[ ] 2

[ ] [ ]

x x x

x x

x x

x x x

x

Var X E x E x x

E x E E x

E x E x

E x

Var X E x

2 2 2[ ] [( ) ] [ ]x xVar X E x E x

Page 6: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

6

2

[ ] [ ]

[ ] [ ]

E aX b a E X b

Var aX b a Var X

2

2

2 2

2 22 2

2

[ ] [ ] [( ) ]

[ ]

= [ ] [ ]

[ ]

Y

x

Y aX b

Var aX b Var Y E Y

E aX b aE X b

E aX b aE X b E aX aE X

E a X E X a E X

a

[ ]Var X

Page 7: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

7

[ ] [ ]Var X b Var X

shifting a random variable by a constant does not cahnge

the dispersion of outcomes around the expected value.

Dispersion

Page 8: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

8

2 2

[ ] ( )

[ ] ( )

[ ] is a central moment of X

n n

X

X

E X X P x

E X X P x

Var X

ththe n moment :

the second moment :

Page 9: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

9

[ ]

[ ]x x

E a a

E

Page 10: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

10

Var[X]E[X]Families

p(1-p)pBernoulli

np(1-p)npBinomial

ααPoisson

(1-p)/p21/pGeometric

(l-k)(l-k+2)/12(k+l)/2Dis Uniform

k(1-p)/p2k/pPascal

Page 11: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

11

Find:

0.2 0

0.7 1( )

0.1 2

0 otherwise

N

n

nP n

n

[N] (0.2)(0) (0.7)(1) (0.1)(2) 0.9E

(a) E[N]?

(c) Var[N]?2 2 2[ ] [ ] 1.1 (0.9 ) 0.29

DVar N E N

2 2 2 2[N ] (0.2)(0 ) (0.7)(1 ) (0.1)(2 ) 1.1E

(b) E[N2]?

(d) σN?

N = [ ] =0.538Var N

Page 12: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

12

Let X have the Binomial PMF

Find:

44

( ) 0.5XP xx

44 4

0

4 4

4

4 4[X] ( ) 0 0.5 1 0.5

0 1

4 4 2 0.5 3 0.5

2 3

4 4 0.5 2

4

: [ ] 4*0.5 2

X

x

E xP x

or E X np

(a) The standard deviation σX?

Page 13: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

13

44 42 2 2 2

0

4 42 2

42

2 2 2

4 4[X ] ( ) 0 0.5 1 0.5

0 1

4 4 2 0.5 3 0.5

2 3

4 4 0.5 5

4

[ ] [ ] 5 (2 ) 1

:

[ ] (1

X

X

x

E x P x

Var X E X

or

Var X np p

X

) 4*0.5*0.5 1

= [ ] 1Var X

Page 14: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

14

(b) What is P[ µ X − σ X ≤ X ≤ µ X + σ X ] ?

4 4 4

[2 1 2 1] [1 3]

[ 1] [ 2] [ 3]

4 4 4 7 0.5 0.5 0.5

1 2 3 8

P x P x

P X P X P X

44

( ) 0.5XP xx

Page 15: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

15

(c) What is P[ 1.38 ≤ X ≤ 3.62 ] ?

4 4

[1.38 3.62] [2 3]

[ 2] [ 3]

4 4 0.5 0.5

2 3

P x P x

P X P X

44

( ) 0.5XP xx

Page 16: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

16

/

( )

[ ]( )

0 otherwise

X

X B

P xx B

P BP x

Page 17: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

17

If B={Y<3} Find PY/B(y) , E[Y/B] , Var[Y/B] ?

1/ 4 1

1/ 4 2( )

1/ 2 3

0 otherwise

Y

y

yP y

y

/

{ 1} {1,2}

1 1 1[ ] [ 1] [ 2]

4 4 2

( ) ( ) {1,2}

[ ]( ) 0.5

0 otherwise0 otherwise

Y Y

Y B

B Y

P B P y P y

P y P yy B y

P BP y

Page 18: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

18

/

/

1/ 4=0.5 1

1/ 2( )

{1,2} 1/ 4( ) =0.5 20.5

1/ 20 otherwise

0 otherwise

( ) (0.5)(1) (0.5)(2) 1.5

Y

Y B

Y B

y

P yy

P y y

E Y

Page 19: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

19

If B={|X|>0} Find PX/B(y) ?

0.2 1

0.5 0( )

0.3 1

0 otherwise

X

x

xP x

x

/

{| | 0} {1,1}

1 and x= 1 satisfy

[ ] [ 1] [ 1] 0.2 0.3 0.5

( ) ( ) { 1,1}

[ ]( ) 0.5

0 otherwise0 otherwise

X X

X B

B X

x

P B P x P x

P x P xx B x

P BP x

Page 20: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

20

/

0.2 1

0.5 0.4 10.3

( ) = 1 0.6 10.5

0 otherwise0 otherwise

X B

x

x

P x x x

Page 21: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

21

4

X/B

4( ) 0.5 , B={X 0}

Find P (x) & E[X/B] ?

XP xx

4 4 4 4

4

{0,1,2,3,4}

{1,2,3,4}

[ ] [ 1] [ 2] [ 3] [ 4]

4 4 4 4 15 = 0.5 0.5 0.5 0.5

1 2 3 4 16

4 15: [ ] 1 [ 0] 1 0.5

0 16

x

B

P B P X P X P X P X

or P B P X

Page 22: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

22

/

4

/

( ) ( ) {1,2,3,4}

[ ]( ) 15 /16

0 otherwise0 otherwise

40.5

( ) = 1, 2,3,415 /16

0 other

X X

X B

X B

P x P xx B x

P BP x

xP x x

4

/

1

4 1 1, 2,3,4

15

0 otherwisewise

4 4 4 41 1 1 1 32[ / ] ( ) 1 2 3 4

1 2 3 415 15 15 15 15X B

x

xx

E X B xP x

Page 23: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

23

Test a sequence of integrated circuits until you find the first

failure and then stop.

Let N be the number of tests.

The probability of failure p=0.1

Consider the condition B={N≥20}

1(1 ) n=1,2,3,.....( ) , Geometric PMF

0 otherwise

n

N

p pP n

(a) Find the PMF PN(n)

Page 24: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

24

(b) Find the conditional PMF of N given that there have

been 20 consecutiveعلى التوالي tests without a failure .

191 1

20 1

1

1

191 19

1

19

[ ] (1 ) 1 (1 )

(1 ) 1

1 1

( )(1 ) 1 (1 )

[ ] 1 1 (1 ) (1 )

n n

n n

nj n

j

x

x

n

P B p p p p

x x x

x p x p

p p p

P B p p

1

1

(1 ) 1n

j n

j

x x x

Page 25: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

25

/

1

19

20

( )

[ ]( )

0 otherwise

(1 ) 20,21,22,......

(1 )

0 otherwise

(1 ) 20,

N

N B

n

n

P nn B

P BP n

p pn

p

p p n

21,22,......

0 otherwise

Page 26: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

26

On the internet, data is transmitted in packets the number of

packets N needed to transmit a Web page depends on

whether the page has graphic images.

Event I ,the page has images then N between 150

Event T , the page is just text then N between 15

The page has images with probability ¼

Find:

/(a) The conditional probability ( )?N IP n

/

1 3(I) (T)

4 4

1 1,2,3,....,50

( ) 50

0 otherwiseN I

P = , P =

nP n

Page 27: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

27

/(b) The conditional probability ( )?N TP n

/

1 1, 2,3,.4,5

( ) 5

0 otherwiseN T

nP n

Page 28: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

28

N(c) The PMF for packets P (n)?

/

/

/

( ) 1, 2,3,....,50

[ ]( )

0 otherwise

1 1( ) ( ) ( ) 0.005

4 50

( ) 1, 2,3,.4,5

[ ]( )

0 otherwise

(

N

N I

N N I

N

N T

N

P nn

P IP n

P n P I P n

P nn

P TP n

P n

/

3 1) ( ) ( ) 0.15

4 5N IP T P n

Page 29: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

29

0.005 0.15 0.155 1, 2,3, 4,5

( ) 0.005 6,7,.....,50

0 otherwise

N

n

P n n

Page 30: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

30

(d) (n) ? N / N 10 P

/ 10

10

1

/ 10

( )( )

( 10)

( 10) ( ) (0.155)(5) (0.005)(5) 0.8

0.155 1, 2,3, 4,5

0.8

0.005( ) 6,7,8,9,10

0.8

0 otherwise

NN N

n

N N

P nP n

P N

P N P N

n

P n n

Page 31: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

31

(e) [ ] ? E N / N 10

5 10

1 6

0.155 0.005[ ] 3.16

0.8 0.8n n

E N / N 10 n n

(f) [ ] ? Var N / N 10

5 102 2 2

1 6

2

0.155 0.005[ ] 12.7

0.8 0.8

[ ] 12.7 3.16 2.7

n n

E N / N 10 n n

Var N / N 10

Page 32: LOGO - Islamic University of Gazasite.iugaza.edu.ps/masmar/files/Probability-Discussion_Ch2_Part3.pdf · 24 (b) Find the conditional PMF of N given that there have been 20 consecutiveيلاوتلا

LOGO

32

[email protected]