伞的问题--Bayesian
来源:互联网 发布:淘宝假台湾回流紫砂壶 编辑:程序博客网 时间:2024/04/27 15:19
You're about to get on a plane to Seattle. You want to know
if you should bring an umbrella. You call 3 random friends of yours who live there and ask each independently if it's raining. Each of your friends has a 2/3 chance of telling you the truth and a 1/3 chance of messing with you by lying. All 3 friends tell you that "Yes" it is raining. What is the probability that it's actually raining in Seattle?http://www.glassdoor.com/Interview/You-re-about-to-get-on-a-plane-to-Seattle-You-want-to-know-if-you-should-bring-an-umbrella-You-call-3-random-friends-of-y-QTN_519262.htm
Bayesian stats: you should estimate the prior probability that it's raining on any given day in Seattle. If you mention this or ask the interviewer will tell you to use 25%. Then it's straight-forward:
P(raining | Yes,Yes,Yes) = Prior(raining) * P(Yes,Yes,Yes | raining) / P(Yes, Yes, Yes)
P(Yes,Yes,Yes) = P(raining) * P(Yes,Yes,Yes | raining) + P(not-raining) * P(Yes,Yes,Yes | not-raining) = 0.25*(2/3)^3 + 0.75*(1/3)^3 = 0.25*(8/27) + 0.75*(1/27)
P(raining | Yes,Yes,Yes) = 0.25*(8/27) / ( 0.25*8/27 + 0.75*1/27 )
0 0
- 伞的问题--Bayesian
- nonparametric Bayesian 的motivation
- Jonit Bayesian 的推导
- 求解Bayesian Network的步骤
- Frequentist和Bayesian的差别
- Bayesian评分系统:解决样本数量过少引起的问题
- 马尔可夫链的扩展 贝叶斯网络 (Bayesian Networks
- 参数估计的方法,MLE,MAP,Bayesian estimator
- Frequentist and Bayesian:智慧的碰撞
- 对Naive Bayesian classification 的理解
- 马尔可夫链的扩展 贝叶斯网络 (Bayesian Networks)
- Frequentist和Bayesian之间的故事
- 基于Wishart分布的Bayesian检验
- Bayesian Browsing Model 的个人理解
- Bayesian Face和 Joint Bayesian Face两篇文献的公式推导
- 朴素的贝叶斯分类器(Naive Bayesian Classifier)
- 基于Bayesian的自动GMM组件数确定算法
- 【java】写Naive Bayesian过程中用到的
- 汽油依赖
- 见好就收,赌钱问题
- dede5.7 tag 内容页相关列表风格修改
- [python]如何使用virtualenvwrapper切换不同版本的python?
- Android SDK Manager国内无法更新的解决方案
- 伞的问题--Bayesian
- Python 虚拟环境:Virtualenv
- Describe 3 kernel functions and when to use which of them
- Leetcode: 4Sum
- 【翻译自mos文章】升级到11.2.0.4之后在alert日志中出现 NUMA 警告信息
- Mushclient 学习计划
- Find the second largest element in a Binary Search Tree
- RHEL 7上能运行的Oracle DB 版本
- 果 的大数据问题