load('/home/ingelins/Documents/Fag/Statistikk/TMA4245V11/Data/StudDataV2011.txt')

indexMann=find(StudDataV2011(:,1)==1)
indexKvinne=find(StudDataV2011(:,1)==2)
hogdeMann=StudDataV2011(indexMann,2)
hogdeKvinne=StudDataV2011(indexKvinne,2)


[h,p,ci,z]=ztest(hogdeKvinne,172,6,0.05,'left')

[h,p,ci,t]=ttest(hogdeKvinne,172,0.05,'left')


%test for to utval, ukjent lik varians (kvinner < menn)

[h,p,ci,t]=ttest2(hogdeKvinne,hogdeMann,0.05,'left', 'equal')

%test for to utval, ukjent ulik varians (kvinner < menn)

[h,p,ci,t]=ttest2(hogdeKvinne,hogdeMann,0.05,'left', 'unequal')