Can you solve the fantasy election riddle Dennis E. Shasha

After much debate, the fantasy realm
you call home

has decided dragon jousting may not be
the best way to choose its leaders,

and has begun transitioning to democracy.

The candidates are a giant orange troll
and an experienced tree statesman.

An all-powerful eyebrow has hired
your company— The Dormor Polling Agency—

to survey the citizens of the land
and predict who will win.

There’s a lot riding on this:

if you get it wrong, heads—
well, your head—

will quite literally roll.

Your job is to go from door to door,

asking voters whether they prefer
the troll or the treefellow

and to use the results to project
how the election will go.

Your fellow citizens want you to succeed
and would tell you the truth…

but there’s a problem.

Few are willing to admit
they support the troll

on account of his controversial
life choices.

If you were to ask a troll supporter
who she’ll vote for,

there’s a good chance that she’ll claim
to support the treeman,

skewing your results.

You’re about to begin your rounds when
a stranger offers you some cryptic advice:

“Here’s the question that will save your
neck: what have you got in your pocket?”

You reach into your pocket and pull out…
a silver coin,

which has the current king’s head
on one side and his tail on the other.

How can you use it to conduct
an accurate poll?

Pause here to figure it out yourself.
Answer in 3

Answer in 2

Answer in 1

The trick here is to use the coin
to add random chance

to your interaction that will give
troll supporters deniability.

In other words, you’re looking for
a system where when someone says “troll,”

it could either be because the coin
somehow told them to,

or because they actually
support the troll—

and you’d have no way to tell
the difference.

You’ll also need to know how frequently
the coin skewed the results,

so you can account
for it in your calculations.

One solution is to have every pollee
go into their house and flip the coin.

If it lands heads, they should
tell you “troll,”

whether or not they actually support him.

If it lands tails, they should tell
you their actual preference.

Here’s what happens:

you poll 200 voters, and 130 say
they’ll vote for the troll.

For about 50%, or 100 of them,
the coin will have landed heads.

So you can subtract 100 troll votes
off his total,

and know the troll’s real support
is 30 to 70, and he’s very likely to lose.

The election comes around,
but before the results can be certified

a third party candidate swoops in
and burns the treefellow to a crisp.

The freshly signed and deeply flawed
constitution mandates that this challenger

gets to take his victim’s place
in a new election.

The Dormor Polling Agency sends you back
out on the streets with your trusty coin.

Only this time no one is comfortable
admitting their preference:

supporting the troll is still shameful,

and nobody wants to express support of a
dragon who murdered his way into the race.

But your job is your job.
How do you conduct an accurate poll now?

Pause here to figure it out for yourself.
Answer in 3

Answer in 2

Answer in 1

This time, instead of masking
just one candidate preference,

you need some way to disguise both.

At the same time, you also need to leave
space for some portion of the people

polled to express their true preference.

But a coin toss only has two
possible outcomes… right?

Suppose you have everyone
flip the coin twice—

now there are four possible results.

You can tell the people who flip heads
twice in a row

to report support for the troll;

those who get tails
twice in a row to report dragon;

and those with any other combination
to declare their true preference.

The chances of getting either
two heads or two tails in a row

are 50% times 50%—
or 25%.

Subtracting that proportion
of the total respondents

from each candidate’s score should
give you something close

to the real distribution.

This time, 105 respondents announced
themselves in favor of the troll

and 95 for the dragon.

Out of the total, the coin will make 25%

or 50 respond troll
and another 50 respond dragon.

Subtracting 50 from each result reveals
that voters seem to prefer the troll

by a margin of about 55 to 45.

It’s close, but as predicted,
the troll wins the election,

and you live to poll another day.

经过多次辩论,你称之为家的幻想世界

已经决定龙争虎斗可能不是
选择其领导人的最佳方式,

并且已经开始向民主过渡。

候选人是一个巨大的橙色巨魔
和一个经验丰富的树政治家。

一个无所不能的眉毛聘请了
您的公司——The Dormor Polling Agency——

来调查这片土地上的公民
并预测谁会获胜。

这有很多

事情要做:如果你弄错了
,你的脑袋——好吧,你的脑袋——

真的会翻滚。

你的工作是挨家挨户地

询问选民他们更
喜欢巨魔还是树友,

并利用结果来预测
选举将如何进行。

你的同胞希望你成功,
并会告诉你真相……

但有一个问题。

由于他有争议的
生活选择,很少有人愿意承认他们支持巨魔。

如果你要问一个巨魔支持者
她会投票给谁,

她很有可能会
声称支持树人,从而

扭曲你的结果。


一个陌生人给你一些神秘的建议时,你即将开始你的回合:

“这是一个可以拯救你的
问题:你的口袋里有什么?”

你把手伸进口袋,掏出……
一枚银币,一边

是现任国王的头
,另一边是他的尾巴。

您如何使用它
进行准确的民意调查?

在这里停下来自己弄清楚。
回答 3

回答 2

回答 1

这里的诀窍是使用硬币

为您的互动增加随机机会,这将使
巨魔支持者获得否认。

换句话说,你正在寻找
一个系统,当有人说“巨魔”

时,可能是因为硬币
以某种方式告诉他们,

或者因为他们实际上
支持巨魔

——你无法
区分 .

您还需要知道
硬币偏离结果的频率,

以便您可以
在计算中考虑到它。

一种解决方案是让每个被调查者
进入他们的房子并掷硬币。

如果它引起了人们的注意,他们应该
告诉你“巨魔”,

不管他们是否真的支持他。

如果它落在尾巴上,他们应该告诉
你他们的实际偏好。

事情是这样的:

你对 200 名选民进行投票,130 人说
他们会投票给巨魔。

对于大约 50% 或其中的 100 个
,硬币将正面朝上。

所以你可以
从他的总数中减去 100 票,

并且知道巨魔的真正支持
是 30 到 70,他很可能会输。

选举即将到来,
但在结果得到认证之前,

一名第三方候选人
突然闯入,将树友烧得干干净净。

新签署且存在严重缺陷的
宪法要求这位挑战者

在新的选举中取代受害者的位置。

Dormor 投票机构
带着你值得信赖的硬币让你回到街头。

只是这一次没有人愿意
承认他们的偏好:

支持巨魔仍然是可耻的

,没有人愿意表达
对一条杀入种族的龙的支持。

但你的工作就是你的工作。
您现在如何进行准确的民意调查?

在这里停下来自己弄清楚。
回答 3

回答 2

回答 1

这一次,不是
只掩盖一个候选人偏好,

而是需要某种方式来掩饰两者。

同时,您还需要为部分受访者留出
空间,

以表达他们的真实偏好。

但是抛硬币只有两种
可能的结果……对吧?

假设你让每个人都
掷硬币两次——

现在有四种可能的结果。

您可以告诉连续两次摇头的人

报告对巨魔的支持;

连续两尾报龙者;

以及那些有任何其他组合
来声明他们的真实偏好的人。

连续获得两个正面或两个反面的机会

是 50% 乘以 50%
或 25%。

从每个候选人的分数中减去总受访者的比例应该
会让你得到

接近真实分布的结果。

这一次,有 105 名受访者表示
支持巨魔

,95 人支持龙。

在总数中,硬币将使 25%

或 50 响应巨魔
和另外 50 响应龙。

从每个结果中减去 50 表明
,选民似乎更喜欢巨魔

,以大约 55 比 45 的差距。

这是接近的,但正如预期的那样
,巨魔赢得了选举

,你还活着投票。