# Connexions

You are here: Home » Content » Minterms and MATLAB Calculations

### Lenses

What is a lens?

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

#### Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
• Rice Digital Scholarship

This module is included in aLens by: Digital Scholarship at Rice UniversityAs a part of collection: "Applied Probability"

Click the "Rice Digital Scholarship" link to see all content affiliated with them.

#### Also in these lenses

• UniqU content

This module is included inLens: UniqU's lens
By: UniqU, LLCAs a part of collection: "Applied Probability"

Click the "UniqU content" link to see all content selected in this lens.

### Recently Viewed

This feature requires Javascript to be enabled.

# Minterms and MATLAB Calculations

Module by: Paul E Pfeiffer. E-mail the author

Summary: The systematic formulation in the module Minterms shows that each Boolean combination, as a union of minterms, can be designated by a vector of zero-one coefficients. A coefficient one in the ith position (numbering from zero) indicates the inclusion of minterm Mi in the union. We formulate this pattern carefully below and show how MATLAB logical operations may be utilized in problem setup and solution.

The concepts and procedures in this unit play a significant role in many aspects of the analysis of probability topics and in the use of MATLAB throughout this work.

## Minterm vectors and MATLAB

The systematic formulation in the previous module Minterms shows that each Boolean combination, as a union of minterms, can be designated by a vector of zero-one coefficients. A coefficient one in the ith position (numbering from zero) indicates the inclusion of minterm Mi in the union. We formulate this pattern carefully below and show how MATLAB logical operations may be utilized in problem setup and solution.

Suppose E is a Boolean combination of A,B,CA,B,C. Then, by the minterm expansion,

E = J E M i E = J E M i
(1)

where Mi is the ith minterm and JE is the set of indices for those Mi included in E. For example, consider

E = A ( B C c ) A c ( B C c ) c = M 1 M 4 M 6 M 7 = M ( 1 , 4 , 6 , 7 ) E = A ( B C c ) A c ( B C c ) c = M 1 M 4 M 6 M 7 = M ( 1 , 4 , 6 , 7 )
(2)
F = A c B c A C = M 0 M 1 M 5 M 7 = M ( 0 , 1 , 5 , 7 ) F = A c B c A C = M 0 M 1 M 5 M 7 = M ( 0 , 1 , 5 , 7 )
(3)

We may designate each set by a pattern of zeros and ones (e0,e1,,e7)(e0,e1,,e7). The ones indicate which minterms are present in the set. In the pattern for set E, minterm Mi is included in E iff ei=1ei=1. This is, in effect, another arrangement of the minterm map. In this form, it is convenient to view the pattern as a minterm vector, which may be represented by a row matrix or row vector [e0e1e7][e0e1e7] . We find it convenient to use the same symbol for the name of the event and for the minterm vector or matrix representing it. Thus, for the examples above,

E [ 0 1 0 0 1 0 1 1 ] and F [ 1 1 0 0 0 1 0 1 ] E [ 0 1 0 0 1 0 1 1 ] and F [ 1 1 0 0 0 1 0 1 ]
(4)

It should be apparent that this formalization can be extended to sets generated by any finite class.

Minterm vectors for Boolean combinations

If E and F are combinations of n generating sets, then each is represented by a unique minterm vector of length 2n. In the treatment in the module Minterms, we determine the minterm vector with the aid of a minterm map. We wish to develop a systematic way to determine these vectors.

As a first step, we suppose we have minterm vectors for E and F and want to obtain the minterm vector of Boolean combinations of these.

1. The minterm expansion for EFEF has all the minterms in either set. This means the jth element of the vector for EFEF is the maximum of the jth elements for the two vectors.
2. The minterm expansion for EFEF has only those minterms in both sets. This means the jth element of the vector for EFEF is the minimum of the jth elements for the two vectors.
3. The minterm expansion for Ec has only those minterms not in the expansion for E. This means the vector for Ec has zeros and ones interchanged. The jth element of Ec is one iff the corresponding element of E is zero.

We illustrate for the case of the two combinations E and F of three generating sets, considered above

E = A ( B C c ) A c ( B C c ) c [ 0 1 0 0 1 0 1 1 ] and F = A c B c A C [ 1 1 0 0 0 1 0 1 ] E = A ( B C c ) A c ( B C c ) c [ 0 1 0 0 1 0 1 1 ] and F = A c B c A C [ 1 1 0 0 0 1 0 1 ]
(5)

Then

E F [ 1 1 0 0 1 1 1 1 ] , E F [ 0 1 0 0 0 0 0 1 ] , and E c [ 1 0 1 1 0 1 0 0 ] E F [ 1 1 0 0 1 1 1 1 ] , E F [ 0 1 0 0 0 0 0 1 ] , and E c [ 1 0 1 1 0 1 0 0 ]
(6)

MATLAB logical operations

MATLAB logical operations on zero-one matrices provide a convenient way of handling Boolean combinations of minterm vectors represented as matrices. For two zero-one matrices E,FE,F of the same size

• E|FE|F is the matrix obtained by taking the maximum element in each place.
• E&FE&F is the matrix obtained by taking the minimum element in each place.
• ECEC is the matrix obtained by interchanging one and zero in each place in E.

Thus, if E,FE,F are minterm vectors for sets by the same name, then E|FE|F is the minterm vector for EFEF, E&FE&F is the minterm vector for EFEF, and E=1-EE=1-E is the minterm vector for Ec.

This suggests a general approach to determining minterm vectors for Boolean combinations.

2. Use MATLAB logical operations to obtain the minterm vector for any Boolean combination.

Suppose, for example, the class of generating sets is {A,B,C}{A,B,C}. Then the minterm vectors for A,BA,B, and C, respectively, are

A = [ 0 0 0 0 1 1 1 1 ] B = [ 0 0 1 1 0 0 1 1 ] C = [ 0 1 0 1 0 1 0 1 ] A = [ 0 0 0 0 1 1 1 1 ] B = [ 0 0 1 1 0 0 1 1 ] C = [ 0 1 0 1 0 1 0 1 ]
(7)

If E=ABCcE=ABCc, then the logical combination E=(A&B)|CE=(A&B)|C of the matrices yields E=[10101011]E=[10101011].

MATLAB implementation

A key step in the procedure just outlined is to obtain the minterm vectors for the generating elements {A,B,C}{A,B,C}. We have an m-function to provide such fundamental vectors. For example to produce the second minterm vector for the family (i.e., the minterm vector for B), the basic zero-one pattern 0 0 1 1 is replicated twice to give

 0     0     1     1     0     0     1     1


The function minterm(n,k) generates the kth minterm vector for a class of n generating sets.

### Example 1: Minterms for the class {A,B,C}{A,B,C}.

>> A = minterm(3,1)
A =  0     0     0     0     1     1     1     1
>> B = minterm(3,2)
B =  0     0     1     1     0     0     1     1
>> C = minterm(3,3)
C =  0     1     0     1     0     1     0     1


### Example 2: Minterm patterns for the Boolean combinations

F = A B B c C G = A A c C F = A B B c C G = A A c C

F = (A&B)|(~B&C)
F =  0     1     0     0     0     1     1     1
>> G = A|(~A&C)
G =  0     1     0     1     1     1     1     1
>> JF = find(F)-1           % Use of find to determine index set for F
JF =   1     5     6     7  % Shows F = M(1, 5, 6, 7)


These basic minterm patterns are useful not only for Boolean combinations of events but also for many aspects of the analysis of those random variables which take on only a finite number of values.

Zero-one arrays in MATLAB

The treatment above hides the fact that a rectangular array of zeros and ones can have two quite different meanings and functions in MATLAB.

1. A numerical matrix (or vector) subject to the usual operations on matrices..
2. A logical array whose elements are combined by a. Logical operators to give new logical arrays; b. Array operations (element by element) to give numerical matrices; c. Array operations with numerical matrices to give numerical results.

Some simple examples will illustrate the principal properties.

>>> A = minterm(3,1);
>> B = minterm(3,2);
>> C = minterm(3,3);
>> F = (A&B)|(~B&C)
F =  0     1     0     0     0     1     1     1
>> G = A|(~A&C)
G =  0     1     0     1     1     1     1     1
>> islogical(A)       % Test for logical array
ans =    0
>> islogical(F)
ans =   1
>> m = max(A,B)       % A matrix operation
m =   0     0     1     1     1     1     1     1
>> islogical(m)
ans =   0
>> m1 = A|B           % A logical operation
m1 =   0     0     1     1     1     1     1     1
>> islogical(m1)
ans = 1
>> a = logical(A)      % Converts 0-1 matrix into logical array
a =   0     0     0     0     1     1     1     1
>> b = logical(B)
>> m2 = a|b
m2 =   0     0     1     1     1     1     1     1
>> p = dot(A,B)        % Equivalently, p = A*B'
p =  2
>> p1 = total(A.*b)
p1 =  2
>> p3 = total(A.*B)
p3 =  2
>> p4 = a*b'           % Cannot use matrix operations on logical arrays
??? Error using ==> mtimes   % MATLAB error signal
Logical inputs must be scalar.


Often it is desirable to have a table of the generating minterm vectors. Use of the function minterm in a simple “for loop” yields the following m-function.

The function mintable(n) Generates a table of minterm vectors for n generating sets.

### Example 3: Mintable for three variables

>> M3 = mintable(3)
M3 = 0     0     0     0     1     1     1     1
0     0     1     1     0     0     1     1
0     1     0     1     0     1     0     1


As an application of mintable, consider the problem of determining the probability of k of n events. If {Ai:1in}{Ai:1in} is any finite class of events, the event that exactly k of these events occur on a trial can be characterized simply in terms of the minterm expansion. The event AknAkn that exactly k occur is given by

A k n = the disjoint union of those minterms with exactly k positions uncomplemented A k n = the disjoint union of those minterms with exactly k positions uncomplemented
(8)

In the matrix M = mintable(n) these are the minterms corresponding to columns with exactly k ones. The event BknBkn that k or more occur is given by

B k n = r = k n A r n B k n = r = k n A r n
(9)

If we have the minterm probabilities, it is easy to pick out the appropriate minterms and combine the probabilities. The following example in the case of three variables illustrates the procedure.

### Example 4: The software survey (continued)

In the software survey problem, the minterm probabilities are

p m = [ 0 0 . 05 0 . 10 0 . 05 0 . 20 0 . 10 0 . 40 0 . 10 ] p m = [ 0 0 . 05 0 . 10 0 . 05 0 . 20 0 . 10 0 . 40 0 . 10 ]
(10)

where A=A= event has word processor, B=B= event has spread sheet, C=C= event has a data base program. It is desired to get the probability an individual selected has k of these, k=0,1,2,3k=0,1,2,3.

SOLUTION

We form a mintable for three variables. We count the number of “successes” corresponding to each minterm by using the MATLAB function sum, which gives the sum of each column. In this case, it would be easy to determine each distinct value and add the probabilities on the minterms which yield this value. For more complicated cases, we have an m-function called csort (for sort and consolidate) to perform this operation.

>> pm = 0.01*[0 5 10 5 20 10 40 10];
>> M = mintable(3)
M =
0     0     0     0     1     1     1     1
0     0     1     1     0     0     1     1
0     1     0     1     0     1     0     1
>> T = sum(M)                                    % Column sums give number
T =  0     1     1     2     1     2     2     3 % of successes on each
>> [k,pk] = csort(T,pm);                         % minterm, determines
% distinct values in T and
>> disp([k;pk]')                                 % consolidates probabilities
0         0
1.0000    0.3500
2.0000    0.5500
3.0000    0.1000


For three variables, it is easy enough to identify the various combinations “by eye” and make the combinations. For a larger number of variables, however, this may become tedious. The approach is much more useful in the case of Independent Events, because of the ease of determining the minterm probabilities.

Minvec procedures

Use of the tilde to indicate the complement of an event is often awkward. It is customary to indicate the complement of an event E by Ec. In MATLAB, we cannot indicate the superscript, so we indicate the complement by EcEc instead of EE. To facilitate writing combinations, we have a family of minvec procedures (minvec3, minvec4, ..., minvec10) to expedite expressing Boolean combinations of n=3,4,5,,10n=3,4,5,,10 sets. These generate and name the minterm vector for each generating set and its complement.

### Example 5: Boolean combinations using minvec3

We wish to generate a matrix whose rows are the minterm vectors for Ω=AAcΩ=AAc, A, ABAB, ABCABC, C, and AcCcAcCc, respectively.

>> minvec3                               % Call for the setup procedure
Variables are A, B, C, Ac, Bc, Cc
They may be renamed, if desired
>> V = [A|Ac; A; A&B; A&B&C; C; Ac&Cc];  % Logical combinations (one per
% row) yield logical vectors
>> disp(V)
1     1     1     1     1     1     1     1   % Mixed logical and
0     0     0     0     1     1     1     1   % numerical vectors
0     0     0     0     0     0     1     1
0     0     0     0     0     0     0     1
0     1     0     1     0     1     0     1
1     0     1     0     0     0     0     0


Minterm probabilities and Boolean combination

If we have the probability of every minterm generated by a finite class, we can determine the probability of any Boolean combination of the members of the class. When we know the minterm expansion or, equivalently, the minterm vector, we simply pick out the probabilities corresponding to the minterms in the expansion and add them. In the following example, we do this “by hand” then show how to do it with MATLAB .

### Example 6

Consider E=A(BCc)Ac(BCc)cE=A(BCc)Ac(BCc)c and F=AcBcACF=AcBcAC of the example above, and suppose the respective minterm probabilities are

p 0 = 0 . 21 , p 1 = 0 . 06 , p 2 = 0 . 29 , p 3 = 0 . 11 , p 4 = 0 . 09 , p 5 = 0 . 03 , p 6 = 0 . 14 , p 7 = 0 . 07 p 0 = 0 . 21 , p 1 = 0 . 06 , p 2 = 0 . 29 , p 3 = 0 . 11 , p 4 = 0 . 09 , p 5 = 0 . 03 , p 6 = 0 . 14 , p 7 = 0 . 07
(11)

Use of a minterm map shows E=M(1,4,6,7)E=M(1,4,6,7) and F=M(0,1,5,7)F=M(0,1,5,7). so that

P ( E ) = p 1 + p 4 + p 6 + p 7 = p ( 1 , 4 , 6 , 7 ) = 0 . 36 and P ( F ) = p ( 0 , 1 , 5 , 7 ) = 0 . 37 P ( E ) = p 1 + p 4 + p 6 + p 7 = p ( 1 , 4 , 6 , 7 ) = 0 . 36 and P ( F ) = p ( 0 , 1 , 5 , 7 ) = 0 . 37
(12)

This is easily handled in MATLAB.

• Use minvec3 to set the generating minterm vectors.
• Use logical matrix operations
E=(A&(B|Cc))|(Ac&((B|Cc)))andF=(Ac&Bc)|(A&C)E=(A&(B|Cc))|(Ac&((B|Cc)))andF=(Ac&Bc)|(A&C)
(13)
to obtain the (logical) minterm vectors for E and F.
• If pmpm is the matrix of minterm probabilities, perform the algebraic dot product or scalar product of the pmpm matrix and the minterm vector for the combination. This can be called for by the MATLAB commands PE = E*pm' and PF = F*pm' .

The following is a transcript of the MATLAB operations.

>> minvec3                 % Call for the setup procedure
Variables are A, B, C, Ac, Bc, Cc
They may be renamed, if desired.
>> E  = (A&(B|Cc))|(Ac&~(B|Cc));
>> F  = (Ac&Bc)|(A&C);
>> pm = 0.01*[21 6 29 11 9 3 14 7];
>> PE = E*pm'              % Picks out and adds the minterm probabilities
PE =  0.3600
>> PF = F*pm'
PF =  0.3700


### Example 7: Solution of the software survey problem

We set up the matrix equations with the use of MATLAB and solve for the minterm probabilities. From these, we may solve for the desired “target” probabilities.

>> minvec3
Variables are A, B, C, Ac, Bc, Cc
They may be renamed, if desired.
Data vector combinations are:
>> DV = [A|Ac; A; B; C; A&B&C; Ac&Bc; (A&B)|(A&C)|(B&C); (A&Bc&C) - 2*(Ac&B&C)]
DV =
1     1     1     1     1     1     1     1    % Data mixed numerical
0     0     0     0     1     1     1     1    % and logical vectors
0     0     1     1     0     0     1     1
0     1     0     1     0     1     0     1
0     0     0     0     0     0     0     1
1     1     0     0     0     0     0     0
0     0     0     1     0     1     1     1
0     0     0    -2     0     1     0     0
>> DP = [1 0.8 0.65 0.3 0.1 0.05 0.65 0];  % Corresponding data probabilities
>> pm = DV\DP'                             % Solution for minterm probabilities
pm =
-0.0000                                          % Roundoff -3.5 x 10-17
0.0500
0.1000
0.0500
0.2000
0.1000
0.4000
0.1000
>> TV = [(A&B&Cc)|(A&Bc&C)|(Ac&B&C); Ac&Bc&C]       % Target combinations
TV =
0     0     0     1     0     1     1     0    % Target vectors
0     1     0     0     0     0     0     0
>> PV = TV*pm                          % Solution for target probabilities
PV =
0.5500                             % Target probabilities
0.0500


### Example 8: An alternate approach

The previous procedure first obtained all minterm probabilities, then used these to determine probabilities for the target combinations. The following procedure does not require calculation of the minterm probabilities. Sometimes the data are not sufficient to calculate all minterm probabilities, yet are sufficient to allow determination of the target probabilities.

Suppose the data minterm vectors are linearly independent, and the target minterm vectors are linearly dependent upon the data vectors (i.e., the target vectors can be expressed as linear combinations of the data vectors). Now each target probability is the same linear combination of the data probabilities. To determine the linear combinations, solve the matrix equation

T V = C T * D V which has the MATLAB solution C T = T V / D V T V = C T * D V which has the MATLAB solution C T = T V / D V
(14)

Then the matrix tptp of target probabilities is given by tp=CT*DP'tp=CT*DP'. Continuing the MATLAB procedure above, we have:

>> CT = TV/DV;

>> tp = CT*DP'

tp = 0.5500
0.0500

## The procedure mincalc

The procedure mincalc performs calculations as in the preceding examples. The refinements consist of determining consistency and computability of various individual minterm probabilities and target probilities. The consistency check is principally for negative minterm probabilities. The computability tests are tests for linear independence by means of calculation of ranks of various matrices. The procedure picks out the computable minterm probabilities and the computable target probabilities and calculates them.

To utilize the procedure, the problem must be formulated appropriately and precisely, as follows:

1. Use the MATLAB program minvecq to set minterm vectors for each of q basic events.
2. Data consist of Boolean combinations of the basic events and the respective probabilities of these combinations. These are organized into two matrices:
• The data vector matrix DVDV has the data Boolean combinations– one on each row. MATLAB translates each row into the minterm vector for the corresponding Boolean combination. The first entry (on the first row) is A ||Ac (for AAcAAc), which is the whole space. Its minterm vector consists of a row of ones.
• The data probability matrix DPDP is a row matrix of the data probabilities. The first entry is one, the probability of the whole space.
3. The objective is to determine the probability of various target Boolean combinations. These are put into the target vector matrix TVTV, one on each row. MATLAB produces the minterm vector for each corresponding target Boolean combination.

Computational note. In mincalc, it is necessary to turn the arrays DV and TV consisting of zero-one patterns into zero-one matrices. This is accomplished for DV by the operation DV = ones(size(DV)).*DV. and similarly for TV. Both the original and the transformed matrices have the same zero-one pattern, but MATLAB interprets them differently.

Usual case

Ṡuppose the data minterm vectors are linearly independent and the target vectors are each linearly dependent on the data minterm vectors. Then each target minterm vector is expressible as a linear combination of data minterm vectors. Thus, there is a matrix CTCT such that TV=CT*DVTV=CT*DV. MATLAB solves this with the command CT=TV/DVCT=TV/DV. The target probabilities are the same linear combinations of the data probabilities. These are obtained by the MATLAB operation tp=DP*CT'tp=DP*CT'.

Cautionary notes

The program mincalc depends upon the provision in MATLAB for solving equations when less than full data are available (based on the singular value decomposition). There are several situations which should be dealt with as special cases. It is usually a good idea to check results by hand to determine whether they are consistent with data. The checking by hand is usually much easier than obtaining the solution unaided, so that use of MATLAB is advantageous even in questionable cases.

1. The Zero Problem. If the total probability of a group of minterms is zero, then it follows that the probability of each minterm in the group is zero. However, if mincalc does not have enough information to calculate the separate minterm probabilities in the case they are not zero, it will not pick up in the zero case the fact that the separate minterm probabilities are zero. It simply considers these minterm probabilities not computable.
2. Linear dependence. In the case of linear dependence, the operation called for by the command CT = TV/DV may not be able to solve the equations. The matrix may be singular, or it may not be able to decide which of the redundant data equations to use. Should it provide a solution, the result should be checked with the aid of a minterm map.
3. Consistency check. Since the consistency check is for negative minterms, if there are not enough data to calculate the minterm probabilities, there is no simple check on the consistency. Sometimes the probability of a target vector included in another vector will actually exceed what should be the larger probability. Without considerable checking, it may be difficult to determine consistency.
4. In a few unusual cases, the command CT = TV/DV does not operate appropriately, even though the data should be adequate for the problem at hand. Apparently the approximation process does not converge.

MATLAB Solutions for examples using mincalc

### Example 9: Software survey

% file mcalc01   Data for software survey
minvec3;
DV = [A|Ac; A; B; C; A&B&C; Ac&Bc; (A&B)|(A&C)|(B&C); (A&Bc&C)  - 2*(Ac&B&C)];
DP = [1 0.8 0.65 0.3 0.1 0.05 0.65 0];
TV = [(A&B&Cc)|(A&Bc&C)|(Ac&B&C); Ac&Bc&C];
disp('Call for mincalc')
>> mcalc01         % Call for data
Call for mincalc   % Prompt supplied in the data file
>> mincalc
Data vectors are linearly independent
Computable target probabilities
1.0000    0.5500
2.0000    0.0500
The number of minterms is 8
The number of available minterms is 8
Available minterm probabilities are in vector pma
To view available minterm probabilities, call for PMA
>> disp(PMA)       % Optional call for minterm probabilities
0         0
1.0000    0.0500
2.0000    0.1000
3.0000    0.0500
4.0000    0.2000
5.0000    0.1000
6.0000    0.4000
7.0000    0.1000


### Example 10: Computer survey

% file mcalc02.m    Data for computer survey
minvec3
DV =   [A|Ac; A; B; C; A&B&C; A&C; (A&B)|(A&C)|(B&C); ...
2*(B&C) - (A&C)];
DP = 0.001*[1000 565 515 151 51 124 212 0];   TV = [A|B|C; Ac&Bc&C];
disp('Call for mincalc')
>> mcalc02
Call for mincalc
>> mincalc
Data vectors are linearly independent
Computable target probabilities
1.0000    0.9680
2.0000    0.0160
The number of minterms is 8
The number of available minterms is 8
Available minterm probabilities are in vector pma
To view available minterm probabilities, call for PMA
>> disp(PMA)
0         0.0320
1.0000    0.0160
2.0000    0.3760
3.0000    0.0110
4.0000    0.3640
5.0000    0.0730
6.0000    0.0770
7.0000    0.0510


### Example 11

% file mcalc03.m    Data for opinion survey
minvec4
DV = [A|Ac; A; B; C; D; A&(B|Cc)&Dc; A|((B&C)|Dc) ; Ac&B&Cc&D; ...
A&B&C&D; A&Bc&C; Ac&Bc&Cc&D; Ac&B&C; Ac&Bc&Dc; A&Cc; A&C&Dc; A&B&Cc&Dc];
DP =  0.001*[1000 200 500 300 700 55 520 200 15 30 195 120 120 ...
140 25 20];
TV = [Ac&((B&Cc)|(Bc&C)); A|(B&Cc)];
disp('Call for mincalc')
>> mincalc03
Call for mincalc
>> mincalc
Data vectors are linearly independent
Computable target probabilities
1.0000    0.4000
2.0000    0.4800
The number of minterms is 16
The number of available minterms is 16
Available minterm probabilities are in vector pma
To view available minterm probabilities, call for PMA
>> disp(minmap(pma))    % Display arranged as on minterm map
0.0850    0.0800    0.0200    0.0200
0.1950    0.2000    0.0500    0.0500
0.0350    0.0350    0.0100    0.0150
0.0850    0.0850    0.0200    0.0150


The procedure mincalct

A useful modification, which we call mincalct, computes the available target probabilities, without checking and computing the minterm probabilities. This procedure assumes a data file similar to that for mincalc, except that it does not need the target matrix TVTV, since it prompts for target Boolean combination inputs. The procedure mincalct may be used after mincalc has performed its operations to calculate probabilities for additional target combinations.

### Example 12: (continued) Additional target datum for the opinion survey

Suppose mincalc has been applied to the data for the opinion survey and that it is desired to determine P(ADBDc)P(ADBDc). It is not necessary to recalculate all the other quantities. We may simply use the procedure mincalct and input the desired Boolean combination at the prompt.

>> mincalct
Enter matrix of target Boolean combinations  (A&D)|(B&Dc)
Computable target probabilities
1.0000    0.2850


Repeated calls for mcalct may be used to compute other target probabilities.

## Content actions

PDF | EPUB (?)

### What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

### Reuse / Edit:

Reuse or edit module (?)

#### Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

#### Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.