Can you solve the frog riddle Derek Abbott

So you’re stranded in a huge rainforest,
and you’ve eaten a poisonous mushroom.

To save your life, you need the antidote
excreted by a certain species of frog.

Unfortunately, only the female
of the species produces the antidote,

and to make matters worse,

the male and female occur in equal
numbers and look identical,

with no way for you to tell them apart,

except that the male
has a distinctive croak.

And it may just be your lucky day.

To your left, you’ve spotted a frog
on a tree stump,

but before you start running to it,

you’re startled by the croak
of a male frog

coming from a clearing
in the opposite direction.

There, you see two frogs,

but you can’t tell which one
made the sound.

You feel yourself starting
to lose consciousness,

and realize you only have time to go
in one direction before you collapse.

What are your chances of survival
if you head for the clearing

and lick both of the frogs there?

What about if you go to the tree stump?

Which way should you go?

Press pause now
to calculate odds yourself.

3

2

1

If you chose to go to the clearing,
you’re right,

but the hard part is correctly
calculating your odds.

There are two common incorrect ways
of solving this problem.

Wrong answer number one:

Assuming there’s a roughly equal
number of males and females,

the probability of any one frog being
either sex is one in two,

which is 0.5, or 50%.

And since all frogs are independent
of each other,

the chance of any one of them being female
should still be 50% each time you choose.

This logic actually is correct
for the tree stump,

but not for the clearing.

Wrong answer two:

First, you saw two frogs in the clearing.

Now you’ve learned that at least
one of them is male,

but what are the chances that both are?

If the probability of each individual frog
being male is 0.5,

then multiplying the two together
will give you 0.25,

which is one in four, or 25%.

So, you have a 75% chance
of getting at least one female

and receiving the antidote.

So here’s the right answer.

Going for the clearing gives you
a two in three chance of survival,

or about 67%.

If you’re wondering how this
could possibly be right,

it’s because of something called
conditional probability.

Let’s see how it unfolds.

When we first see the two frogs,

there are several possible combinations
of male and female.

If we write out the full list,

we have what mathematicians call
the sample space,

and as we can see,

out of the four possible combinations,
only one has two males.

So why was the answer of 75% wrong?

Because the croak gives
us additional information.

As soon as we know
that one of the frogs is male,

that tells us there can’t be
a pair of females,

which means we can eliminate
that possibility from the sample space,

leaving us with
three possible combinations.

Of them, one still has two males,

giving us our two in three,
or 67% chance of getting a female.

This is how conditional probability works.

You start off with a large sample space
that includes every possibility.

But every additional piece of information
allows you to eliminate possibilities,

shrinking the sample space

and increasing the probability
of getting a particular combination.

The point is that information
affects probability.

And conditional probability isn’t just
the stuff of abstract mathematical games.

It pops up in the real world, as well.

Computers and other devices use
conditional probability

to detect likely errors in the strings
of 1’s and 0’s

that all our data consists of.

And in many of our own life decisions,

we use information gained from
past experience and our surroundings

to narrow down our choices
to the best options

so that maybe next time,

we can avoid eating that poisonous
mushroom in the first place.

所以你被困在一个巨大的热带雨林中
,你吃了一个有毒的蘑菇。

为了挽救您的生命,您需要
某种青蛙排泄的解毒剂。

不幸的是,只有
该物种中的雌性会产生解毒剂

,更糟糕的是

,雄性和雌性出现的
数量相同并且看起来相同

,除了雄性有一种独特的呱呱声之外,你无法区分它们

这可能只是你的幸运日。

在您的左侧,您在树桩上发现了一只青蛙

但在您开始跑向它之前,

您被

从相反方向空地传来的雄性青蛙的呱呱叫声吓了一跳

在那里,你看到两只青蛙,

但你不知道是哪一只
发出了声音。

你觉得自己
开始失去知觉,

并意识到
在你崩溃之前你只有时间朝一个方向前进。

如果你前往空地

并舔那里的两只青蛙,你的生存机会有多大?

如果你去树桩怎么办?

你应该走哪条路?

现在按下暂停键
自己计算赔率。

3

2

1

如果您选择去空地,
您是对的,

但难的是正确
计算您的赔率。

有两种常见的错误
方法可以解决此问题。

第一个错误答案:

假设
雄性和雌性的数量大致相等,

那么任何一只青蛙为
任一性别的概率为二分之一,

即 0.5,即 50%。

而且由于所有青蛙都是相互独立
的,因此每次

选择时,它们中的任何一只是雌性的机会
仍然应该是 50%。

这个逻辑实际上
对于树桩是正确的,

但对于清理却不是。

错误答案二:

首先,你在空地上看到了两只青蛙。

现在您已经了解到其中至少有
一个是男性,

但两者都是男性的可能性有多大?

如果每只青蛙
是雄性的概率是 0.5,

那么将两者相乘
将得到 0.25,

即四分之一,即 25%。

因此,您有 75% 的
机会获得至少一名女性

并接受解毒剂。

所以这是正确的答案。

去空地给
你三分之二的生存机会,

或约 67%。

如果您想知道这
怎么可能是正确的,

那是因为所谓的
条件概率。

让我们看看它是如何展开的。

当我们第一次看到这两只青蛙时,雄性和雌性

有几种可能的
组合。

如果我们写出完整的列表,

我们就有了数学家所说
的样本空间

,我们可以看到,

在四种可能的组合中,
只有一个有两个男性。

那么为什么 75% 的答案是错误的呢?

因为呱呱为
我们提供了额外的信息。

一旦我们知道
其中一只青蛙是雄性,

就告诉我们不可能有
一对雌性,

这意味着我们可以
从样本空间中消除这种可能性,

留下
三种可能的组合。

其中,一个仍然有两个男性,

给了我们三分之二,
或者说有 67% 的机会得到一个女性。

这就是条件概率的工作原理。

您从一个包含所有可能性的大样本空间开始

但是每一条额外的信息都
可以让您消除可能性,

缩小样本空间

并增加
获得特定组合的可能性。

关键是信息
影响概率。

条件概率不仅仅是
抽象数学游戏的东西。

它也会出现在现实世界中。

计算机和其他设备使用
条件概率

来检测

我们所有数据所包含的 1 和 0 字符串中可能出现的错误。

在我们自己的许多生活决定中,

我们利用从
过去的经验和周围环境中获得的信息

来缩小我们的选择范围

以便下一次,

我们可以一开始就避免吃那种有毒的
蘑菇。