%Exercise 2.5
samples=nchoosek([ 345 126 492 962],2)
summary=[samples mean(samples,2),var(samples,0,2)]
EXBAR=sum(summary(:,3))/length(summary(:,3))
%Jeremiah's expected value
EXBARJ=sum(summary(1:5,3))/length(summary(1:5,3))
VAR=sum(summary(:,3).^2)/length(summary(:,3))-EXBAR^2
%Jeremiah's variance
VARJ=sum(summary(1:5,3).^2)/length(summary(1:5,3))-EXBARJ^2
%Jeremiah's bias
BIAS=EXBARJ-EXBAR
%Jeremiah's mean square error
MSE=VAR+(BIAS)^2
