Question

# A bag contains 4 red and 4 black balls, another bag contains 2 red and 6 black balls. One of the two bags is selected at random and a ball is drawn from the bag which is found to be red. Find the probability that the ball is drawn from the first bag.

Hint: Use Bayesâ€™ theorem and probability is the ratio of favorable number of outcomes to the total number of outcomes.

Given data
First bag contains 4 red and 4 black ball
Therefore total ball in first bag $= 4 + 4 = 8$
Second ball contains 2 red and 6 black ball
Therefore total ball in second bag $= 2 + 6 = 8$
Let ${x_1}$ and ${x_2}$ be the events of selecting first and second bag respectively.
Therefore probability of selecting one bag
$\Rightarrow p\left( {{x_1}} \right) = \dfrac{{{\text{Favorable bag}}}}{{{\text{Total bag}}}} = \dfrac{1}{2} = p\left( {{x_2}} \right)$
Let ${A_1}$ be the event of getting a red ball.
Therefore probability of drawing a red ball from the first bag $\Rightarrow p\left( {\dfrac{{{A_1}}}{{{x_1}}}} \right) = \dfrac{{{\text{Favorable balls}}}}{{{\text{Total balls}}}} = \dfrac{4}{8} = \dfrac{1}{2}$
Therefore probability of drawing a red ball from the Second bag $\Rightarrow p\left( {\dfrac{{{A_1}}}{{{x_2}}}} \right) = \dfrac{{{\text{Favorable balls}}}}{{{\text{Total balls}}}} = \dfrac{2}{8} = \dfrac{1}{4}$
Therefore probability of drawing a ball from the first bag, given that the ball is red is given by$p\left( {\dfrac{{{x_1}}}{{{A_1}}}} \right)$.
Now we have to use the Bayesâ€™ theorem to find out the total probability of drawing a ball from the first bag, given that the ball is red.
Bayesâ€™ Theorem - In probability theory and statistics, Bayes' theorem describes the probability of an event, based on prior knowledge of conditions that might be related to the event.
Here,
${x_1},{x_2},{A_1}$ = events.
$p\left( {\dfrac{{{x_1}}}{{{A_1}}}} \right)$= Probability of ${x_1}$ given ${A_1}$is true.
$p\left( {\dfrac{{{A_1}}}{{{x_1}}}} \right)$ = Probability of ${A_1}$ given ${x_1}$ is true.
$p\left( {\dfrac{{{A_1}}}{{{x_2}}}} \right)$ = Probability of ${A_1}$ given ${x_2}$ is true.
$p\left( {{x_1}} \right)$, $p\left( {{x_2}} \right)$ = independent probabilities of ${x_1}$ and ${x_2}$.
So, by Bayesâ€™ theorem we have
$\Rightarrow p\left( {\dfrac{{{x_1}}}{{{A_1}}}} \right) = \dfrac{{p\left( {{x_1}} \right).p\left( {\dfrac{{{A_1}}}{{{x_1}}}} \right)}}{{p\left( {{x_1}} \right).p\left( {\dfrac{{{A_1}}}{{{x_1}}}} \right) + p\left( {{x_2}} \right).p\left( {\dfrac{{{A_1}}}{{{x_2}}}} \right)}}$

$\Rightarrow p\left( {\dfrac{{{x_1}}}{{{A_1}}}} \right) = \dfrac{{\dfrac{1}{2}.\dfrac{1}{2}}}{{\dfrac{1}{2}.\dfrac{1}{2} + \dfrac{1}{2}.\dfrac{1}{4}}} = \dfrac{{\dfrac{1}{4}}}{{\dfrac{1}{4} + \dfrac{1}{8}}} = \dfrac{{\dfrac{1}{4}}}{{\dfrac{3}{8}}} = \dfrac{2}{3} = 0.66$
Therefore the required probability of drawing a ball from the first bag, given that the ball is red is 0.66.

Note: In such types of questions first find out the probability of selecting a bag then find out the probability of drawing a red ball from each bag then apply Bayesâ€™ theorem we easily calculate the required probability of drawing a ball from the first bag, given that the ball is red.
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://www.vedantu.com/question-answer/a-bag-contains-4-red-and-4-black-balls-another-class-12-maths-cbse-5edf380b11ac812938711ce9", "fetch_time": 1621165639000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2021-21/segments/1620243991269.57/warc/CC-MAIN-20210516105746-20210516135746-00475.warc.gz", "warc_record_offset": 1119217616, "warc_record_length": 50008, "token_count": 1059, "char_count": 3180, "score": 4.78125, "int_score": 5, "crawl": "CC-MAIN-2021-21", "snapshot_type": "longest", "language": "en", "language_score": 0.8175426125526428, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00028-of-00064.parquet"}