# Math/Probability Question (Percentages Upon Percentages)

**URL:** <https://boards.straightdope.com/t/math-probability-question-percentages-upon-percentages/939794>\
**Category:** Factual Questions\
**Created:** [April 11, 2021, 1:25pm UTC](https://boards.straightdope.com/t/math-probability-question-percentages-upon-percentages/939794 "2021-04-11T13:25:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeyHomie](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/heyhomie/32/207_2.png) [@HeyHomie](https://boards.straightdope.com/u/HeyHomie)\
**Post date:** [April 11, 2021, 1:25pm UTC](https://boards.straightdope.com/t/math-probability-question-percentages-upon-percentages/939794/1 "2021-04-11T13:25:26Z")

</div>

Out of a pool of _n_ white balls, _x_ are chosen at random and painted with a blue dot. Then, from that same pool (which includes the now-painted balls), _y_ are chosen and painted with a red dot.

What is the formula to determine how many (percentage-wise) of the balls have both red and blue dots?

---

<div class="post-metadata">

**Author:** ![Andy\_L](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Andy\_L](https://boards.straightdope.com/u/Andy_L)\
**Post date:** [April 11, 2021, 1:28pm UTC](https://boards.straightdope.com/t/math-probability-question-percentages-upon-percentages/939794/2 "2021-04-11T13:28:36Z")

</div>

xy/n^2 is the probability that a particular ball has both red and blue dots. Or 100\*xy/n^2 for the percentage of balls with two dots.

---

<div class="post-metadata">

**Author:** ![Stego](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/stego/32/7118_2.png) [@Stego](https://boards.straightdope.com/u/Stego)\
**Post date:** [April 11, 2021, 1:51pm UTC](https://boards.straightdope.com/t/math-probability-question-percentages-upon-percentages/939794/3 "2021-04-11T13:51:41Z")

</div>

Right, @Andy_L is correct, x/n being the balls with a blue dot, and y/n the ones with a red dot. The joint probability of the two events (i.e., a ball having both dots) is the product of their probabilities, as the two events are independent, so y/n \* x/n = (xy)/(n^2). Like all probabilities this will be a number in the range [0, 1], so you have to multiply it by 100 if you want it to become a percentage.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [April 11, 2021, 3:18pm UTC](https://boards.straightdope.com/t/math-probability-question-percentages-upon-percentages/939794/4 "2021-04-11T15:18:20Z")

</div>

In case a specific example helps:

Suppose 40% of the balls are painted with a blue dot.  
Then suppose 30% of the balls are painted with a red dot.

If the balls were well-mixed, and every ball had an equal chance of being chosen to be painted with a red dot, then 30% of the blue-dotted balls should be painted with a red dot.

That’s 30% of the 40%, which is 12%. (0.30 \* 0.40 = 0.12).

Caveat: If you did this for real, there’s no guarantee that it would come out to be _exactly_ 12% (since randomness is involved). In fact, it couldn’t be exactly 12% if the total number of balls _n_ were such that 12% of _n_ was not a whole number.

---

<div class="post-metadata">

**Author:** ![mcgato](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@mcgato](https://boards.straightdope.com/u/mcgato)\
**Post date:** [April 12, 2021, 12:26pm UTC](https://boards.straightdope.com/t/math-probability-question-percentages-upon-percentages/939794/6 "2021-04-12T12:26:11Z")

</div>

I think this is a similar approach to estimating the number of fish in a lake, or other animal counting estimation. They catch a number of fish on one day, tag them, and toss them back into the lake. Then they come back again and catch a number of fish again, and count the number that had already been tagged. From that they can estimate the total number of fish in the lake. I’ve never done this, but it is an interesting application of statistics.

---

<div class="post-metadata">

**Author:** ![Quercus](https://avatars.discourse-cdn.com/v4/letter/q/7ab992/32.png) [@Quercus](https://boards.straightdope.com/u/Quercus)\
**Post date:** [April 12, 2021, 1:33pm UTC](https://boards.straightdope.com/t/math-probability-question-percentages-upon-percentages/939794/7 "2021-04-12T13:33:59Z")

</div>

Note that you can’t get an exact answer, because it’s random. For instance if you put dots on half the balls both for red and blue, you could end up choosing the same balls for red and blue, giving you half of them with both red and blue dots, or could end up choosing completely different balls, giving you none with red and blue dots.

If you did the same experiment billions of times, and averaged over all those trials, you’d average having x_y/n_n balls with both red and blue dots, but you can’t say you’ll get that on any one trial.

---

<div class="post-metadata">

**Author:** ![ouryL](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ouryl/32/6067_2.png) [@ouryL](https://boards.straightdope.com/u/ouryL)\
**Post date:** [April 12, 2021, 11:52pm UTC](https://boards.straightdope.com/t/math-probability-question-percentages-upon-percentages/939794/8 "2021-04-12T23:52:37Z")

</div>

An observation:  
It would seem to me that there are ranges of probabilities you could visualize. For instance, the question: How many balls are unspoiled, only white.  
While all balls with red dots could have blue dots on them, at most balls with blue dots can have at most only 75% with red dots also. Conversely, it possible for any ball with a blue dot on it to have no red dot on it too, and any ball with red not to have blue. Obviously, any ball with two dots on it has to have one dot red and one blue. 30% to 60% could be white only.

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [April 13, 2021, 7:37am UTC](https://boards.straightdope.com/t/math-probability-question-percentages-upon-percentages/939794/9 "2021-04-13T07:37:41Z")

</div>

> [@mcgato](#):
>
> I think this is a similar approach to estimating the number of fish in a lake, or other animal counting estimation. They catch a number of fish on one day, tag them, and toss them back into the lake. Then they come back again and catch a number of fish again, and count the number that had already been tagged. From that they can estimate the total number of fish in the lake. I’ve never done this, but it is an interesting application of statistics.

I worked on a project in the early 1980s that did a similar thing to estimate populations of humpback whales in the waters around Alaska. When whales dive, they tend to stick their tails out of the water. Humpback whale tails have distinctive black-and-white patterns on them (see [photos here](https://www.google.com/search?q=humpback+whale+tails&tbm=isch&ved=2ahUKEwj_r-6y2vrvAhVRRlMKHWFdDv4Q2-cCegQIABAA&oq=humpback+whale+tails&gs_lcp=CgNpbWcQAzICCAA6BggAEAcQHjoICAAQCBAHEB5QnoQBWPqSAWCplAFoAHAAeACAAYsBiAHqCJIBAzAuOZgBAKABAaoBC2d3cy13aXotaW1nwAEB&sclient=img&ei=V0l1YL-oH9GMzQLhurnwDw&bih=624&biw=1280)), that are as unique as fingerprints.

The researchers had a massive collection of photos of these, and they kept taking more photos. By matching new photos with previous photos, they could treat those as capture/recapture events, and get population estimates.

---

<div class="post-metadata">

**Author:** ![markn\_1](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@markn\_1](https://boards.straightdope.com/u/markn_1)\
**Post date:** [April 13, 2021, 4:40pm UTC](https://boards.straightdope.com/t/math-probability-question-percentages-upon-percentages/939794/10 "2021-04-13T16:40:37Z")

</div>

Somewhat similar is the [German tank problem](https://en.wikipedia.org/wiki/German_tank_problem). You assume enemy tanks have been manufactured with consecutive serial numbers starting at 1. You observe the serial numbers on a set of tanks selected randomly. Based on the observed serial numbers, estimate the total number of tanks manufactured.
