% LMEx030501_4th
% Example 3.5.1 Page 175 in
% Larsen & Marx (2006) Introduction to Mathematical Statistics, 4th edition
% Written by Eugene.Gallagher@umb.edu for EEOS601
% http://alpha.es.umb.edu/faculty/edg/files/edgwebp.html
% Revised 1/12/2011
n=3; p=5/9;
format rat;k=0:n;EX1=k*binopdf(k,n,p)'
% Using Theorem 3.5.1, p. 176
EX2=n*p
format