Assigning Probability
Let be the sample space of an experiment with a finite or countable number of outcomes. We assign a probability to each outcome . We require that two conditions be met:Misalkan menjadi ruang sampel percobaan dengan jumlah hasil yang terbatas atau dapat dihitung. Kami menetapkan probabilitas untuk setiap hasil. Kami mengharuskan dua kondisi terpenuhi:
Example
What probabilities should we assign to the outcomes H (heads) and T (tails) when a fair coin is flipped? What probabilities should be assigned to these outcomes when the coin is biased so that heads comes up twice as often as tails?
Berapa Probabilitas yang harus kita berikan pada hasil H (kepala) dan T (ekor) ketika koin yang adil dibalik? Peluang apa yang harus diberikan untuk hasil ini ketika koin bias sehingga kepala muncul dua kali lebih sering dari pada ekor?Solution:
For a fair coin, the probability that heads comes up when the coin is flipped equals the probability that tails comes up, so the outcomes are equally likely.
Consequently, we assign the probability to each of the two possible outcomes, that is, .
For the biased coin we have
.
Because
,
it follows that
.
We conclude that\ and .
Consequently, we assign the probability to each of the two possible outcomes, that is, .
For the biased coin we have
.
Because
,
it follows that
.
We conclude that\ and .
Uniform Distribution
Suppose that is a set with elements. The uniform distribution assigns the probability to each element of .Misalkan adalah himpunan dengan elemen. Distribusi seragam memberikan probabilitas untuk setiap elemen .
Conditional Probability
Let and be events with . The conditional probability of given , denoted by , is defined asExample
A bit string of length four is generated at random so that each of the 16 bit strings of length four is equally likely. What is the probability that it contains at least two consecutive 0s, given that its first bit is a 0? (We assume that 0 bits and 1 bits are equally likely.)
Sebuah string bit dengan panjang empat dihasilkan secara acak sehingga masing-masing dari 16 bit string dengan panjang empat kemungkinannya sama. Berapa probabilitasnya mengandung setidaknya dua 0 berturut-turut, mengingat bit pertamanya adalah 0? (Kami berasumsi bahwa 0 bit dan 1 bit kemungkinannya sama.)Solution:
Let be the event that a bit string of length four contains at least two consecutive 0s, and let be the event that the first bit of a bit string of length four is a 0.
The probability that a bit string of length four has at least two consecutive 0s, given that its first bit is a 0, equals
.
Because ,
we see that .
Because there are eight bit strings of length four that start with a 0, we have . Consequently,
.
Misalkan E adalah kejadian di mana sebuah string bit dengan panjang empat berisi setidaknya dua 0 berturut-turut, dan misalkan F adalah kejadian bahwa bit pertama dari string bit dengan panjang empat adalah 0.
The probability that a bit string of length four has at least two consecutive 0s, given that its first bit is a 0, equals
.
Because ,
we see that .
Because there are eight bit strings of length four that start with a 0, we have . Consequently,
.
What is the conditional probability that a family with two children has two boys, given they have at least one boy? Assume that each of the possibilities BB, BG, GB, and GG is equally likely, where B represents a boy and G represents a girl. (Note that BG represents a family with an older boy and a younger girl while GB represents a family with an older girl and a younger boy.)
Berapa probabilitas bersyarat bahwa sebuah keluarga dengan dua anak memiliki dua anak laki-laki, mengingat mereka memiliki setidaknya satu anak laki-laki? Asumsikan bahwa masing-masing kemungkinan BB, BG, GB, dan GG memiliki kemungkinan yang sama, di mana B mewakili laki-laki dan G mewakili perempuan. (Perhatikan bahwa BG mewakili sebuah keluarga dengan seorang anak laki-laki yang lebih tua dan seorang anak perempuan yang lebih muda sementara GB mewakili sebuah keluarga dengan seorang anak perempuan yang lebih tua dan seorang anak laki-laki yang lebih muda.)Solution:
Let be the event that a family with two children has two boys, and let be the event that a family with two children has at least one boy.
It follows that , and .
Because the four possibilities are equally likely, it follows that and . We conclude that
.
It follows that , and .
Because the four possibilities are equally likely, it follows that and . We conclude that
.
Independence
Suppose a coin is flipped three times, does knowing that the first flip comes up tails (event ) alter the probability that tails comes up an odd number of times (event )?Misalkan sebuah koin dibalik tiga kali, bagaimana mengetahui bahwa lemparan pertama muncul ekor (peristiwa ) mengubah probabilitas bahwa ekor muncul dalam jumlah ganjil (peristiwa )?In other words, is it the case that ? This equality is valid for the events and , because Because , asking whether is the same as asking whether The events and are independent if and only if
Example
Suppose is the event that a randomly generated bit string of length four
begins with a 1 and is the event that this bit string contains an even
number of 1s. Are and independent, if the 16 bit strings of length four
are equally likely?Solution:
There are eight bit strings of length four that begin with a one:
There are also eight bit strings of length four that contain an even number of ones:
Because there are 16 bit strings of length four, it follows that
.
Because , we see that
.
Because
,
we conclude that and are independent.
1000, 1001, 1010, 1011, 1100, 1101, 1110, and 1111.There are also eight bit strings of length four that contain an even number of ones:
0000, 0011, 0101, 0110, 1001, 1010, 1100, 1111.Because there are 16 bit strings of length four, it follows that
.
Because , we see that
.
Because
,
we conclude that and are independent.