走出囚徒困境的方法

You and your friend have committed a murder. A few days later, the cops pick the two of you up and put you in two separate interrogation rooms such that you have no communication with each other. You think your life is over, but the police offer up a deal:

您和您的朋友谋杀了。 几天后,警察将你们两个人抓起来,并把您放在两个单独的审讯室中,以便您彼此之间没有任何沟通。 您以为自己的生活已经结束,但是警察提出了一项协议:

Rat your friend out, and your sentence will be lighter.

把你的朋友赶出去,你的句子就会轻些。

The catch is that your friend is offered this deal, too.

问题是您的朋友也被提供了这笔交易。

More specifically, if you rat your friend out but your friend says nothing, they get a heavy sentence and you get a light one. If you rat each other out, there’s a heavy penalty for both. If both of you stay silent, the sentences are light for you and your friend.

更具体地说,如果您淘汰了您的朋友,但您的朋友什么也没说,他们的句子就会很重,您的句子就会很轻。 如果您互相淘汰,则两者都将受到重罚。 如果你们两个都保持沉默,那么对您和您的朋友来说句子很轻。

The decisions must be made without communicating with each other, and both you and your friend only have two choices: “defect” and rat them out, or “withhold” information from the cops and stay silent.

这些决定必须在不相互沟通的情况下进行,您和您的朋友只有两种选择:“瑕疵”并将其淘汰,或者“隐瞒”警察的信息并保持沉默。

Take a look at the following diagram that describes your choices and sentences:

看下面的图表,它描述了您的选择和句子:

A punishment diagram for you and your friend.
你和你的朋友的惩罚图。

The matrix describes the number of years the two of you get depending on what you and your friend independently choose to do. The first number represents your prison time and the second represents your friend’s.

该矩阵描述了你们两个人的年限,具体取决于您和您的朋友独立选择做什么。 第一个数字代表您的入狱时间,第二个数字代表您朋友的入狱时间。

For example, if you withhold information from the cops, but your friend chooses to rat you out, you get five years in a maximum-security prison but your friend only gets one.

例如,如果您从警察那里隐瞒信息,但您的朋友选择将您杀了出去,您将在最高安全牢狱中服刑五年,而您的朋友只会被服刑一年。

What would you do in this situation?

在这种情况下怎么做?

What should you do in this situation?

应该在这种情况下怎么办?

There’s no easy solution to this problem and there are a lot of interpretations to this. A utilitarian might say withholding is the better option because it minimizes the total number of years either person spends in prison (5 + 1 or 3 + 3 as opposed to 10 + 10). What does probability say?

这个问题没有简单的解决方案,对此有很多解释。 功利主义者可能会说,扣缴税是更好的选择,因为它使每个人在监狱中度过的总年限最小化(5 + 1或3 + 3,而不是10 + 10)。 概率说什么?

解决困境 (Solving the Dilemma)

I created a population of 1000 prisoners, each with a 50–50 chance of being a defector or withholder. I then simulated an interaction for 500 pairs of prisoners and took note of the outcomes. I repeated this experiment 200 times.

我创建了1000名囚犯,每名囚犯都有50–50个叛逃者或保留者的机会。 然后,我模拟了500对囚犯的互动,并记录了结果。 我重复了这个实验200次。

Defectors vs. Withholders (50–50 split).
偏转器与持仓者(50-50分割)。

As you can see, if the number of defectors and withholders is roughly the same, it’s far better to attempt to withhold information. Most of the time, the payoff will be in your favor. The average number of years a defector spent in prison was 5.75 years vs. a withholders 4.01.

如您所见,如果叛逃者和撤回者的数量大致相同,那么最好隐瞒信息。 大多数时候,回报将对您有利。 叛逃者在监狱中的平均年限为5.75年,而扣留者的平均年限为4.01年。

We can make this a bit more interesting by varying the proportion of defectors and withholders. Say you’re in a country where everyone is untrusting of one another and that 75% of the population is a defector vs. 25% withholder.

我们可以通过改变叛逃者和持股者的比例使这一点变得更加有趣。 假设您所在的国家/地区每个人都不互相信任,并且75%的人口属于叛逃者,而25%的人是叛逃者。

Defectors vs. Withholders (75–25 split).
偏转器vs.保留者(75-25分)。

Your best bet is to withhold information from the police. This makes sense, since if you were to defect as well there’s a much higher probability that you’ll end up with the worst option in the game — 10 years a piece.

最好的选择是不向警方提供信息。 这是有道理的,因为如果您也要叛逃,那么您最终有可能在游戏中遇到最糟糕的选择,那就是每10年一次。

Let’s try one more. Say everyone is overly trusting (despite the fact that they’ve just committed a murder).

让我们再试一次。 假设每个人都过分信任(尽管他们刚刚犯了谋杀罪)。

Defectors vs. Withholders (25–75 split).
偏转器vs.保留者(25–75分割)。

This one is more interesting. It seems that you’d be slightly better off withholding information, but the payoff is wildly inconsistent (and in some cases ends up being worse than defecting!). This is because the possible sentences for withholding while the other defects can be either three or five years while the possible sentences for defecting while the other withholds can be either one or ten years. The difference between 3 and 5 is a lot less than the difference between 1 and 10 — so there’s a lot more variance in the latter scenario.

这个更有趣。 似乎您最好不隐瞒信息,但是收益却是完全不一致的(在某些情况下最终要比背叛更糟!)。 这是因为其他缺陷的可能扣留可能是三年或五年,而其他缺陷的可能扣留可能是一年或十年。 3与5之间的差异远小于1与10之间的差异-因此在后一种情况下存在更多差异。

What would you do in this particular situation?

在这种特殊情况下,您会怎么做?

If you enjoyed this article, you can follow me on Medium for more content like this. Thanks for reading!

如果您喜欢这篇文章,可以在Medium上关注我,以获得更多类似的内容。 谢谢阅读!

翻译自: https://towardsdatascience.com/a-computational-approach-to-the-prisoners-dilemma-837a799cedf0

走出囚徒困境的方法


http://www.taodudu.cc/news/show-995320.html

相关文章:

  • 平台api对数据收集的影响_收集您的数据不是那么怪异的api
  • 逻辑回归 概率回归_概率规划的多逻辑回归
  • ajax不利于seo_利于探索移动选项的界面
  • 数据探索性分析_探索性数据分析
  • stata中心化处理_带有stata第2部分自定义配色方案的covid 19可视化
  • python 插补数据_python 2020中缺少数据插补技术的快速指南
  • ab 模拟_Ab测试第二部分的直观模拟
  • 亚洲国家互联网渗透率_发展中亚洲国家如何回应covid 19
  • 墨刀原型制作 位置选择_原型制作不再是可选的
  • 使用协同过滤推荐电影
  • 数据暑假实习面试_面试数据科学实习如何准备
  • 谷歌 colab_如何在Google Colab上使用熊猫分析
  • 边际概率条件概率_数据科学家解释的边际联合和条件概率
  • 袋装决策树_袋装树是每个数据科学家需要的机器学习算法
  • opencv实现对象跟踪_如何使用opencv跟踪对象的距离和角度
  • 熊猫数据集_大熊猫数据框的5个基本操作
  • 帮助学生改善学习方法_学生应该如何花费时间改善自己的幸福
  • 熊猫数据集_对熊猫数据框使用逻辑比较
  • 决策树之前要不要处理缺失值_不要使用这样的决策树
  • gl3520 gl3510_带有gl gl本机的跨平台地理空间可视化
  • 数据库逻辑删除的sql语句_通过数据库的眼睛查询sql的逻辑流程
  • 数据挖掘流程_数据流挖掘
  • 域嵌套太深_pyspark如何修改嵌套结构域
  • spark的流失计算模型_使用spark对sparkify的流失预测
  • Jupyter Notebook的15个技巧和窍门,可简化您的编码体验
  • bi数据分析师_BI工程师和数据分析师的5个格式塔原则
  • 因果推论第六章
  • 熊猫数据集_处理熊猫数据框中的列表值
  • 数据预处理 泰坦尼克号_了解泰坦尼克号数据集的数据预处理
  • vc6.0 绘制散点图_vc有关散点图的一切

走出囚徒困境的方法_囚徒困境的一种计算方法相关推荐

  1. 瓷砖铺贴方法_老师傅总结:4种瓷砖铺贴的方法,很实用

    关注微信公众号:jia-fszx,每天和您分享软装搭配技巧.各种风格户型的装修案例.搭配设计知识等! 在装修新房的时候,瓷砖铺贴是必须要经历的一个过程,瓷砖一旦没铺好,那么就很容易出现空鼓的情况发生, ...

  2. mongodb转实体对像_营销案例丨实体店走出门面冷清的方法:打造体验式门店

    许多实体店老板都和我抱怨:上街购物的人少了,门面越来越冷清.一个月下来,钱光是交房租.人工.水电就所剩无几了.甚至还经常亏本. 越来越多的人抱怨生意难做,甚至已经放弃另谋出路了.但是实体店就真的做不下 ...

  3. python字符串出栈方法_说说Python有几种字符串格式化?

    公众号新增加了一个栏目,就是每天给大家解答一道Python常见的面试题,反正每天不贪多,一天一题,正好合适,只希望这个面试栏目,给那些正在准备面试的同学,提供一点点帮助! 小猿会从最基础的面试题开始, ...

  4. 业务层战略制定的思路和方法_智能商业时代的一种敏捷战略框架

    关键信息:如何在技术和市场快速变化的智能商业时代构建敏捷的战略,是一件非常重要但又极富挑战的任务.本文结合理论和实践提出了一种带内外反馈系统的敏捷战略框架,并在战略执行时构建了"网状式前端执 ...

  5. 揭秘python的5种最佳调试方法_揭秘 IPython 的 5 种最佳调试方法-阿里云开发者社区...

    云栖号:https://yqh.aliyun.com 第一手的上云资讯,不同行业精选的上云企业案例库,基于众多成功案例萃取而成的最佳实践,助力您上云决策! 一个好的集成开发环境(IDE)附带的调试器是 ...

  6. python分析数据差异的方法_用Python的两种方法进行方差分析

    在进行数据分析时,我们往往会遇到要对某个变量的影响因素进行分析的情况,而影响一事物的因素往往是很多的.比如在化工生产中,有温度.压力.剂量.反应时间等因素.每一因素的改变都有可能影响产品的数量和质量. ...

  7. python字典的遍历方法_遍历python字典几种方法

    aDict = {'key1':'value1', 'key2':'value2', 'key3':'value3'} print '-----------dict-------------' for ...

  8. table表头固定4种方法_在常见的3种工资条场景中,教你4种批量打印工资条的方法...

    私信回复关键词[福利]~ 获取丰富办公资源,助你高效办公早下班! 打印工资条估计是财务老师的痛,要把一行行的数据,变成一条条的工资条. 数据很多,表头很复杂. 一个个复制粘贴?那是不可能的! 那怎么办 ...

  9. css清除浮动的几种方法_清除浮动的几种方法

    标准流:盒子会各占整行位置.子盒子若是标准流,父盒子虽然没有高度,但是会撑开父盒子高度. 浮动:盒子浮了起来,不会占据原来的位置,若父盒子没有定义高度,则不会撑开父盒子,父盒 子高度为0.(浮动可以让 ...

最新文章

  1. Squid如何提高命中率
  2. 第七届“数学、计算机与生命科学交叉研究” 青年学者论坛
  3. 实验五:任意输入10个int类型数据,排序输出,再找出素数
  4. 从分子层面雕刻肌肉,新数学模型预测锻炼肌肉最优方式
  5. 【Flask】在g对象中存放List,实现在捕获异常后继续执行for循环
  6. SCRUM 12.03
  7. 七、Web服务器——Junit单元测试 反射 注解学习笔记
  8. 收藏 | 深度学习框架简史:TensorFlow和PyTorch双头垄断
  9. 02 前端篇(选择器和属性)
  10. MAC OS安装Composer + Laravel
  11. 如何高效学习Oracle
  12. Leetcode每日一题:559.maximum-depth-of-n-ary-tree(N叉树的最大深度)
  13. Java知多少(51)finally
  14. 存储器基本概念及分类介绍
  15. 《大数据: IDEA开发工具配置大全》
  16. 32位plsql连接64位Oracle数据库
  17. 【Python】面向对象,封装
  18. Mysql第四天笔记03——高级查询
  19. node os模块读取hostname乱码
  20. mvn -deploy 报错 Failed to deploy artifacts: Could not transfer artifact

热门文章

  1. 【Leetcode】33. 搜索旋转排序数组
  2. 137. 只出现一次的数字 II
  3. 不愧是阿里大佬,mysql存储过程写法案例
  4. java源代码保存在扩展名为,看完跪了
  5. java开发工程师面试题总结
  6. 百度、阿里、滴滴、新浪的面试心经总结,源码+原理+手写框架
  7. 这些新技术你们都知道吗?成功收获美团,小米安卓offer
  8. kafka 重新分配节点_Kafka控制器-分区重分配
  9. 腾讯云AI应用产品总监王磊:AI 在传统产业的最佳实践
  10. Faster R-CNN代码例子