r/AskStatistics • • 10d ago

Binomial distribution when number of trials not fixed?

Hi,

I’m dealing with a system that occasionally fails during power-up. Each trial has two possible outcomes: failure or success. My initial thought was to use a binomial distribution.

The assumptions seem to hold:

  • Two possible outcomes: Yes
  • Constant probability: As far as we know
  • Independent trials: Yes

My uncertainty is about the fixed number of trials requirement. We can choose how many trials to perform, but I’d prefer one continuous test session rather than repeated batches of, say, 5,000 trials. Does this still satisfy the requirement?

Also, the failure probability is unknown. So far, we’ve observed 3 failures in 10,000 trials. Since testing is time-consuming, I’d prefer not to run significantly more trials just to improve the probability estimate.

Would a binomial distribution be appropriate here, or would a Poisson distribution be better suited?

This is work related, and my background is electronics engineer fyi.

(could ofc use som bot to get an answer, but I dont trust em enough, and would rather be confident in my work, and learn things properly.)

4 Upvotes

5 comments sorted by

4

u/efrique PhD (statistics) 10d ago

What is it you're trying to find out, exactly?

We can choose how many trials to perform,

If the choice of the number of trials doesnt depend on what outcomes you observe, you could condition on the number of trials, in which case binomial ought to be okay.

If you kept sampling until you saw 3 successes (say), this would be negative binomial.

It doesnt really sound like either of those, though. There's not really a probability model for fudging your stopping criterion as you go.

I’d prefer one continuous test session

How do you decide to stop sampling?

Would a binomial distribution be appropriate here, or would a Poisson distribution be better suited?

Choosing one or the other of those two is not going to make enough difference to matter.

So far, we’ve observed 3 failures in 10,000 trials

  1. If you're counting trials you have already done, your protocol appears to be to make it up as you go along, or just keep sampling until you are happy. If that's close to descriptive, its not really conducive to coming up with a good model for the stopping criterion (how do we model the choice process/biases involved?)
  2. The information content of only 3 failures is low. If we consider it as approximately Poisson, the standard error of an estimate of 3 is √3; its consistent with a broad range of failure rates

    (e.g. a 95% CI would be (0.0000619, 0.0008767) failures per trial ...)

2

u/seanv507 10d ago edited 10d ago

So you 'can't' do this.

The problem is that if you make your stopping criteria data dependent, then the binomial estimate is inappropriate as you guessed.

Sequential analysis is the field that does this. https://en.wikipedia.org/wiki/Sequential_analysis

You could also look at Bayesian approaches, which supposedly don't suffer from this. However, my suspicion is that the problem gets hidden in an appropriate choice of prior.

Edit: I am confused about what question you are trying to answer. A typical question is 'is the failure rate in plant B, significantly higher than in plant A'. But it sounds like you want to identify individual failures????

1

u/LawOfSmallerNumbers 10d ago

The wiki link above is good.

There is a link off that page to “Optimal stopping” (note, not “optional”, that’s something else) that OP might find helps to frame a decision problem for their setting.

On that wiki page, ignore the two complex finance problems about options pricing…some obsessed editor is riding their hobby horse, just look at the easier examples.

2

u/COOLSerdash 10d ago

Can you please tell us what you want to find out or estimate? What's the ultimate goal of your analysis?