% LMcs030303_4th.m
% Case Study 3.3.3 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
s=1:9;
BenfordP=log10(1+1./s);
P=repmat(1/9,1,9);
disp('             "Uniform" Benford''s') 
disp('       s       Law       Law ')
disp([s;P;BenfordP]');


