IB AA · 8A Discrete Random Variables
Two objects are taken at random. X is how many of them are a chosen type.
Jump to section:
First and second
The first draw changes what is left. Multiply along each path.
Exactly one
Add the path that starts with the chosen type and the path that starts with the other type.
Both, or neither
Both means the chosen type twice. Neither means the other type twice.
A zero probability
If fewer than two of that type are available, that probability is 0.
A small bag. Two are taken, and X counts one color.
Two are drawn, one after the other, without putting the first one back.
First red, probability 58
then red, probability 47
then blue, probability 37
First blue, probability 38
then red, probability 57
then blue, probability 27
P(X = 2) = P(red then red)
P(X = 2) = 58 × 47
P(X = 2) = 2056
P(X = 2) = 514
P(X = 1) = P(red then blue) + P(blue then red)
P(red then blue) = 58 × 37
P(red then blue) = 1556
P(blue then red) = 38 × 57
P(blue then red) = 1556
P(X = 1) = 1556 + 1556
P(X = 1) = 16803136
P(X = 1) = 1528
P(X = 0) = P(blue then blue)
P(X = 0) = 38 × 27
P(X = 0) = 656
P(X = 0) = 328
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 328 | 1528 | 514 |
The probabilities add to 1.
328 + 1528 + 1028 = 2828
2828 = 1
Answer: P(X = 0) = 328, P(X = 1) = 1528, P(X = 2) = 514
Two are drawn, one after the other, without putting the first one back.
First red, probability 23
then red, probability 35
then blue, probability 25
First blue, probability 13
then red, probability 45
then blue, probability 15
P(X = 2) = P(red then red)
P(X = 2) = 23 × 35
P(X = 2) = 615
P(X = 2) = 25
P(X = 1) = P(red then blue) + P(blue then red)
P(red then blue) = 23 × 25
P(red then blue) = 415
P(blue then red) = 13 × 45
P(blue then red) = 415
P(X = 1) = 415 + 415
P(X = 1) = 120225
P(X = 1) = 815
P(X = 0) = P(blue then blue)
P(X = 0) = 13 × 15
P(X = 0) = 115
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 115 | 815 | 25 |
The probabilities add to 1.
115 + 815 + 615 = 1515
1515 = 1
Answer: P(X = 0) = 115, P(X = 1) = 815, P(X = 2) = 25
Two are drawn, one after the other, without putting the first one back.
First yellow, probability 14
then yellow, probability 17
then green, probability 67
First green, probability 34
then yellow, probability 27
then green, probability 57
P(X = 2) = P(yellow then yellow)
P(X = 2) = 14 × 17
P(X = 2) = 128
P(X = 1) = P(yellow then green) + P(green then yellow)
P(yellow then green) = 14 × 67
P(yellow then green) = 628
P(yellow then green) = 314
P(green then yellow) = 34 × 27
P(green then yellow) = 628
P(green then yellow) = 314
P(X = 1) = 314 + 314
P(X = 1) = 84196
P(X = 1) = 37
P(X = 0) = P(green then green)
P(X = 0) = 34 × 57
P(X = 0) = 1528
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 1528 | 37 | 128 |
The probabilities add to 1.
1528 + 1228 + 128 = 2828
2828 = 1
Answer: P(X = 0) = 1528, P(X = 1) = 37, P(X = 2) = 128
Two are drawn, one after the other, without putting the first one back.
First red, probability 12
then red, probability 25
then blue, probability 35
First blue, probability 12
then red, probability 35
then blue, probability 25
P(X = 2) = P(red then red)
P(X = 2) = 12 × 25
P(X = 2) = 210
P(X = 2) = 15
P(X = 1) = P(red then blue) + P(blue then red)
P(red then blue) = 12 × 35
P(red then blue) = 310
P(blue then red) = 12 × 35
P(blue then red) = 310
P(X = 1) = 310 + 310
P(X = 1) = 60100
P(X = 1) = 35
P(X = 0) = P(blue then blue)
P(X = 0) = 12 × 25
P(X = 0) = 210
P(X = 0) = 15
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 15 | 35 | 15 |
The probabilities add to 1.
15 + 35 + 15 = 55
55 = 1
Answer: P(X = 0) = 15, P(X = 1) = 35, P(X = 2) = 15
Two are drawn, one after the other, without putting the first one back.
First apple, probability 59
then apple, probability 12
then orange, probability 12
First orange, probability 49
then apple, probability 58
then orange, probability 38
P(X = 2) = P(apple then apple)
P(X = 2) = 59 × 12
P(X = 2) = 518
P(X = 1) = P(apple then orange) + P(orange then apple)
P(apple then orange) = 59 × 12
P(apple then orange) = 518
P(orange then apple) = 49 × 58
P(orange then apple) = 2072
P(orange then apple) = 518
P(X = 1) = 518 + 518
P(X = 1) = 180324
P(X = 1) = 59
P(X = 0) = P(orange then orange)
P(X = 0) = 49 × 38
P(X = 0) = 1272
P(X = 0) = 16
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 16 | 59 | 518 |
The probabilities add to 1.
318 + 1018 + 518 = 1818
1818 = 1
Answer: P(X = 0) = 16, P(X = 1) = 59, P(X = 2) = 518
Two are drawn, one after the other, without putting the first one back.
First chocolate, probability 12
then chocolate, probability 37
then vanilla, probability 47
First vanilla, probability 12
then chocolate, probability 47
then vanilla, probability 37
P(X = 2) = P(chocolate then chocolate)
P(X = 2) = 12 × 37
P(X = 2) = 314
P(X = 1) = P(chocolate then vanilla) + P(vanilla then chocolate)
P(chocolate then vanilla) = 12 × 47
P(chocolate then vanilla) = 414
P(chocolate then vanilla) = 27
P(vanilla then chocolate) = 12 × 47
P(vanilla then chocolate) = 414
P(vanilla then chocolate) = 27
P(X = 1) = 27 + 27
P(X = 1) = 2849
P(X = 1) = 47
P(X = 0) = P(vanilla then vanilla)
P(X = 0) = 12 × 37
P(X = 0) = 314
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 314 | 47 | 314 |
The probabilities add to 1.
314 + 814 + 314 = 1414
1414 = 1
Answer: P(X = 0) = 314, P(X = 1) = 47, P(X = 2) = 314
A larger bag, or two cards from a pack.
Two are drawn, one after the other, without putting the first one back.
First blue, probability 512
then blue, probability 411
then red, probability 711
First red, probability 712
then blue, probability 511
then red, probability 611
P(X = 2) = P(blue then blue)
P(X = 2) = 512 × 411
P(X = 2) = 20132
P(X = 2) = 533
P(X = 1) = P(blue then red) + P(red then blue)
P(blue then red) = 512 × 711
P(blue then red) = 35132
P(red then blue) = 712 × 511
P(red then blue) = 35132
P(X = 1) = 35132 + 35132
P(X = 1) = 924017424
P(X = 1) = 3566
P(X = 0) = P(red then red)
P(X = 0) = 712 × 611
P(X = 0) = 42132
P(X = 0) = 722
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 722 | 3566 | 533 |
The probabilities add to 1.
2166 + 3566 + 1066 = 6666
6666 = 1
Answer: P(X = 0) = 722, P(X = 1) = 3566, P(X = 2) = 533
Two are drawn, one after the other, without putting the first one back.
First yellow, probability 13
then yellow, probability 311
then red, probability 811
First red, probability 23
then yellow, probability 411
then red, probability 711
P(X = 2) = P(yellow then yellow)
P(X = 2) = 13 × 311
P(X = 2) = 333
P(X = 2) = 111
P(X = 1) = P(yellow then red) + P(red then yellow)
P(yellow then red) = 13 × 811
P(yellow then red) = 833
P(red then yellow) = 23 × 411
P(red then yellow) = 833
P(X = 1) = 833 + 833
P(X = 1) = 5281089
P(X = 1) = 1633
P(X = 0) = P(red then red)
P(X = 0) = 23 × 711
P(X = 0) = 1433
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 1433 | 1633 | 111 |
The probabilities add to 1.
1433 + 1633 + 333 = 3333
3333 = 1
Answer: P(X = 0) = 1433, P(X = 1) = 1633, P(X = 2) = 111
Two are drawn, one after the other, without putting the first one back.
First green, probability 14
then green, probability 211
then blue, probability 911
First blue, probability 34
then green, probability 311
then blue, probability 811
P(X = 2) = P(green then green)
P(X = 2) = 14 × 211
P(X = 2) = 244
P(X = 2) = 122
P(X = 1) = P(green then blue) + P(blue then green)
P(green then blue) = 14 × 911
P(green then blue) = 944
P(blue then green) = 34 × 311
P(blue then green) = 944
P(X = 1) = 944 + 944
P(X = 1) = 7921936
P(X = 1) = 922
P(X = 0) = P(blue then blue)
P(X = 0) = 34 × 811
P(X = 0) = 2444
P(X = 0) = 611
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 611 | 922 | 122 |
The probabilities add to 1.
1222 + 922 + 122 = 2222
2222 = 1
Answer: P(X = 0) = 611, P(X = 1) = 922, P(X = 2) = 122
Two are drawn, one after the other, without putting the first one back.
First ace, probability 113
then ace, probability 117
then non-ace, probability 1617
First non-ace, probability 1213
then ace, probability 451
then non-ace, probability 4751
P(X = 2) = P(ace then ace)
P(X = 2) = 113 × 117
P(X = 2) = 1221
P(X = 1) = P(ace then non-ace) + P(non-ace then ace)
P(ace then non-ace) = 113 × 1617
P(ace then non-ace) = 16221
P(non-ace then ace) = 1213 × 451
P(non-ace then ace) = 48663
P(non-ace then ace) = 16221
P(X = 1) = 16221 + 16221
P(X = 1) = 707248841
P(X = 1) = 32221
P(X = 0) = P(non-ace then non-ace)
P(X = 0) = 1213 × 4751
P(X = 0) = 564663
P(X = 0) = 188221
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 188221 | 32221 | 1221 |
The probabilities add to 1.
188221 + 32221 + 1221 = 221221
221221 = 1
Answer: P(X = 0) = 188221, P(X = 1) = 32221, P(X = 2) = 1221
Two are drawn, one after the other, without putting the first one back.
First club, probability 14
then club, probability 417
then non-club, probability 1317
First non-club, probability 34
then club, probability 1351
then non-club, probability 3851
P(X = 2) = P(club then club)
P(X = 2) = 14 × 417
P(X = 2) = 468
P(X = 2) = 117
P(X = 1) = P(club then non-club) + P(non-club then club)
P(club then non-club) = 14 × 1317
P(club then non-club) = 1368
P(non-club then club) = 34 × 1351
P(non-club then club) = 39204
P(non-club then club) = 1368
P(X = 1) = 1368 + 1368
P(X = 1) = 17684624
P(X = 1) = 1334
P(X = 0) = P(non-club then non-club)
P(X = 0) = 34 × 3851
P(X = 0) = 114204
P(X = 0) = 1934
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 1934 | 1334 | 117 |
The probabilities add to 1.
1934 + 1334 + 234 = 3434
3434 = 1
Answer: P(X = 0) = 1934, P(X = 1) = 1334, P(X = 2) = 117
Two are drawn, one after the other, without putting the first one back.
First red, probability 58
then red, probability 35
then green, probability 25
First green, probability 38
then red, probability 23
then green, probability 13
P(X = 2) = P(red then red)
P(X = 2) = 58 × 35
P(X = 2) = 1540
P(X = 2) = 38
P(X = 1) = P(red then green) + P(green then red)
P(red then green) = 58 × 25
P(red then green) = 1040
P(red then green) = 14
P(green then red) = 38 × 23
P(green then red) = 624
P(green then red) = 14
P(X = 1) = 14 + 14
P(X = 1) = 816
P(X = 1) = 12
P(X = 0) = P(green then green)
P(X = 0) = 38 × 13
P(X = 0) = 324
P(X = 0) = 18
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 18 | 12 | 38 |
The probabilities add to 1.
18 + 48 + 38 = 88
88 = 1
Answer: P(X = 0) = 18, P(X = 1) = 12, P(X = 2) = 38
One of the probabilities may be 0, or the pack is split another way.
Two are drawn, one after the other, without putting the first one back.
First mint, probability 37
then mint, probability 513
then lemon, probability 813
First lemon, probability 47
then mint, probability 613
then lemon, probability 713
P(X = 2) = P(mint then mint)
P(X = 2) = 37 × 513
P(X = 2) = 1591
P(X = 1) = P(mint then lemon) + P(lemon then mint)
P(mint then lemon) = 37 × 813
P(mint then lemon) = 2491
P(lemon then mint) = 47 × 613
P(lemon then mint) = 2491
P(X = 1) = 2491 + 2491
P(X = 1) = 43688281
P(X = 1) = 4891
P(X = 0) = P(lemon then lemon)
P(X = 0) = 47 × 713
P(X = 0) = 2891
P(X = 0) = 413
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 413 | 4891 | 1591 |
The probabilities add to 1.
2891 + 4891 + 1591 = 9191
9191 = 1
Answer: P(X = 0) = 413, P(X = 1) = 4891, P(X = 2) = 1591
Two are drawn, one after the other, without putting the first one back.
First gold, probability 16
then gold, probability 0
then silver, probability 1
First silver, probability 56
then gold, probability 15
then silver, probability 45
There is only 1 gold, so P(X = 2) = 0.
P(X = 1) = P(gold then silver) + P(silver then gold)
P(gold then silver) = 16 × 1
P(gold then silver) = 16
P(silver then gold) = 56 × 15
P(silver then gold) = 530
P(silver then gold) = 16
P(X = 1) = 16 + 16
P(X = 1) = 1236
P(X = 1) = 13
P(X = 0) = P(silver then silver)
P(X = 0) = 56 × 45
P(X = 0) = 2030
P(X = 0) = 23
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 23 | 13 | 0 |
The probabilities add to 1.
23 + 13 + 03 = 33
33 = 1
Answer: P(X = 0) = 23, P(X = 1) = 13, P(X = 2) = 0
Two are drawn, one after the other, without putting the first one back.
First red, probability 12
then red, probability 2551
then black, probability 2651
First black, probability 12
then red, probability 2651
then black, probability 2551
P(X = 2) = P(red then red)
P(X = 2) = 12 × 2551
P(X = 2) = 25102
P(X = 1) = P(red then black) + P(black then red)
P(red then black) = 12 × 2651
P(red then black) = 26102
P(red then black) = 1351
P(black then red) = 12 × 2651
P(black then red) = 26102
P(black then red) = 1351
P(X = 1) = 1351 + 1351
P(X = 1) = 13262601
P(X = 1) = 2651
P(X = 0) = P(black then black)
P(X = 0) = 12 × 2551
P(X = 0) = 25102
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 25102 | 2651 | 25102 |
The probabilities add to 1.
25102 + 52102 + 25102 = 102102
102102 = 1
Answer: P(X = 0) = 25102, P(X = 1) = 2651, P(X = 2) = 25102
Two are drawn, one after the other, without putting the first one back.
First blue, probability 712
then blue, probability 611
then purple, probability 511
First purple, probability 512
then blue, probability 711
then purple, probability 411
P(X = 2) = P(blue then blue)
P(X = 2) = 712 × 611
P(X = 2) = 42132
P(X = 2) = 722
P(X = 1) = P(blue then purple) + P(purple then blue)
P(blue then purple) = 712 × 511
P(blue then purple) = 35132
P(purple then blue) = 512 × 711
P(purple then blue) = 35132
P(X = 1) = 35132 + 35132
P(X = 1) = 924017424
P(X = 1) = 3566
P(X = 0) = P(purple then purple)
P(X = 0) = 512 × 411
P(X = 0) = 20132
P(X = 0) = 533
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 533 | 3566 | 722 |
The probabilities add to 1.
1066 + 3566 + 2166 = 6666
6666 = 1
Answer: P(X = 0) = 533, P(X = 1) = 3566, P(X = 2) = 722
Two are drawn, one after the other, without putting the first one back.
First face card, probability 313
then face card, probability 1151
then other card, probability 4051
First other card, probability 1013
then face card, probability 417
then other card, probability 1317
P(X = 2) = P(face card then face card)
P(X = 2) = 313 × 1151
P(X = 2) = 33663
P(X = 2) = 11221
P(X = 1) = P(face card then other card) + P(other card then face card)
P(face card then other card) = 313 × 4051
P(face card then other card) = 120663
P(face card then other card) = 40221
P(other card then face card) = 1013 × 417
P(other card then face card) = 40221
P(X = 1) = 40221 + 40221
P(X = 1) = 1768048841
P(X = 1) = 80221
P(X = 0) = P(other card then other card)
P(X = 0) = 1013 × 1317
P(X = 0) = 130221
P(X = 0) = 1017
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 1017 | 80221 | 11221 |
The probabilities add to 1.
130221 + 80221 + 11221 = 221221
221221 = 1
Answer: P(X = 0) = 1017, P(X = 1) = 80221, P(X = 2) = 11221
Two are drawn, one after the other, without putting the first one back.
First yellow, probability 514
then yellow, probability 413
then red, probability 913
First red, probability 914
then yellow, probability 513
then red, probability 813
P(X = 2) = P(yellow then yellow)
P(X = 2) = 514 × 413
P(X = 2) = 20182
P(X = 2) = 1091
P(X = 1) = P(yellow then red) + P(red then yellow)
P(yellow then red) = 514 × 913
P(yellow then red) = 45182
P(red then yellow) = 914 × 513
P(red then yellow) = 45182
P(X = 1) = 45182 + 45182
P(X = 1) = 1638033124
P(X = 1) = 4591
P(X = 0) = P(red then red)
P(X = 0) = 914 × 813
P(X = 0) = 72182
P(X = 0) = 3691
| X | 0 | 1 | 2 |
|---|---|---|---|
| P(X = x) | 3691 | 4591 | 1091 |
The probabilities add to 1.
3691 + 4591 + 1091 = 9191
9191 = 1
Answer: P(X = 0) = 3691, P(X = 1) = 4591, P(X = 2) = 1091
Want to go over a random variable together?
Book a Session with Amy