+ Reply to Thread
Results 1 to 11 of 11

Thread: Sample Size. Binomial

  1. #1
    Points: 49, Level: 1
    Level completed: 98%, Points required for next Level: 1

    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Sample Size. Binomial




    Hello everyone,

    I am trying to do an exercice where I have 30 batches of 200 units which have different number of faulty parts, as you can see in the attached picture.

    Could anyone help me about how to calculate the minimum sample size in order to get at least one defective part?

    I have calculated the probability which is: 162 faulty pieces/6000 units = 0,027

    I guess I should use the bernuilli equation for P(faulty pieces>=1) =0,99 or 1, and then obtain the size of the sample, but I am having problems calculating it by using this equation.

    Could anyone tell me if I am doing it correctly? or if there is a better way to calculate it.

    Thanks
    Attached Images  
    Last edited by cgarcia; 06-29-2016 at 01:19 PM.

  2. #2
    Devorador de queso
    Points: 95,705, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Posting AwardCommunity AwardDiscussion EnderFrequent Poster
    Dason's Avatar
    Location
    Tampa, FL
    Posts
    12,931
    Thanks
    307
    Thanked 2,629 Times in 2,245 Posts

    Re: Sample Size. Binomial

    Can you explain more what you mean by "minimum sample size in order to get at least one defective part". Are you picking from the 6000 units directly? Or are you going to be picking new parts and you want to guarantee a faulty part is in there?
    I don't have emotions and sometimes that makes me very sad.

  3. The Following User Says Thank You to Dason For This Useful Post:

    cgarcia (06-29-2016)

  4. #3
    Points: 49, Level: 1
    Level completed: 98%, Points required for next Level: 1

    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Re: Sample Size. Binomial

    Yes Dason, I would have to pick new ones and assure that there is at least 1 defective part in that new sample, with a probability of 99%.

  5. #4
    Devorador de queso
    Points: 95,705, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Posting AwardCommunity AwardDiscussion EnderFrequent Poster
    Dason's Avatar
    Location
    Tampa, FL
    Posts
    12,931
    Thanks
    307
    Thanked 2,629 Times in 2,245 Posts

    Re: Sample Size. Binomial

    The "sizes" listed only sum to 5940. Also how were the batches chosen? It doesn't seem like the proportion of faulty parts is distributed the way we would expect if each batch was independent and identically distributed.
    I don't have emotions and sometimes that makes me very sad.

  6. The Following User Says Thank You to Dason For This Useful Post:

    cgarcia (06-29-2016)

  7. #5
    Points: 49, Level: 1
    Level completed: 98%, Points required for next Level: 1

    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Re: Sample Size. Binomial

    Sorry, I made a mistake when I created the table. All batches sizes are 200. All batches are manufactured in a row by using the same process and machine. I am not even sure if it is possible to calculate that. I am really confused now.

  8. #6
    Devorador de queso
    Points: 95,705, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Posting AwardCommunity AwardDiscussion EnderFrequent Poster
    Dason's Avatar
    Location
    Tampa, FL
    Posts
    12,931
    Thanks
    307
    Thanked 2,629 Times in 2,245 Posts

    Re: Sample Size. Binomial

    Well there is definitely overdispersion. So it seems like there are times where the machine probably is more likely to spit out faulty parts. That complicates the matter a bit. Although we might be able to use something like a beta-binomial model to account for the batch effect if we treated consecutive batches as independent from one another.
    I don't have emotions and sometimes that makes me very sad.

  9. #7
    Points: 49, Level: 1
    Level completed: 98%, Points required for next Level: 1

    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Re: Sample Size. Binomial

    Could you please tell me how I could calculate it? Or give me the link from a website where I can find how to it.

    Thanks

  10. #8
    Human
    Points: 12,676, Level: 73
    Level completed: 57%, Points required for next Level: 174
    Awards:
    Master Tagger
    GretaGarbo's Avatar
    Posts
    1,362
    Thanks
    455
    Thanked 462 Times in 402 Posts

    Re: Sample Size. Binomial

    Quote Originally Posted by cgarcia View Post
    All batches sizes are 200. All batches are manufactured in a row by using the same process and machine.
    Then it sounds like a time series. If one part is faulty then probably the next part is also faulty.

    Could one imagine a model with the number of defective is Poisson distributed (or binomial since it is a there is a batch size of 200) with a parameter p?

    But suppose the (un-observable latent) parameter p_t varies like a time series as an AR(1) (auto regressive) model:

    p_t = a*p_t-1 + eps_t

    where eps_t is normal and independent with zero mean.

  11. #9
    Points: 49, Level: 1
    Level completed: 98%, Points required for next Level: 1

    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Re: Sample Size. Binomial

    Hello GretaGarbo,

    I don't understand that equation. Could you please explain to me how you would resolve it? Or what is the result so that I can try to do it by myself?

    Thank you

  12. #10
    Human
    Points: 12,676, Level: 73
    Level completed: 57%, Points required for next Level: 174
    Awards:
    Master Tagger
    GretaGarbo's Avatar
    Posts
    1,362
    Thanks
    455
    Thanked 462 Times in 402 Posts

    Re: Sample Size. Binomial

    Quote Originally Posted by cgarcia View Post
    I don't understand that equation. Could you please explain to me how you would resolve it? Or what is the result so that I can try to do it by myself?
    I just made that suggestion to see if someone else would agree. (Then maybe software suggestions could come later.) Sometime we believe that this can have an interest also to other people and not just the original poster.

    Maybe it is easier if one think of it a mixed model. So that one "can borrow information" from the other batches when estimating each batch proportion of faults. And using a beta distribution as prior and the binomial for the likelihood. (And maybe this is just what Dason intended above.) I believe there are standard software for this. We don't know what the original poster is using.

    (Sorry I am not writing a textbook of explanations. Let's se if someone agrees.

  13. #11
    Points: 49, Level: 1
    Level completed: 98%, Points required for next Level: 1

    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Re: Sample Size. Binomial


    Thank you. Maybe it is impossible to solve it, but i dont know the resason why.

+ Reply to Thread

           




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats