


%Lage data for aa demonstrere ulike fordelingar

normal_random = random('normal',0,1,100,1);
eksp_random = random('exponential',1,100,1);
binomisk_random = random('binomial',5,0.8,100,1);

figure
subplot(1,3,1)
hist(normal_random)
subplot(1,3,2)
hist(eksp_random)
subplot(1,3,3)
hist(binomisk_random)

subplot(1,3,1)
hold
plot(mean(normal_random),0,'rx')
plot(median(normal_random),0,'go')

subplot(1,3,2)
hold
plot(mean(eksp_random),0,'rx')
plot(median(eksp_random),0,'go')


subplot(1,3,3)
hold
plot(mean(binomisk_random),0,'rx')
plot(median(binomisk_random),0,'go')

