Summation of Poisson CDF

1 view (last 30 days)
Shane Kosir
Shane Kosir on 23 Feb 2017
Answered: Walter Roberson on 23 Feb 2017
r = 0;
while true
if sum(poisscdf(r:r+14,90/52)/15) >= .98,break,end
r = r+1;
end
I tried this code, but when I hit execute nothing showed up in the command window, no error or anything. Is the code wrong in some way?
  1 Comment
Roger Stafford
Roger Stafford on 23 Feb 2017
That was my code in https://www.mathworks.com/matlabcentral/answers/326440-solving-a-summation-for-unknown-limits-of-integration. The value of r when it finishes is the answer you desire.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 23 Feb 2017
Add to the end of it:
disp(r)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!