%Fall 1999, MAE325 scores.
%Run this MATLAB file to get histograms and stats.
%  -A. Ruina  10/13/99
%  -N. Barton 12/16/99
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear

%
% all grades have already been adjusted (12 points added to 
% prelim 1 raw grade for example)

%Prelim 1 scores from all students
A = [ ...
 66 89 77 92 84 64 85 66 60 67 87 82 77 74 70 72 77 89 94 72 85 64 66 56 66 85 70 54 65 92 51 100 56 79 69 84 38 44 60 97 56 82 25 62 69 97 62 71 84 87 85 94 50 72 65 92 45 75 89 59 47 80 92 53 85 69 72 87 87 57 57 59 70

];

%prelim 2 scores
B = [ ...
 82 76 97 79 64.5 38 76.5 70.5 54 79 79 75.5 74.5 78 88 74.5 86.5 80.5 79 84 64 70.5 71.5 40 92 92 91 61.5 73 74.5 51 71 54 82.5 86 66 46 21.5 49 71.5 54 102 42 73 53.5 100 71 78 82 52 100 81 65 59 84 97 46.5 60.5 67.5 45.5 75 69.5 71 72.5 88 59 73 80.5 68.5 61 70.5 54 82

];

%final exam scores
C = [ ...
 72 71 81 75.5 76 66 99 63.5 83.5 77 75 80 75 55 78 68 70 78 64 85.5 62 60.5 60 68 75 93 88 60 77.5 57 40 96 55 89 82.5 61 61.5 44 46.5 71 60.5 85 50 64 52 96 68 68 83.5 46 84 96 51.5 61 73.5 99 55 64 73.5 64 57 80.5 87 54 80.5 60 54.5 91.5 62.75 69 52 73 62.5

];

%homework scores
D = [ ...
 8.83333 10.1667 9.45455 9 9.25 9.18182 8.59091 8.95833 8.91667 8.04167 9.16667 9.5 6.875 5.375 9.08333 5.09091 8.54167 8.66667 9 9 6.75 8.125 8.625 7.54167 3.36364 9.58333 8.08333 4.375 7.66667 6.625 6.77273 9.875 7.91667 9.04167 8.58333 4.16667 7.85 2.45455 6.18182 6.58333 6 7.16667 6.625 4.83333 7.86364 9.16667 4.27273 9.54167 9.375 6.75 9.20833 8.41667 6.625 9 7.75 9.45833 5.83333 7.5 8.41667 5.5 6.125 6.20833 1.83333 6.5 8.25 7.375 8.70833 6.66667 7.125 8.125 7.79167 3.33333 8.625

];

%project scores
E = [ ...
 81.2717 76.8731 93.841 79.1081 82.8834 92.9069 93.841 88.4783 84.2552 83.3797 83.3797 82.8834 88.4783 88.4783 82.9419 92.9069 82.8834 88.4783 79.1081 81.2717 81.2068 76.0858 75.2985 78.2973 93.841 81.2717 81.2717 82.0451 76.8731 77.4865 70.7925 88.9245 81.8913 75.7488 87.913 82.9565 87.1396 66.7411 88.9245 80.4541 82.8043 79.6087 78.7633 88.9245 71.6028 84.6304 78.2126 85.4976 84.6304 84.5978 87.913 85.4976 82.7983 71.6028 78.2126 82.2222 83.1003 83.1003 78.545 63.3333 62.2778 82.2222 77.2748 64.037 82.2222 78.9685 79.4444 78.545 63.6852 81.8102 82.2222 83.1003 79.4444

];

%course total scores
F = [ ...
 0.776408 0.82081 0.88358 0.832162 0.798075 0.689088 0.899625 0.740592 0.748633 0.778695 0.82957 0.831825 0.773842 0.692342 0.820663 0.722724 0.79945 0.845717 0.801662 0.835408 0.71706 0.696504 0.707323 0.636571 0.742216 0.908658 0.839158 0.609693 0.74881 0.729605 0.54178 0.921512 0.636587 0.849248 0.82812 0.679935 0.610959 0.40993 0.593614 0.779431 0.625707 0.859913 0.51152 0.677887 0.636359 0.956446 0.66141 0.783371 0.860071 0.654147 0.901995 0.902496 0.618072 0.697404 0.762069 0.950208 0.57015 0.71015 0.787568 0.5885 0.610292 0.766958 0.740412 0.616556 0.844583 0.675078 0.713292 0.837318 0.711653 0.69759 0.661208 0.62965 0.750042

];


fprintf('\n\n****************************************************************\n')
fprintf('       GRADE STATISTICS, MAE 325, FALL 1999 \n')
fprintf('       ------------------------------------\n ')

fprintf('                                        Prel I   Prel 2   Final      HW     Proj   Course\n')
fprintf('Number of students                 = %8i %8i %8i %8i %8i %8i\n',...
          [length(A) length(B) length(C) length(D) length(E) length(F)])
fprintf('Number with scores 90 and above    = %8i %8i %8i %8i %8i %8i\n',... 
          [sum(A>=90)   sum(B>=90) sum(C>=90) sum(D>=9)   sum(E>=90) sum(F>=0.90)])
fprintf('Number with scores of 80 and above = %8i %8i %8i %8i %8i %8i\n',... 
          [sum(A>=80)   sum(B>=80) sum(C>=80) sum(D>=8)   sum(E>=80) sum(F>=0.80)])
fprintf('Number with scores less than 30    = %8i %8i %8i %8i %8i %8i\n',... 
          [sum(A<30)   sum(B<30) sum(C<30) sum(D<3)   sum(E<30) sum(F<0.30)])
fprintf('Mean                               = %8.1f %8.1f %8.1f %8.2f %8.1f %8.3f \n',... 
          [mean(A) mean(B) mean(C) mean(D) mean(E) mean(F)])
fprintf('Median                             = %8.1f %8.1f %8.1f %8.2f %8.1f %8.3f\n', ...
	  [median(A) median(B) median(C) median(D) median(E) median(F)])
fprintf('Sandard dev                        = %8.1f %8.1f %8.1f %8.2f %8.1f %8.3f \n',...
          [std(A) std(B) std(C) std(D) std(E) std(F)])
fprintf('****************************************************************\n')
fprintf('           (See Figure window histogram. )          \n')


clf reset
subplot(6,1,1)
hist(A, 2.5 + 5*[0:19])
ylabel('# students in a bin')
title('Prelim 1 score distribution, 5 point bins')

subplot(6,1,2)
hist(B, 2.5 + 5*[0:19])
ylabel('# students in a bin')
title('Prelim 2 score distribution, 5 point bins')

subplot(6,1,3)
hist(C, 2.5 + 5*[0:19])
ylabel('# students in a bin')
title('Final score distribution, 5 point bins')

subplot(6,1,4)
hist(D, 0.25 + 0.5*[0:19])
ylabel('# students in a bin')
title('Homework score distribution, 5 point bins')

subplot(6,1,5)
hist(E, 2.5 + 5*[0:19])
ylabel('# students in a bin')
title('Project score distribution, 5 point bins')

subplot(6,1,6)
hist(F, 0.025 + 0.05*[0:19])
ylabel('# students in a bin')
title('Course total score distribution, 5 point bins')

set(1,'PaperPosition', [.25 .25 8 10])

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
