Binomial Distribution
Probability - Fundamentals
We're planning a yes/no survey
Repeat
Random variable
As
This list of probabilities (P(1), P(2), P(3)...) is the distribution
Example - Probability of one yes:
So for example, in a survey
This would be for example:
YNNNN, or
NYNNN, or
....
There are five different ways we can write this sequence, but they all have the same probability.
Therefore, the total probability of getting 5 yeses is 5 times each single probability:
Calculating number of trials given for probability of 1
Since there are
Probability of yeses:
Firsx`t, the last part is pretty easy, just
Now, the more complex part is adding the
We can say this like:
- How many different orderings of
yeses and noes? - How many different ways can one pick k places out of n?
We use this notation to describe these problems, read as "n choose k"
To solve this, imagine we have n different people and we are putting them in order. The number of permutations would be given by:
Shorthand for this is n factorial (
This is true for
Let's order like this, secretly labelling them with marks:
What if we reorganized them to:
If they weren't marked, we wouldn't be able to notice a difference. There is a difference between the marked and unmarked sequences.
How many ways can we order the yeses without changing the unmarked sequences? This is equal to
For the noes, we can order them
So overall, there are
Now let's consider a different "unmarked" sequence,
Just like in the last ordering, there are also
This means that to get the total number of permutations, if we have the markings on, we can consider
Based on this, we can re order to:
Note this is only true for the binomial distribution where there are two states.
Binomial Formula
Back to our formula for
Changes in with increasing and .
Example: Dice rolling
Probability of rolling one six on the dice in 6 trials
This can be written like:
Probability of rolling two sixes out of 12 trials
Probability of rolling 10 sixes out of 60 trials:
When we try to calculate this, we run into a problem:
Why do larger trials move away from ?
10 / 60 should be close to the true probability 1 in 6. But 11 / 60 is different, and so is 9/60. As we increase
Example: rates of reaction
A simple reaction:
open channel
Rate of open channel -> closed channel:
This could also apply to ecological functions like the amount of time a predator spends hunting before changing behaviours...
At equilibrium, a fraction
Considering
At equilibrium,
Number of closings at equilibrium:
Number of openings at equilibrium:
The number of closings and openings must be equal at equilibrium, so we can cancel out some terms:
Back to our probability of being closed
Now, let's consider probabiltiy. We have
If we decide that
Imagine
I didn't totally get this one...