Compute the expected number of random events happened<p>Hi,</p>
<p>I want to get the expected number of events happened in several possible ones which I think should be the sum of expectations VariableArray<bool> in Bernoulli distributions. These events have different Bernoulli distributions. How can I
compute the expectation in Infer.NET?</p>
<p>Thank you.</p>© 2009 Microsoft Corporation. All rights reserved.Sun, 07 Apr 2013 12:44:02 Z152dc8e7-314f-40b3-a122-b53690940029- https://social.microsoft.com/Forums/en-US/152dc8e7-314f-40b3-a122-b53690940029/compute-the-expected-number-of-random-events-happened?forum=infer.net#152dc8e7-314f-40b3-a122-b53690940029https://social.microsoft.com/Forums/en-US/152dc8e7-314f-40b3-a122-b53690940029/compute-the-expected-number-of-random-events-happened?forum=infer.net#152dc8e7-314f-40b3-a122-b53690940029Maxime Songhttps://social.microsoft.com:443/profile/maxime%20song/?type=forumCompute the expected number of random events happened<p>Hi,</p>
<p>I want to get the expected number of events happened in several possible ones which I think should be the sum of expectations VariableArray<bool> in Bernoulli distributions. These events have different Bernoulli distributions. How can I
compute the expectation in Infer.NET?</p>
<p>Thank you.</p>Thu, 28 Mar 2013 03:43:49 Z2013-03-28T03:43:49Z
- https://social.microsoft.com/Forums/en-US/152dc8e7-314f-40b3-a122-b53690940029/compute-the-expected-number-of-random-events-happened?forum=infer.net#79d968ee-887b-43ec-8bfb-40fba5f218bchttps://social.microsoft.com/Forums/en-US/152dc8e7-314f-40b3-a122-b53690940029/compute-the-expected-number-of-random-events-happened?forum=infer.net#79d968ee-887b-43ec-8bfb-40fba5f218bcYordan Zaykovhttps://social.microsoft.com:443/profile/yordan%20zaykov/?type=forumCompute the expected number of random events happened<p>Hi Maxime,</p>
<p>I'm not sure I fully understand your setup. If you have the Bernoullis, and you only need the expectation, you can just sum their probabilities up, right? However, if you want to model the problem, then it sounds like the sum in your case will take
a Poisson Binomial distribution as opposed to a Binomial. We didn't have support for this factor in our last release, but we do in the next one, which is coming very soon.</p>
<p>Cheers,<br/>
Yordan</p>
<br/>Fri, 05 Apr 2013 12:25:20 Z2013-04-05T12:25:20Z
- https://social.microsoft.com/Forums/en-US/152dc8e7-314f-40b3-a122-b53690940029/compute-the-expected-number-of-random-events-happened?forum=infer.net#7e633c54-05f1-4285-9be5-8024256feae3https://social.microsoft.com/Forums/en-US/152dc8e7-314f-40b3-a122-b53690940029/compute-the-expected-number-of-random-events-happened?forum=infer.net#7e633c54-05f1-4285-9be5-8024256feae3Maxime Songhttps://social.microsoft.com:443/profile/maxime%20song/?type=forumCompute the expected number of random events happenedThank you Yordan. Actually, I want to model the problem. And I'm very looking forward to your next release. :-)<br type="_moz">Sun, 07 Apr 2013 12:43:59 Z2013-04-07T12:43:59Z
- https://social.microsoft.com/Forums/en-US/152dc8e7-314f-40b3-a122-b53690940029/compute-the-expected-number-of-random-events-happened?forum=infer.net#f5c877d2-c262-4678-b8e3-9764cea846d5https://social.microsoft.com/Forums/en-US/152dc8e7-314f-40b3-a122-b53690940029/compute-the-expected-number-of-random-events-happened?forum=infer.net#f5c877d2-c262-4678-b8e3-9764cea846d5Yordan Zaykovhttps://social.microsoft.com:443/profile/yordan%20zaykov/?type=forumCompute the expected number of random events happened<p>The <a href="http://research.microsoft.com/en-us/um/cambridge/projects/infernet/download.aspx" target="_blank">
<span style="text-decoration:underline">new release</span></a> is out. You're probably interested in
<em>Variable.CountTrue</em>.</p>Fri, 26 Apr 2013 15:17:02 Z2013-04-26T15:17:02Z