%zadania na rozklad normalny
%zadanie 1
N=12
n=100000
%for j=1:N
 %   for i=1:n
    x=sum(rand(N,n))-(N/2);
  %  end
%end
p=sum(x<-2.47)/n
p2=1-normcdf(2.47)
p3=normcdf(-2.47,0,1)
x=randn(1,n);
p4=sum(x<-2.47)/n
%zadanie 2
p5=normcdf(2,0,1)-normcdf(-2,0,1)
%zadanie 3
