Solution. In this trial, there are 36 equally possible elementary outcomes (see Table 1.1). The random variable X can take integer values from 2 to 12, where the values 2 and 12 occur once, 3 and 11 - twice, 4 and 10 - three times, 5 and 9 - four times, 6 and 8 - five times, and the value 7 - six times.
Let's calculate the probabilities of these values:
p1=P(X=2)=361,p2=P(X=3)=362=181,p3=P(X=4)=363=121p4=P(X=5)=364=91,p5=P(X=6)=365,p6=P(X=7)=366=61p7=P(X=8)=365,p8=P(X=9)=364=91,p9=P(X=10)=363=121p10=P(X=11)=362=181,p11=P(X=12)=361
Therefore, the distribution law of the random variable X can be given by the table
| X | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| P | 361 | 181 | 121 | 91 | 365 | 61 | 365 | 91 | 121 | 181 | 361 |
Note that
361+181+121+91+365+61+365+91+121+181+361=1
i.e., the equality (2.1.2) is satisfied.
Example 7: In a box, there are 7 pencils, 4 of which are red. Three pencils are randomly drawn from this box. Find the distribution law of the random variable X, which is equal to the number of red pencils in the sample.
Solution. In a sample of three pencils, there may be no red pencils, one, two, or three pencils. Therefore, the random variable X can take only four values: x1=0,x2=1,x3=2,x4=3.
Let's find the probabilities of these values:
p1=P(X=0)=C73C40⋅C33=351;p2=P(X=1)=C73C41⋅C32=3512p3=P(X=2)=C73C42⋅C31=3518;p4=P(X=3)=C73C43⋅C30=354
Therefore, the random variable X has the following distribution law:
| X | 0 | 1 | 2 | 3 |
| :---: | :---: | :---: | :---: | :---: |
| P⋅ | 351 | 3512 | 3518 | 354 |
Note that 1/35+12/35+18/35+4/35=1, i.e., the equality (2.1.2) is satisfied.