(New page: 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(...)
 
 
Line 1: Line 1:
 +
[[Category:ECE302Fall2008_ProfSanghavi]]
 +
[[Category:probabilities]]
 +
[[Category:ECE302]]
 +
[[Category:problem solving]]
 +
 
p = fraction supporting McCain
 
p = fraction supporting McCain
  
Line 24: Line 29:
  
 
Pr[ | (X/1000) - p | >= 0.1 ] <= (1/4)/10 = 1/40
 
Pr[ | (X/1000) - p | >= 0.1 ] <= (1/4)/10 = 1/40
 +
----
 +
[[Main_Page_ECE302Fall2008sanghavi|Back to ECE302 Fall 2008 Prof. Sanghavi]]

Latest revision as of 12:35, 22 November 2011


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