% LMcs030304_4th.m
% Case Study 3.3.4 Benford's Law; Page 152-153 in  
% Larsen & Marx (2006) Introduction to Mathematical Statistics 4th Edition
% Fit of the Poisson distribution to deaths.
% Written 1/12/11, Revised 1/12/11 for EEOS601 by Eugene.Gallagher@umb.edu
% http://alpha.es.umb.edu/faculty/edg/files/edgwebp.html
syms s lambda;
% must constrain s to be greater than 0
symsum(1/(1+abs(lambda))*(abs(lambda)/(1+abs(lambda)))^s,s,0,inf)

% should sum to 1 but doesn't work

