Random Variables # faulty pixels in monitor Independence # alpha - - PowerPoint PPT Presentation

random variables
SMART_READER_LITE
LIVE PREVIEW

Random Variables # faulty pixels in monitor Independence # alpha - - PowerPoint PPT Presentation

Random Variables Mathematics for Computer Science MIT 6.042J/18.062J Informally: an RV is a number produced by a random process: # hours to next system crash Random Variables # faulty pixels in monitor Independence # alpha


slide-1
SLIDE 1

Albert R Meyer May 6, 2013 ranvarindep.1

Mathematics for Computer Science

MIT 6.042J/18.062J

Random Variables Independence

Albert R Meyer May 6, 2013 ranvarindep.2

Random Variables

Informally: an RV is a number produced by a random process:

  • # hours to next system crash
  • # faulty pixels in monitor
  • # alpha particles in a second
  • # heads in n coin flips

Albert R Meyer May 6, 2013 ranvarindep.3

Intro to Random Variables

Example: Flip three fair coins

C ::= # heads (Count)

  =    1 if all atch, :: 0 otherwis M e. M

Albert R Meyer May 6, 2013 ranvarindep.4

Intro to Random Variables

Specify events using values of variables

  • [C = 1] is event “exactly 1 head”

Pr[C = 1] = 3/8

  • Pr[C ≥ 1] = 7/8
  • Pr[C·M > 0] = Pr[M>0 AND C>0]

= Pr[all heads] = 1/8

1

slide-2
SLIDE 2

Albert R Meyer May 6, 2013 ranvarindep.5

What is a Random Variable?

Formally,

Sample space (usually)

R:S→

Albert R Meyer May 6, 2013 ranvarindep.6

What is a Random Variable?

R packages together the events [R = a] for Event properties carry

  • ver to RV’s directly

a ∈ R

Albert R Meyer May 6, 2013 ranvar-mutual.7

Mutally Independent Variables

Def:

R1, R2, … , Rn

are mutually indep RV’s iff [R1 =a1],[R2 =a2],…,[Rn

=an]

are mutually indep events for all a1, a2, … , an

Albert R Meyer May 6, 2013 ranvar-mutual.8

Mutally Independent Variables

Alternatively: Pr[R1 =a1 AND R2 =a2 AND ··· AND Rn =an] = Pr[R1 =a1]·Pr[R2 =a2]· ··· Pr[Rn =an]

2

slide-3
SLIDE 3

Albert R Meyer May 6, 2013 ranvarindep.11

Are C and M independent? Pr[M=1]·Pr[C=1] > 0 Pr[M=1 and C=1] = 0

Independent Variables

NO

Albert R Meyer May 6, 2013 ranvarindep.12

The indicator variable for event A: (Sanity check: IA and IB are independent iff A and B are independent) IA ::= 1 if A occurs, 0 if A does not occur.     

Indicator Variables

Albert R Meyer May 6, 2013 ranvarindep.13

O ::= odd #Heads Are M and IO independent?

Independent Variables

YES

(Work it out!)

Albert R Meyer May 6, 2013 ranvarindep.14

Independent Variables

Lemma:

If R is independent of S, then R is independent of any information about S.

3

slide-4
SLIDE 4

Albert R Meyer May 6, 2013 ranvarindep.15

Independent Variables

Lemma:

If R is independent of S, and , then R is independent of f(S)

f : R → R

Albert R Meyer May 6, 2013 ranvar-mutual.17

k-way Independent Variables

k-way Independence: any k of the variables are mutually independent

2-way is called pairwise

Albert R Meyer May 6, 2013 ranvar-mutual.18

H

i ::= indicator for Head on flip i E[1,k]

(mod 2 sum).

Any k of them are independent, but not k+1-way independent since any k determine the remaining one.

k-way Independent Variables

O ::= ⊕i=1

k Hi

Albert R Meyer May 6, 2013 ranvar-mutual.19

Pairwise Independent Variables

Pairwise Independence sufficient for major applications (in later lecture). Good to know, since pairwise holds in important cases where mutual does not.

4

slide-5
SLIDE 5

MIT OpenCourseWare http://ocw.mit.edu

6.042J / 18.062J Mathematics for Computer Science

Spring 2015 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.