for i… Show more Here is the program for question 3: clear; ns = (1:1:10)’*100; y = zeros( length(ns),1); for i = 1:1:length(ns); rng(1); n = ns(i); X = (rand(n,10000)-1/2)*pi; X = tan(X); X_bar = mean(X); y(i,1) = mean(abs(X_bar)<0.1); end; plot(ns, y,’o’) xlabel(‘sample size’) ylabel(‘Percentage in [-0.1, 0.1]’) • Show less