<< Chapter < Page | Chapter >> Page > |
A computer store sells computers, monitors, printers. A customer enters the store. Let A , B , C be the respective events the customer buys a computer, a monitor, a printer. Assume the following probabilities:
% file
npr02_19.m % Data for
[link] % A = computer; B = monitor; C = printer
minvec3DV = [A|Ac; A&B; A&B&Cc; A&C; B&C; (A&Cc)|(Ac&C); ...
(A&Bc)|(Ac&B); (B&Cc)|(Bc&C)];DP = [1 0.49 0.17 0.45 0.39 0.50 0.43 0.43];TV = [A; B; C; (A&B&Cc)|(A&Bc&C)|(Ac&B&C); (A&B)|(A&C)|(B&C); A&B&C];disp('Call for mincalc')
npr02_19Variables are A, B, C, Ac, Bc, Cc
They may be renamed, if desired.Call for mincalc
mincalcData vectors are linearly independent
Computable target probabilities1.0000 0.8000
2.0000 0.61003.0000 0.6000
4.0000 0.37005.0000 0.6900
6.0000 0.3200The number of minterms is 8
The number of available minterms is 8Available minterm probabilities are in vector pma
To view available minterm probabilities, call for PMA
Data are , , , ,
and .
Determine and , if possible.
Repeat, with the additional data .
% file
npr02_20.m % Data for
[link] minvec3
DV = [A|Ac; A; B; A&B&C; A&C; (A&B)|(A&C)|(B&C); B&C - 2*(A&C)];DP = [ 1 0.232 0.228 0.045 0.062 0.197 0];TV = [A|B|C; Ac&Bc&Cc];disp('Call for mincalc')
% Modification% DV = [DV; C];% DP = [DP 0.230 ];
npr02_20 Variables are A, B, C, Ac, Bc, Cc
They may be renamed, if desired.mincalc
Data vectors are linearly independentData probabilities are INCONSISTENT
The number of minterms is 8The number of available minterms is 6
Available minterm probabilities are in vector pmaTo view available minterm probabilities, call for PMA
disp(PMA)2.0000 0.0480
3.0000 -0.0450 % Negative minterm probabilities indicate4.0000 -0.0100 % inconsistency of data
5.0000 0.01706.0000 0.1800
7.0000 0.0450DV = [DV; C];DP = [DP 0.230];mincalc
Data vectors are linearly independentData probabilities are INCONSISTENT
The number of minterms is 8The number of available minterms is 8
Available minterm probabilities are in vector pmaTo view available minterm probabilities, call for PMA
Data are:
. Determine available minterm probabilities and the following,
if computable:
With only six items of data (including ), not all minterms are available. Try the additional data and . Are these consistent and linearly independent? Are all minterm probabilities available?
% file
npr02_21.m % Data for
[link] minvec3
DV = [A|Ac; A; A&B; A&B&C; C; Ac&Cc];DP = [ 1 0.4 0.3 0.25 0.65 0.3 ];TV = [(A&Cc)|(Ac&C); Ac&Bc; A|B; A&Bc];disp('Call for mincalc')
% Modification% DV = [DV; Ac&B&Cc; Ac&Bc];% DP = [DP 0.1 0.3 ];
npr02_21 Variables are A, B, C, Ac, Bc, Cc
They may be renamed, if desired.Call for mincalc
mincalcData vectors are linearly independent
Computable target probabilities1.0000 0.3500
4.0000 0.1000The number of minterms is 8
The number of available minterms is 4Available minterm probabilities are in vector pma
To view available minterm probabilities, call for PMADV = [DV; Ac&B&Cc; Ac&Bc];DP = [DP 0.1 0.3 ];mincalc
Data vectors are linearly independentComputable target probabilities
1.0000 0.35002.0000 0.3000
3.0000 0.70004.0000 0.1000
The number of minterms is 8The number of available minterms is 8
Available minterm probabilities are in vector pmaTo view available minterm probabilities, call for PMA
Repeat [link] with changed from 0.3 to 0.5. What is the result? Explain the reason for this result.
% file
npr02_22.m % Data for
[link] minvec3
DV = [A|Ac; A; A&B; A&B&C; C; Ac&Cc];DP = [ 1 0.4 0.5 0.25 0.65 0.3 ];TV = [(A&Cc)|(Ac&C); Ac&Bc; A|B; A&Bc];disp('Call for mincalc')
% Modification% DV = [DV; Ac&B&Cc; Ac&Bc];% DP = [DP 0.1 0.3 ];
npr02_22 Variables are A, B, C, Ac, Bc, Cc
They may be renamed, if desired.Call for mincalc
mincalcData vectors are linearly independent
Data probabilities are INCONSISTENTThe number of minterms is 8
The number of available minterms is 4Available minterm probabilities are in vector pma
To view available minterm probabilities, call for PMAdisp(PMA)
4.0000 -0.20005.0000 0.1000
6.0000 0.25007.0000 0.2500
DV = [DV; Ac&B&Cc; Ac&Bc];DP = [DP 0.1 0.3 ];mincalc
Data vectors are linearly independentData probabilities are INCONSISTENT
The number of minterms is 8The number of available minterms is 8
Available minterm probabilities are in vector pmaTo view available minterm probabilities, call for PMA
disp(PMA)0 0.2000
1.0000 0.10002.0000 0.1000
3.0000 0.20004.0000 -0.2000
5.0000 0.10006.0000 0.2500
7.0000 0.2500
Repeat [link] with the original data probability matrix, but with replaced by in the data vector matrix. What is the result? Does mincalc work in this case? Check results on a minterm map.
% file
npr02_23.m % Data for
[link] minvec3
DV = [A|Ac; A; A&C; A&B&C; C; Ac&Cc];DP = [ 1 0.4 0.3 0.25 0.65 0.3 ];TV = [(A&Cc)|(Ac&C); Ac&Bc; A|B; A&Bc];disp('Call for mincalc')
% Modification% DV = [DV; Ac&B&Cc; Ac&Bc];% DP = [DP 0.1 0.3 ];npr02_23
Variables are A, B, C, Ac, Bc, CcThey may be renamed, if desired.
Call for mincalcmincalc
Data vectors are NOT linearly independentWarning: Rank deficient, rank = 5 tol = 5.0243e-15
Computable target probabilities1.0000 0.4500
The number of minterms is 8The number of available minterms is 2
Available minterm probabilities are in vector pmaTo view available minterm probabilities, call for PMA
DV = [DV; Ac&B&Cc; Ac&Bc];DP = [DP 0.1 0.3 ];mincalc
Data vectors are NOT linearly independentWarning: Matrix is singular to working precision.
Computable target probabilities1 Inf % Note that p(4) and p(7) are given in data
2 Inf3 Inf
The number of minterms is 8The number of available minterms is 6
Available minterm probabilities are in vector pmaTo view available minterm probabilities, call for PMA
Notification Switch
Would you like to follow the 'Applied probability' conversation and receive update notifications?