clear clc disp('m and n represents mean and number of objects in sample respectively') m=3.4 n=900 M=3.25 d=1.61 disp('z=(m-M)/(d/(n^0.5)') z=(m-M)/(d/(n^0.5)) disp('as z>1.96,it cannot be regarded as a random sample ")