先验概率Prior probability在贝叶斯统计中,先验概率分布,即关于某个变量 p 的概率分布,是在获得某些信息或者依据前,对 p 的不确定性进行猜测。例如, p 可以是抢火车票开始时,抢到某一车次的概率。这是对不确定性(而不是随机性)赋予一个量化的数值的表征,这个量化数值可以是一个参数,或...
分类:
其他好文 时间:
2015-05-23 11:18:24
阅读次数:
716
5.1R内置的分布分布是描述一个样本数据最核心、最重要的方式。R内嵌了很多常用的统计分布,提供了四类函数:概率密度函数(density),累积分布函数(probability)、分位数(quantile)和伪随机数(random)。在R中分别用d,p,q,r表示这4个项目,后面接分布的英文名称或缩写...
分类:
编程语言 时间:
2015-05-19 00:23:40
阅读次数:
538
Uva 11181 Probability|GivenProblem's Link: http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=18546Mean:n个人去逛超市,第i个人会购买东西的概率是Pi。出超市以后发现有r个人买了...
分类:
其他好文 时间:
2015-05-17 23:10:34
阅读次数:
146
You are in a maze; seeing n doors in front of you in beginning. You can choose any door you like. The probability for choosing a door is equal for all doors.If you choose the ith door, it can either ta...
分类:
其他好文 时间:
2015-05-17 16:49:18
阅读次数:
118
贝叶斯网络、马尔科夫随机场(MRF, Markov RandomField)和因子图都属于概念图,因此它们都归属于机器学习中的概念图模型(PGM,Probability Graphical Model).
一:定义
贝叶斯网络,又称信念网络(Belief Network, BN),
或有向无环图模型,是由一个有向无环图(DAG,Directed acyclic graphical model...
分类:
其他好文 时间:
2015-05-16 10:32:40
阅读次数:
1947
The probability of getting \(k\) heads when flipping \(n\) coins is:\[P(E)={n\choose k}p^k(1-p)^{n-k}\]
分类:
其他好文 时间:
2015-05-10 09:37:09
阅读次数:
102
1.首先是把范围见笑到第一象限,因为四个是一样的。
2.把求上部分的面积变为求下部分的面积(积分求解)
3.面积为:s+s*f(a,s/b)1/xdx 化简为s+s*ln(a*b/s)
4.结果为:m=a*b (s - s - s*ln(m/s))/m
5.以上做法的前提是双曲线和所求区域相交,注意两个特判:1.s>ab时,概率为0 2.s接近0,概率为1
#include
#i...
分类:
其他好文 时间:
2015-05-08 16:41:20
阅读次数:
99
分析:
“r个人买了东西”这个时间叫E,"第i个人买东西"这个时间叫Ei,则要求的是条件概率P(Ei|E).
根据条件概率公式,P(Ei|E)=P(EiE)/P(E)
P(E)依然可用全概率公式,例如,n=4,r=2有6中可能:1100,1010,1001,0110,0101,0011,其中1100的概率为P1*P2*(1-P3)*(1-P4),其他类似,设置A【k】表示第k个人是否买东西,...
分类:
其他好文 时间:
2015-05-03 10:40:54
阅读次数:
113
Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are 23 people including you. What is the probability...
分类:
其他好文 时间:
2015-04-30 21:57:25
阅读次数:
162
Problem G
Probability|Given
Input: Standard Input
Output: Standard Output
N friends go to the local super market together. The probability of their buying something from the market is respectiv...
分类:
其他好文 时间:
2015-04-28 09:49:46
阅读次数:
145