LFD Book Forum  

Go Back   LFD Book Forum > Course Discussions > Online LFD course > Homework 1

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2015, 10:34 AM
Andrew87 Andrew87 is offline
Junior Member
 
Join Date: Feb 2015
Posts: 6
Default Homework Q5

Hi, I'm working on the 6-th question but I can't get the solution.

I solved Q5 and I found a probability to get \upsilon = 0 on just one sample (N=10) of 0.0047. Then to compute the probability to get at least one sample with \upsilon = 0, I modeled the number of samples with 0 red marbles N_0 with a binomial random variable B(0.0047, 1000). Hence, the probability I need is

P(N_0 \geq 1) = 1 - P(N_0 = 0)

and

P(N_0 = 0) = (1 - 0.0047)^{1000} = 0.009

Finally P(N_0 \geq 1) = 0.991, so my closest answer is [3] = 0.550, however the solution report [c] as right answer. Where did I make a mistake ? Thank you in advance for your time (and sorry for my english).
Reply With Quote
  #2  
Old 02-28-2015, 07:55 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: Homework Q5

Quote:
Originally Posted by Andrew87 View Post
Hi, I'm working on the 6-th question but I can't get the solution.

I solved Q5 and I found a probability to get \upsilon = 0 on just one sample (N=10) of 0.0047. Then to compute the probability to get at least one sample with \upsilon = 0, I modeled the number of samples with 0 red marbles N_0 with a binomial random variable B(0.0047, 1000). Hence, the probability I need is

P(N_0 \geq 1) = 1 - P(N_0 = 0)

and

P(N_0 = 0) = (1 - 0.0047)^{1000} = 0.009

Finally P(N_0 \geq 1) = 0.991, so my closest answer is [3] = 0.550, however the solution report [c] as right answer. Where did I make a mistake ? Thank you in advance for your time (and sorry for my english).
I did the math and the probability that one sample has no red marbles, which is 0.45^{10} evaluates to approximately 0.00034 rather than 0.0047.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #3  
Old 03-03-2015, 07:25 AM
Andrew87 Andrew87 is offline
Junior Member
 
Join Date: Feb 2015
Posts: 6
Default Re: Homework Q5

Thank you very much Prof. Yaser !

I did a mistake in calculating the probability of the Homework 4. This was caused by the fact that I used the Hoeffding inequality to compute this probability instead of a simple binomial distribution. Now, I'm wondering a more general question: is this slack between the exact probability one gets with the binomial (in this case) and the bound provided by the Hoeffding inequality typical ? Thank you very much in advance for your answer.
Reply With Quote
  #4  
Old 03-03-2015, 08:47 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: Homework Q5

Yes. Since the bound is the same for cases that have different probabilities, it is forced to be loose in some of the cases.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
  #5  
Old 03-04-2015, 04:15 AM
Andrew87 Andrew87 is offline
Junior Member
 
Join Date: Feb 2015
Posts: 6
Default Re: Homework Q5

Thank you very much for your answer Prof. Yaser !
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:29 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.