How to get the number of successes given $n$ trials , probability $P$ and a random variable $X$

1.4k Views Asked by At

I would like to have a formula that gives the number of successful trials of $n$ trials when the probability of each trial is $P$ and supplied with a random value $X=[0,1]$. Do I make somewhat sense?

Here I read about binomial probability and it says:

Suppose a binomial experiment consists of $n$ trials and results in $x$ successes. If the probability of success on an individual trial is $P$, then the binomial probability is: $b(x; n, P) = \frac{ n!}{x! (n - x)!}P^x(1 - P)^{n - x}$.

But if I understand this right I need a formula for the function $x(b, n,P)$.

Update I'll try to clarify:

If you have a lottery you can make a draw to see if you win. If you participate in 200 lotteries you will have to make 200 draws to actually see how many times you'll win. But I want to simplfy the 200 draws to ONE draw. That draw would give me how many times I win the lottery (NOT the expected value, but the actual times I win according to that draw).

With a random value X I could decide each draw where x < P will be a win if x=[0,1]. I want to give my random X to one consolidated draw to decide how many wins I'll get. Still X=[0,1]. Let say if X get really close to 0 I will get many wins, and close to 1 I will get very few, this depends of P and n of course.

1

There are 1 best solutions below

1
On

b is the probability of getting say 4 heads in 6 coin tosses. Given a probability of b how many coin tosses do I have to make to get 5 heads? Is that the question you would like to get answered?

The problem with it is it may not have a solution. While there is always a solution to finding the probability of getting x heads from n tosses. There isn't always a solution for finding how many tosses to get x heads with a given probability of b. Having a chart of the probabilities with a solution for n tosses to get x heads is one way.