%% Problem 4
clear lose
M=44;
p=0.65;
for n=1:M % play M series!
    % team1 = number of times team1 wins
    % team1 = number of times team2 wins
    [team1,team2]=worldseries_corrected(p,7);
    lose(n)=min(team1,team2);
end
distribution=hist(lose,[0 1 2 3])
% distribution(1)=number of games losing team wins 0 games
% distribution(2)= lost 1 game
% distribution(3)=lost 2 games
% distribution (4) = lost 3 games

