"At least" and "at most," and mean, variance, and standard deviation

 
 
at least and at most probability blog post.jpeg
 
 
 

“At least” and “at most” probability

We can do more than just calculate the probability of pulling exactly 33 red marbles in 55 total pulls.

For any binomial random variable, we can also calculate something like the probability of pulling at least 33 red marbles, or the probability of pulling no more than 33 marbles.

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

What we want to know is that the probability of pulling at least 33 red marbles is the probability that we pull 33, or 44, or 55 red marbles, which is simply the probability of each of these, all added together.

P(at least 3 reds in 5 pulls)=P(3 reds)+P(4 reds)+P(5 reds)P(\text{at least }3\text{ reds in }5\text{ pulls})=P(3\text{ reds})+P(4\text{ reds})+P(5\text{ reds})

P(at least 3 reds in 5 pulls)=(53)(13)30.672P(\text{at least }3\text{ reds in }5\text{ pulls})=\binom{5}{3}\left(\frac13\right)^3 0.67^2

+(54)(13)4(23)1+(55)(13)5(23)0+\binom{5}{4}\left(\frac13\right)^4 \left(\frac23\right)^1+\binom{5}{5}\left(\frac13\right)^5 \left(\frac23\right)^0

P(at least 3 reds in 5 pulls)=(10)(13)3(23)2P(\text{at least }3\text{ reds in }5\text{ pulls})=(10)\left(\frac13\right)^3\left(\frac23\right)^2

+(5)(13)4(23)1+(1)(13)5(23)0+(5)\left(\frac13\right)^4\left(\frac23\right)^1+(1)\left(\frac13\right)^5\left(\frac23\right)^0

P(at least 3 reds in 5 pulls)0.1646+0.0412+0.0041P(\text{at least }3\text{ reds in }5\text{ pulls})\approx0.1646+0.0412+0.0041

P(at least 3 reds in 5 pulls)0.2099P(\text{at least }3\text{ reds in }5\text{ pulls})\approx0.2099

P(at least 3 reds in 5 pulls)21%P(\text{at least }3\text{ reds in }5\text{ pulls})\approx21\%

In the same way, the probability of pulling at most 33 red marbles would be the probability of pulling 11, or 22, or 33 red marbles, all added together.

If we’re calculating the probability of at least one success or at least one failure, we can use these formulas:

P(at least 1 success)=1P(all failures)P(\text{at least 1 success})=1-P(\text{all failures})

P(at least 1 failure)=1P(all successes)P(\text{at least 1 failure})=1-P(\text{all successes})

This is because all probability distribution functions must add up to 11.

 
 

How to calculate the probability of “at least” and “at most” events


 
Krista King Math Signup.png
 
Probability & Statistics course.png

Take the course

Want to learn more about Probability & Statistics? I have a step-by-step course for that. :)

 
 

 
 

Probability of getting at least 1 “heads” on 5 coin flips

Example

Find the probability that we get at least 11 heads on 55 coin flips.


We can actually simplify this problem a lot by realizing that every single set of 55 coin flips will have at least one heads, unless every one of the 55 flips is tails: TTTTTTTTTT. The probability of getting 55 tails in a row is

P(TTTTT)=(12)(12)(12)(12)(12)=132P(TTTTT)=\left(\frac12\right)\left(\frac12\right)\left(\frac12\right)\left(\frac12\right)\left(\frac12\right)=\frac{1}{32}

The probability of getting “at least one heads” is the same as the probability of not getting “all tails.” Therefore, since total probability is always equal to 11, we can say that the probability of at least one heads is

P(at least 1 heads)=1132=3132P(\text{at least 1 heads})=1-\frac{1}{32}=\frac{31}{32}


Let’s do another example where we find an “at most” probability for a binomial random variable.


At least and at most for Probability and Statistics.jpg

The probability of getting “at least one heads” is the same as the probability of not getting “all tails.”

Example

Let XX be a binomial random variable with n=10n=10 and p=0.30p=0.30. Find P(X5)P(X\le 5).

The variable XX follows a binomial distribution, but instead of finding the probability of exactly kk successes in nn trials, we’re asked to find the probability of kk or fewer successes in nn trials. Specifically, find the chance of 55 or fewer successes in 1010 trials, where the probability of success on any one trial is p=0.30p=0.30.

Find the probability of 00 successes, 11 success, 22 successes, etc., up to 55 successes, and then find the sum of those probabilities.

P(X5)=P(X=0)+P(X=1)+P(X=2)+P(X=3)+P(X=4)+P(X=5)P(X\le 5)=P(X=0)+P(X=1)+P(X=2)+P(X=3)+P(X=4)+P(X=5)

To find the probability for each value of kk, we use the binomial probability formula.

P(k successes in n trials)=(nk)pk(1p)nkP(k\text{ successes in }n\text{ trials})=\binom{n}{k}p^k(1-p)^{n-k}

So the probability P(X5)P(X\le 5) is

P(X5)=(100)(0.30)0(10.30)10+(101)(0.30)1(10.30)9P(X\le 5)=\binom{10}{0}(0.30)^0(1-0.30)^{10}+\binom{10}{1}(0.30)^1(1-0.30)^{9}

+(102)(0.30)2(10.30)8+(103)(0.30)3(10.30)7+\binom{10}{2}(0.30)^{2}(1-0.30)^8+\binom{10}{3}(0.30)^{3}(1-0.30)^7

+(104)(0.30)4(10.30)6+(105)(0.30)5(10.30)5+\binom{10}{4}(0.30)^{4}(1-0.30)^6+\binom{10}{5}(0.30)^{5}(1-0.30)^5

P(X5)=0.9527P(X\le 5)=0.9527


Mean, variance, and standard deviation

The mean of a binomial random variable XX can be expressed as μX\mu_X. The mean is also called the expected value, and that’s indicated as E(X)E(X). Either way, the mean is given by

μX=E(X)=np\mu_X=E(X)=np

where nn is the fixed number of independent trials, and pp is the probability of a success. The variance of a binomial random variable XX is given by

σX2=np(1p)\sigma_X^2=np(1-p)

Standard deviation is the square root of the variance and is therefore given by

σX2=np(1p)\sqrt{\sigma_X^2}=\sqrt{np(1-p)}

σX=np(1p)\sigma_X=\sqrt{np(1-p)}

If we continue with our example of the number of heads we get on 55 coin flips, we can say that the number of trials nn is 55, and the probability of success (getting heads) is p=0.5p=0.5. Therefore, the mean is

μX=np\mu_X=np

μX=5(0.5)\mu_X=5(0.5)

μX=2.5\mu_X=2.5

The variance is

σX2=np(1p)\sigma_X^2=np(1-p)

σX2=5(0.5)(10.5)\sigma_X^2=5(0.5)(1-0.5)

σX2=2.5(10.5)\sigma_X^2=2.5(1-0.5)

σX2=2.5(0.5)\sigma_X^2=2.5(0.5)

σX2=1.25\sigma_X^2=1.25

And the standard deviation is

σX=np(1p)\sigma_X=\sqrt{np(1-p)}

σX=1.25\sigma_X=\sqrt{1.25}

σX1.12\sigma_X\approx1.12

 
Krista King.png
 

Get access to the complete Probability & Statistics course