<< Chapter < Page | Chapter >> Page > |
% file npr02_04.m
% Data for problem P2-4pm = [0.0168 0.0392 0.0672 0.1568 0.0072 0.0168 0.0288 0.0672 ...
0.0252 0.0588 0.1008 0.2352 0.0108 0.0252 0.0432 0.1008];
disp('Minterm probabilities are in pm. Use mintable(4)')
% file npr02_05.m
% Data for problem P2-5pm = [0.0216 0.0144 0.0504 0.0336 0.0324 0.0216 0.0756 0.0504 0.0216 ...
0.0144 0.0504 0.0336 0.0324 0.0216 0.0756 0.0504 0.0144 0.0096 ... 0.0336 0.0224 0.0216 0.0144 0.0504 0.0336 0.0144 0.0096 0.0336 ...
0.0224 0.0216 0.0144 0.0504 0.0336];
disp('Minterm probabilities are in pm. Use mintable(5)')
% file npr02_06.m
% Data for problem P2-6minvec3
DV = [A|Ac; A|(Bc&C); A&C; Ac&B; Ac&Cc; B&Cc];DP = [1 0.65 0.20 0.25 0.25 0.30];TV = [((A&Cc)|(Ac&C))&Bc; ((A&Bc)|Ac)&Cc; Ac&(B|Cc)];disp('Call for mincalc')
% file npr02_07.m
% Data for problem P2-7minvec3
DV = [A|Ac; ((A&Bc)|(Ac&B))&C; A&B; Ac&Cc; A; C; A&Bc&Cc];DP = [ 1 0.4 0.2 0.3 0.6 0.5 0.1];TV = [(Ac&Cc)|(A&C); ((A&Bc)|Ac)&Cc; Ac&(B|Cc)];disp('Call for mincalc')
% file npr02_08.m
% Data for problem P2-8minvec3
DV = [A|Ac; A; C; A&C; Ac&B; Ac&Bc&Cc];DP = [ 1 0.6 0.4 0.3 0.2 0.1];TV = [(A|B)&Cc; (A&Cc)|(Ac&C); (A&Cc)|(Ac&B)];disp('Call for mincalc')
% file npr02_09.m
% Data for problem P2-9minvec3
DV = [A|Ac; A; A&B; A&C; A&B&Cc];DP = [ 1 0.5 0.3 0.3 0.1];TV = [A&(~(B&Cc)); (A&B)|(A&C)|(B&C)];disp('Call for mincalc')
% Modification for part 2
% DV = [DV; Ac&Bc&Cc; Ac&B&C];% DP = [DP 0.1 0.05];
% file npr02_10.m
% Data for problem P2-10minvec4
DV = [A|Ac; A; Ac&Bc; A&Cc; A&C&Dc];DP = [1 0.6 0.2 0.4 0.1];TV = [(Ac&B)|(A&(Cc|D))];disp('Call for mincalc')
% file npr02_11.m
% Data for problem P2-11% A = male; B = on campus; C = active in sports
minvec3DV = [A|Ac; A; B; A|C; B&Cc; A&B&C; A&Bc; A&Cc];DP = [ 1 0.52 0.85 0.78 0.30 0.32 0.08 0.17];TV = [A&B; A&B&Cc; Ac&C];disp('Call for mincalc')
% file npr02_12.m
% Data for problem P2-12% A = male; B = party member; C = voted last election
minvec3DV = [A|Ac; A; A&Bc; B; Bc&C; Ac&Bc&C];DP = [ 1 0.60 0.30 0.50 0.20 0.10];TV = [Bc&Cc];disp('Call for mincalc')
% file npr02_13.m
% Data for problem P2-13% A = rain in Austin; B = rain in Houston;
% C = rain in San Antoniominvec3
DV = [A|Ac; A&B; A&Bc; A&C; (A&Bc)|(Ac&B); B&C; Bc&C; Ac&Bc&Cc];DP = [ 1 0.35 0.15 0.20 0.45 0.30 0.05 0.15];TV = [A&B&C; (A&B&Cc)|(A&Bc&C)|(Ac&B&C); (A&Bc&Cc)|(Ac&B&Cc)|(Ac&Bc&C)];disp('Call for mincalc')
% file npr02_14.m
% Data for problem P2-14% A = male; B = engineering;
% C = foreign language; D = graduate studyminvec4
DV = [A|Ac; A; B; Ac&B; C; Ac&C; A&D; Ac&D; A&B&D; ...
Ac&B&D; B&C&D; Bc&Cc&D; Ac&Bc&C&D];DP = [1 0.55 0.23 0.10 0.75 0.45 0.26 0.19 0.13 0.08 0.20 0.05 0.11];TV = [C&D; Ac&Dc; A&((C&Dc)|(Cc&D))];disp('Call for mincalc')
% file npr02_15.m
% Data for problem P2-15% A = men; B = on campus; C = readers; D = active
minvec4DV = [A|Ac; A; B; Ac&B; C; Ac&C; D; B&D; C&D; ...
Ac&B&D; Ac&Bc&D; Ac&B&C&D; Ac&Bc&C&D; A&Bc&Cc&D];DP = [1 0.6 0.55 0.25 0.40 0.25 0.70 0.50 0.35 0.25 0.05 0.10 0.05 0.05];TV = [A&D&(Cc|Bc); A&Dc&Cc];disp('Call for mincalc')
Notification Switch
Would you like to follow the 'Applied probability' conversation and receive update notifications?