% ------------------------------------------------------------------------------- % Assigment I, Problem 3 % ------------------------------------------------------------------------------- % % Calculating the probability of normal distribution % Juan F Rubio-Ramirez % Atlanta, 06-12-2005 clear all; % number of simulations N=100000; mean=0; var=1; R=random('norm',mean,var,1,N); x(1)=0; x(2)=0.67; x(3)=1.28; x(4)=1.65; x(5)=2.32; x(6)=2.58; x(7)=3.09; x(8)=3.72; test=zeros(1,8); for i=1:8, for j=1:N, if (R(j)