<< Chapter < Page | Chapter >> Page > |
Determining the partition generated by a simple random variable amounts to determining the canonical form. The distribution is then completed by determining the probabilities ofeach event .
From a primitive form
Before writing down the general pattern, we consider an illustrative example.
Suppose one item is selected at random from a group of ten items. The values (in dollars) and respective probabilities are
c j | 2.00 | 1.50 | 2.00 | 2.50 | 1.50 | 1.50 | 1.00 | 2.50 | 2.00 | 1.50 |
0.08 | 0.11 | 0.07 | 0.15 | 0.10 | 0.09 | 0.14 | 0.08 | 0.08 | 0.10 |
By inspection, we find four distinct values: , , , and . The value 1.00 is taken on for , so that and . Value 1.50 is taken on for so that
Similarly
The distribution for X is thus
k | 1.00 | 1.50 | 2.00 | 2.50 |
0.14 | 0.40 | 0.23 | 0.23 |
The general procedure may be formulated as follows:
If , we identify the set of distinct values in the set . Suppose these are . For any possible value t i in the range, identify the index set J i of those j such that . Then the terms
and
Examination of this procedure shows that there are two phases:
We use the m-function csort which performs these two operations (see Example 4 from "Minterms and MATLAB Calculations").
>>C = [2.00 1.50 2.00 2.50 1.50 1.50 1.00 2.50 2.00 1.50]; % Matrix of c_j>>pc = [0.08 0.11 0.07 0.15 0.10 0.09 0.14 0.08 0.08 0.10]; % Matrix of P(C_j)>>[X,PX] = csort(C,pc); % The sorting and consolidating operation>>disp([X;PX]') % Display of results1.0000 0.1400
1.5000 0.40002.0000 0.2300
2.5000 0.2300
For a problem this small, use of a tool such as csort is not really needed. But in many problems with large sets of data the m-function csort is very useful.
From affine form
Suppose X is in affine form,
We determine a particular primitive form by determining the value of X on each minterm generated by the class . We do this in a systematic way by utilizing minterm vectors and properties of indicator functions.
We illustrate with a simple example. Extension to the general case should be quite evident. First, we do the problem “by hand” in tabular form. Then we use them-procedures to carry out the desired operations.
Notification Switch
Would you like to follow the 'Applied probability' conversation and receive update notifications?