### Today we continue our exploration of the t-distributioin. Recall for normal random variables the student-t distribution does a great job allowing us to use s. Assuming that the null is H0: mu=15, we graph a histogram of the t statistic after N trials of our n=4 Gosset experiment when the null is true. In red is the student t distribution in while in blue we see the normal. mu=15 sigma=3 n=4 N=10000 M=n*N df=n-1 X=rnorm(M,mu,sigma) dim(X)<-c(N,n) Xbar=apply(X,1,mean) s=apply(X,1,sd) T=(Xbar-mu)/(s/sqrt(n)) #ST=sort(T) CutOff=8 hist(T[abs(T)