% LMex030405_4th
% Example 3.4.5  p 169 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
% check whether fyy=6y(1-y), 0 <= y <=1 is a pdf
syms y
int(6*y*(1-y),0,1)
y=0:0.01:1;
fyy=6*y.*(1-y);
plot(y,fyy);ylabel('Probability density','FontSize',16)
axis([0 1.05 0 1.55]);
title('Figure 3.4.9','FontSize',20)
figure(gcf);pause
