%Load data and make variables
%%
load('../Data/StudData2014.txt')

hogde=StudData2014(:,1);
hogdeMor=StudData2014(:,2);
hogdeFar=StudData2014(:,3);
kjonn=StudData2014(:,4);
har=StudData2014(:,5);
auge=StudData2014(:,6);
Matlab=StudData2014(:,7);

%Make vectors with hight of men and women

indexMann=find(kjonn==1);
indexKvinne=find(kjonn==2);
hogdeMann=hogde(indexMann);
hogdeKvinne=hogde(indexKvinne);

var(hogdeMann)
std(hogdeMann)



%% Hypotesetest var(hogdeMann) = 6.5^2 vs var(hogdeMann) != 6.5^2
[h,p,ci,stat]=vartest(hogdeMann,6.5^2,0.05,'both')

%%
var(hogdeKvinne)
std(hogdeKvinne)

%% Hypotesetest var(hogdeKvinne) = 6.5^2 vs var(hogdeKvinne) != 6.5^2
[h,p,ci,stat]=vartest(hogdeKvinne,6.5^2,0.05,'both')

