Revision as of 12:35, 22 November 2011 by Mboutin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


p = fraction supporting McCain

To find p, ask 1000 people who they support.

declare answer = # supp Mc / 1000 = X / 1000

X = # supp Mc in poll

X is binomal(1000,p)

E[X] = 1000*p

Var(X) = 1000*p*(1-p)

Pr[ |(X/1000) - p | >= 0.1 ]

= Pr[ | X - 1000*p | >= 1000 ]

<= Var(X)/100^2

= 1000*p*(1-p)/100^2

= p*(1-p)/10

Pr[ | (X/1000) - p | >= 0.1 ] <= (1/4)/10 = 1/40


Back to ECE302 Fall 2008 Prof. Sanghavi

Alumni Liaison

Ph.D. 2007, working on developing cool imaging technologies for digital cameras, camera phones, and video surveillance cameras.

Buyue Zhang