maths.free › Probability Theory › Probability › Conditional Probability and Independent Events

Conditional Probability and Independent Events

A jar contains twenty marbles of which six are red, nine are blue and the remaining five are green.

Conditional Probability and Independent Events

A jar contains twenty marbles of which six are red, nine are blue and the remaining five are green. While blindfolded, Xing selects two of the twenty marbles random (without replacement) and puts one in his left pocket and one in his right pocket. He then takes off the blindfold.

The probability that the marble in his left pocket is red is \(6/20\). But Xing first reaches into his right pocket, takes this marble out and discovers that it is blue. Is the probability that the marble in his left pocket is red still \(6/20\)? Intuition says that it's slightly higher than that. Here's a more formal framework for answering such questions.

Let \((S,P)\) be a probability space and let \(B\) be an event for which \(P(B)>0\). Then for every event \(A\subseteq S\), we define the probability of \(A\), given \(B\), denoted \(P(A|B)\)\(P(A|B)\)probability of \(A\) given \(B\), by setting \(P(A|B)=P(A\cap B)/P(B)\).

Example

Consider the jar of twenty marbles from the preceding example. A second jar of marbles is introduced. This jar has eighteen marbles: nine red, five blue and four green. A jar is selected at random and from this jar, two marbles are chosen at random. What is the probability that both are green? Bob is on a roll. He says, Let \(G\) be the event that both marbles are green, and let \(J_1\) and \(J_2\) be the event that the marbles come from the first jar and the second jar, respectively. Then \(G= (G\cap J_1)\cup (G\cap J_2)\), and \((G\cap J_1)+(G\cap J_2)=\emptyset\). Furthermore, \(P(G|J_1)=\binom{5}{2}/\binom{20}{2}\) and \(P(G|J_2)=\binom{4}{2}/\binom{18}{2}\), while \(P(J_1)=P(J_2)=1/2\). Also \(P(G\cap J_i)=P(J_i)P(G|J_i)\) for each \(i=1,2\). Therefore, \[\begin{aligned}\end{aligned}\] That's about \(4.6\)%.

Now Alice is speechless.

Independent Events

Let \(A\) and \(B\) be events in a probability space \((S,P)\). We say \(A\) and \(B\) are independent if \(P(A\cap B)=P(A)P(B)\). Note that when \(P(B)\neq 0\), \(A\) and \(B\) are independent if and only if \(P(A)=P(A|B)\). Two events that are not independent are said to be dependent. Returning to our earlier example, the two events (\(A\): the marble in Xing's left pocket is red and \(B\): the marble in his right pocket is blue) are dependent.

Example

Consider the two jars of marbles from . One of the two jars is chosen at random and a single marble is drawn from that jar. Let \(A\) be the event that the second jar is chosen, and let \(B\) be the event that the marble chosen turns out to be green. Then \(P(A)=1/2\) and \(P(B)=\frac{1}{2}\frac{5}{20}+ \frac{1}{2}\frac{4}{18}\). On the other hand, \(P(A\cap B)=\frac{1}{2} \frac{4}{18}\), so \(P(A\cap B)\neq P(A)P(B)\), and the two events are not independent. Intuitively, this should be clear, since once you know that the marble is green, it is more likely that you actually chose the first jar.

Example

A pair of dice are rolled, one red and one blue. Let \(A\) be the event that the red die shows either a \(3\) or a \(5\), and let \(B\) be the event that you get doubles, , the red die and the blue die show the same number. Then \(P(A)=2/6\), \(P(B)=6/36\), and \(P(A\cap B) = 2/36\). So \(A\) and \(B\) are independent.

Haddaad Ma jiro xisaabis oo ku nool midkan, laakiin qaybaha ka mid ah waa la xisaabi karaa. Ku raaxayso mid ka hooseeya, ama ku qor adiga kuu gaar ah.

Ku hay shaqadaada

A xisaab bilaash ah oo ku daray qoraalada waxbarasho kasta, diiwaanka waxa aad dhamaatay, dhibaatooyinka aad xal u tahay meel kaliya, iyo macallinka aad weydiisan kartaa oo ku saabsan bogga. Xisaabta oo keliya waa u furan yahay qof kasta, la diiwaan geliyey ama aan.

Ku soo biir Ku soo gal

Calaamadaha la isticmaalay halkan

Taab calaamad kasta oo loogu talagalay qeexidda buuxda, sawir, iyo waxa xarfaha oo dhan ka mid ah ka dhigan tahay.

Su'aalaha dadku waydiiyaan

What is the difference between probability and statistics?

Probability goes from a known model to what the data should look like; statistics goes from data back to the model. Probability theory is the deductive half.

What does the law of large numbers promise?

That the average of many independent samples converges to the expected value. It says nothing about any single trial.

Qaybaha ee boggaan waxaa la beddelay ka Keller & Trotter, Applied Combinatorics (CC BY-SA 4.0). Condensed iyo dib-oo halkan lagu sharaxay; khaladaadka waa inoo.

In ka badan Probability Theory