ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 10 Jan 2019 21:33:00 +0100Expected value of random variableshttps://ask.sagemath.org/question/44997/expected-value-of-random-variables/ I'm new to SAGE and just getting my feet wet. Would greatly appreciate if someone could point me to how to calculate the following using SAGE:
Say I have an event drawn from a Poisson distribution that happens on average once a year. I'd like to define a random variable and then calculate the following:
1. Probability the event will occur after 1 month (1/12th of a year)
2. Probability the event will not occur for 2 years but will occur during the third year.
I've searched unsuccessfully for how to do this and would greatly appreciate any help.kyesledgeThu, 10 Jan 2019 21:33:00 +0100https://ask.sagemath.org/question/44997/