如何将以下事件转换为概率?这些事件发生的给定时间段为1年。
"Once in a 100 years"
"Once in 10 years"
"Once a year"
"5 times a year"
"5 times a month"
按照Aimery的解释,我会将上述事件转化为概率,如下所示:
n 1 year period X Probability in % Calculation
1 1 100 0,01 1 (1x1)/100
1 1 10 0,10 10 (1x1)/10
1 1 1 1,00 100 (1x1)/1
5 1 1 5,00 500 (5x1)/1
5 1 1/12 60,00 6000 (5x1)/1/12
答案 0 :(得分:0)
编辑:我们现在知道OP需要一年的概率,并假设“几个”大约是五个。
我会假设事件随时间均匀分布,因此可以假设uniform probability distribution。
对于活动n occurrences in X years
,概率为:n/X
(或更确切地说是n*(1 year)/(X years)
。
基本上,这是比例性:(duration you are interested in)*(number of events during the sample period)/(duration of the sample period)
。
但是,您必须记住,根据定义,概率介于0和1之间。因此上述公式变为:minimum( (duration you are interested in)*(number of events during the sample period)/(duration of the sample period), 1)
或在您的情况下minimum( n/X, 1)
旧答案
首先,我们需要更多背景信息:我们是在观察在接下来的一百年内,还是在接下来的几秒钟内发生事件的概率? “一年一次”发生的事情很可能(尽管它取决于概率的分布,因此你的模型)在下一个千年中有一个概率,在下一个千年中概率为零。
此外,“一年几次”显然可以指出2到12之间的任意次数,这很可能是概率的六倍变化。
总的来说,这听起来更像是语言学问题,而不是编程(或数学)问题。