probabilitati_conditionate

Upload: justin-puscasu

Post on 14-Apr-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 probabilitati_conditionate

    1/41

    Conditional ProbabilityConditional Probability

    What is conditional probability?What is conditional probability?

    What is the Multiplication Rule?What is the Multiplication Rule?

  • 7/30/2019 probabilitati_conditionate

    2/41

    What is Conditional Probability?What is Conditional Probability?

    The simplest way in which to defineThe simplest way in which to defineconditional probability is asconditional probability is asprobability with conditions.probability with conditions.

    For example,For example, what is thewhat is theprobability that event E occursprobability that event E occurs ifif

    we know thatwe know thatevent F occurs?event F occurs?

  • 7/30/2019 probabilitati_conditionate

    3/41

    What is Conditional Probability?What is Conditional Probability?

    The simplest way in which to defineThe simplest way in which to defineconditional probability is asconditional probability is asprobability with conditions.probability with conditions.

    For example,For example, what is thewhat is theprobability that event Eprobability that event Egivengiveneventevent

    F occurs?F occurs?

  • 7/30/2019 probabilitati_conditionate

    4/41

    Notation forNotation for

    Conditional ProbabilityConditional Probability

    P(E|F) denotes the probability thatP(E|F) denotes the probability thatevent E occurs given event F occursevent E occurs given event F occurs

  • 7/30/2019 probabilitati_conditionate

    5/41

    CalculatingCalculatingConditional ProbabilityConditional Probability

    The key to determining P(E|F) isThe key to determining P(E|F) isknowing that we are interested in theknowing that we are interested in theprobability that event E occurs,probability that event E occurs,

    knowing that event F occurs.knowing that event F occurs. Since we know that event F occurs,Since we know that event F occurs,

    we treat event F as the sample spacewe treat event F as the sample spaceand use it to determine theand use it to determine the

    denominator for the calculation.denominator for the calculation.

  • 7/30/2019 probabilitati_conditionate

    6/41

    CalculatingCalculatingConditional ProbabilityConditional Probability

    The key to determining P(E|F) isThe key to determining P(E|F) isknowing that we are interested in theknowing that we are interested in theprobability that event E occurs,probability that event E occurs,

    knowing that event F occurs.knowing that event F occurs. Since we want event E to occur whileSince we want event E to occur while

    event F occurs, we use the event Eevent F occurs, we use the event E F to determine the numerator for theF to determine the numerator for the

    calculation.calculation.

  • 7/30/2019 probabilitati_conditionate

    7/41

    CalculatingCalculatingConditional ProbabilityConditional Probability

    P(E|F) is the quotient of the number ofP(E|F) is the quotient of the number ofsimple events in the event Esimple events in the event E F andF andthe number of simple events in thethe number of simple events in the

    event F.event F.

  • 7/30/2019 probabilitati_conditionate

    8/41

    CalculatingCalculatingConditional ProbabilityConditional Probability

    LettingLetting n(En(E

    FF) be the number of) be the number ofsimple events in the event Esimple events in the event E F andF andlettingletting n(Fn(F) be the number of simple) be the number of simple

    events in the event F,events in the event F,P(E|F) =P(E|F) = n(En(E FF) /) / n(Fn(F))

  • 7/30/2019 probabilitati_conditionate

    9/41

    CalculatingCalculatingConditional ProbabilityConditional Probability

    GivenGiven P(E|F) =P(E|F) = n(En(E

    FF) /) / n(Fn(F) and) anddividing the numerator and thedividing the numerator and thedenominator bydenominator by n(Sn(S), the number of), the number of

    simple events in the sample space, S,simple events in the sample space, S,for the experiment,for the experiment,

    The numerator becomesThe numerator becomesn(n(EE FF) /) / n(Sn(S))

    butbut n(n(EE

    FF) /) / n(Sn(S) = P() = P(EE

    FF))

  • 7/30/2019 probabilitati_conditionate

    10/41

    CalculatingCalculatingConditional ProbabilityConditional Probability

    GivenGiven P(E|F) =P(E|F) = n(En(E

    FF) /) / n(Fn(F) and) anddividing the numerator and thedividing the numerator and thedenominator bydenominator by n(Sn(S), the number of), the number of

    simple events in the sample space, S,simple events in the sample space, S,for the experiment,for the experiment,

    The denominator becomesThe denominator becomesn(n(FF) /) / n(Sn(S))

    butbut

    n(n(

    FF) /) /

    n(Sn(S

    ) = P() = P(

    FF))

  • 7/30/2019 probabilitati_conditionate

    11/41

    CalculatingCalculatingConditional ProbabilityConditional Probability

    GivenGiven P(E|F) =P(E|F) = n(En(E

    FF) /) / n(Fn(F) and) anddividing the numerator and thedividing the numerator and thedenominator bydenominator by n(Sn(S), the number of), the number of

    simple events in the sample space forsimple events in the sample space forthe experiment,the experiment,

    P(E|F) can be reP(E|F) can be re--expressed asexpressed asP(E|F) =P(E|F) = P(EP(E FF) / P(F)) / P(F)

  • 7/30/2019 probabilitati_conditionate

    12/41

    Multiplication RuleMultiplication Rule

    GivenGiven P(E|F) =P(E|F) = P(EP(E

    FF) / P(F),) / P(F),multiplying both sides by P(F), wemultiplying both sides by P(F), weobtain the multiplication ruleobtain the multiplication rule

    P(EP(E FF) =) = P(E|F)P(E|F) P(F)P(F)

  • 7/30/2019 probabilitati_conditionate

    13/41

    ExampleExample

    A card is drawn from a fair pokerA card is drawn from a fair pokerdeck. What is the probability thatdeck. What is the probability thatthe card is a face card given thethe card is a face card given the

    card is a noncard is a non--numbered card?numbered card?

  • 7/30/2019 probabilitati_conditionate

    14/41

    ExampleExample

    A card is drawn from a fair pokerA card is drawn from a fair pokerdeck. What is the probability thatdeck. What is the probability thatthe card is a face card given the cardthe card is a face card given the card

    is a nonis a non--numbered card?numbered card? Since we know that the card is aSince we know that the card is anonnon--numbered card, we need onlynumbered card, we need onlyconsider the Ace, Jack, Queen, andconsider the Ace, Jack, Queen, andKing for each suit; there are 16King for each suit; there are 16

    nonnon--numbered cards.numbered cards.

  • 7/30/2019 probabilitati_conditionate

    15/41

    ExampleExample

    A card is drawn from a fair pokerA card is drawn from a fair pokerdeck. What is the probability thatdeck. What is the probability thatthe card is a face card given the cardthe card is a face card given the card

    is a nonis a non--numbered card?numbered card? Of the nonOf the non--numbered cards, thenumbered cards, the

    Jack, Queen, and King are the faceJack, Queen, and King are the facecards; there are 12 face cardscards; there are 12 face cards

    among the 16 nonamong the 16 non

    --numbered cards.numbered cards.

  • 7/30/2019 probabilitati_conditionate

    16/41

    ExampleExample

    A card is drawn from a fair poker deck.A card is drawn from a fair poker deck.What is the probability that the card isWhat is the probability that the card isa face card given the card is a nona face card given the card is a non--

    numbered card?numbered card?P(face card| nonP(face card| non--numbered card) = 12/16numbered card) = 12/16

    P(face card| non-numbered card) = 3/4= 3/4

  • 7/30/2019 probabilitati_conditionate

    17/41

    ExampleExample

    A card is drawn from a fair poker deck.A card is drawn from a fair poker deck.What is the probability that the card isWhat is the probability that the card isred given the card is a seven?red given the card is a seven?

    P(red|sevenP(red|seven) =) = P(redP(red seven)/seven)/P(sevenP(seven))P(seven|red) = [2/52]/[4/52]= [2/52]/[4/52]

    P(seven|red) = 2/4= 2/4P(seven|red) = 1/2= 1/2

  • 7/30/2019 probabilitati_conditionate

    18/41

    ExampleExample

    A card is drawn from a fair poker deck.A card is drawn from a fair poker deck.What is the probability that the card isWhat is the probability that the card isred given the card is a seven?red given the card is a seven?

    P(red|sevenP(red|seven) = n(red seven)/) = n(red seven)/n(sevenn(seven))P(seven|red) = 2/4= 2/4

    P(seven|red) = 1/2= 1/2

  • 7/30/2019 probabilitati_conditionate

    19/41

    ExampleExample

    A card is drawn from a fair poker deck.A card is drawn from a fair poker deck.What is the probability that the card isWhat is the probability that the card isa seven given the card is red?a seven given the card is red?

    P(seven|red) =P(seven|red) = P(redP(red seven)/seven)/P(redP(red))P(seven|red) = (2/52)(26/52)= (2/52)(26/52)

    P(seven|red) = 2/26= 2/26= 1/13= 1/13

  • 7/30/2019 probabilitati_conditionate

    20/41

    ExampleExample

    A card is drawn from a fair poker deck.A card is drawn from a fair poker deck.What is the probability that the card isWhat is the probability that the card isa seven given the card is red?a seven given the card is red?

    P(seven|red) = n(red seven)/P(seven|red) = n(red seven)/n(redn(red))P(seven|red) = 2/26= 2/26

    P(seven|red) = 1/13= 1/13

  • 7/30/2019 probabilitati_conditionate

    21/41

    Independent EventsIndependent Events

    Two events E and F are independentTwo events E and F are independent If the occurrence of event EIf the occurrence of event Edoes not affect the probabilitydoes not affect the probabilitythat event F occursthat event F occurs

    If the occurrence that event FIf the occurrence that event F

    does not affect the probabilitydoes not affect the probabilitythat event E occursthat event E occurs

  • 7/30/2019 probabilitati_conditionate

    22/41

    Independent EventsIndependent Events

    Two events E and F are independentTwo events E and F are independentif and only ifif and only if

    P(E|F) = P(E)P(E|F) = P(E)

    oror

    P(F|E) = P(F)P(F|E) = P(F)

  • 7/30/2019 probabilitati_conditionate

    23/41

    Dependent EventsDependent Events

    Two events E and F are dependentTwo events E and F are dependentifif The occurrence of event EThe occurrence of event E

    affects the probability that eventaffects the probability that eventF occursF occurs

    The occurrence of event FThe occurrence of event Faffects the probability that eventaffects the probability that eventE occursE occurs

  • 7/30/2019 probabilitati_conditionate

    24/41

    ExampleExample Determine if the events E and F areDetermine if the events E and F are

    dependent or independent. A card isdependent or independent. A card isdrawn from a fair poker deck.drawn from a fair poker deck.

    Event E: the card is a face cardEvent E: the card is a face card Event F: the card is a lettered cardEvent F: the card is a lettered card

  • 7/30/2019 probabilitati_conditionate

    25/41

    ExampleExample To determine if the events E and F areTo determine if the events E and F are

    dependent or independent, we need todependent or independent, we need todetermine the following:determine the following:

    P(face card)P(face card) P(lettered card)P(lettered card)

    P(face card|lettered card)P(face card|lettered card)

    P(lettered card|face card)P(lettered card|face card)

  • 7/30/2019 probabilitati_conditionate

    26/41

    ExampleExample Event E: the card is a face cardEvent E: the card is a face card

    Event F: the card is a lettered cardEvent F: the card is a lettered card

    P(face card) = 12/52 = 3/13P(face card) = 12/52 = 3/13 P(lettered card) = 16/52 = 4/13P(lettered card) = 16/52 = 4/13 P(face card|lettered card) = 12/16P(face card|lettered card) = 12/16P(face card|lettered card) = 3/4= 3/4

    P(lettered card|face card) = 12/12P(lettered card|face card) = 12/12

    P(lettered card|face card) = 1= 1

  • 7/30/2019 probabilitati_conditionate

    27/41

    ExampleExample P(face card) is not equal toP(face card) is not equal to

    P(face card|lettered card)P(face card|lettered card) P(lettered card) is not equal toP(lettered card) is not equal to

    P(lettered card|face card)P(lettered card|face card) So, the eventSo, the event the card is a face cardthe card is a face cardand the eventand the event the card is a letteredthe card is a letteredcardcardare not independent.are not independent. These events are dependent.These events are dependent.

  • 7/30/2019 probabilitati_conditionate

    28/41

    ExampleExample

    A card is drawn from a fair pokerA card is drawn from a fair pokerdeck. What is the probability that thedeck. What is the probability that thecard is even numbered given the card iscard is even numbered given the card is

    red?red?

  • 7/30/2019 probabilitati_conditionate

    29/41

    ExampleExample

    A card is drawn from a fair pokerA card is drawn from a fair pokerdeck. What is the probability that thedeck. What is the probability that thecard is even numbered given the card iscard is even numbered given the card is

    red?red?P(even numbered|red)P(even numbered|red)

    = n(even numbered red cards)/n(red cards)= n(even numbered red cards)/n(red cards)= 10/26= 10/26= 5/13= 5/13

  • 7/30/2019 probabilitati_conditionate

    30/41

    ExampleExample Two cards are drawn withoutTwo cards are drawn without

    replacement from a fair poker deck.replacement from a fair poker deck.What is the probability that the firstWhat is the probability that the first

    card is red and the second card iscard is red and the second card isblack?black?

  • 7/30/2019 probabilitati_conditionate

    31/41

    ExampleExample Two cards are drawn withoutTwo cards are drawn without

    replacement from a fair poker deck.replacement from a fair poker deck.What is the probability that the firstWhat is the probability that the first

    card is red and the second card iscard is red and the second card isblack?black?

    P(firstP(first red and second black)red and second black)

    == P(firstP(first red)red) P(secondP(second black|firstblack|first red)red)= (1/2)= (1/2) (26/51)(26/51)

    = 13/51= 13/51

  • 7/30/2019 probabilitati_conditionate

    32/41

    ExampleExample Two cards are drawn withoutTwo cards are drawn without

    replacement from a fair poker deck.replacement from a fair poker deck.What is the probability that the firstWhat is the probability that the firstcard is red and the second card iscard is red and the second card isblack?black?

    P(firstP(first red and second black)red and second black)

    == P(firstP(first red)red) P(secondP(second black|firstblack|first red)red)= (1/2)= (1/2) (26/51)(26/51)

    = 13/51= 13/51NoteNote: We used the Multiplication Rule: We used the Multiplication Rule

  • 7/30/2019 probabilitati_conditionate

    33/41

    Drawing Cards One at a TimeDrawing Cards One at a Time To determine the probability of anTo determine the probability of an

    event that is determined by drawingevent that is determined by drawingthree cards in a row withoutthree cards in a row withoutreplacement, we take the product ofreplacement, we take the product ofthe probabilities of the three events,the probabilities of the three events,keeping in mind that drawing the firstkeeping in mind that drawing the first

    card affects drawing the second cardcard affects drawing the second cardand drawing the first and second cardsand drawing the first and second cards

    affect drawing the third cardaffect drawing the third card

  • 7/30/2019 probabilitati_conditionate

    34/41

    P(EP(E FF G)G)

    P(EP(E

    FF

    G) =G) = P(EP(E

    F)F)P(G|EP(G|E

    F)F)P(E F G) = P(E)= P(E) P(F|EP(F|E)) P(G|EP(G|E F)F)

  • 7/30/2019 probabilitati_conditionate

    35/41

    P(EP(E FF G)G)

    P(EP(E

    FF

    G) =G) = P(EP(E

    F)F)P(G|EP(G|E

    F)F)P(E F G) == P(E)P(E) P(F|EP(F|E)) P(G|EP(G|E F)F)

    NoteNote: When we draw the first card, all: When we draw the first card, allthe cards in the fair deck arethe cards in the fair deck are

    available.available.

  • 7/30/2019 probabilitati_conditionate

    36/41

    P(EP(E FF G)G)

    P(EP(E

    FF

    G) =G) = P(EP(E

    F)F)P(G|EP(G|E

    F)F)P(E F G) = P(E)= P(E) P(F|EP(F|E)) P(G|EP(G|E F)F)

    NoteNote: When we draw the second card,: When we draw the second card,the first card has already beenthe first card has already been

    removed from the fair deck: there isremoved from the fair deck: there isone less card in the deck and we knowone less card in the deck and we know

    what type of card has been removed.what type of card has been removed.

  • 7/30/2019 probabilitati_conditionate

    37/41

    P(EP(E FF G)G)P(EP(E FF G) =G) = P(EP(E F)F) P(G|EP(G|E F)F)P(E F G) = P(E)= P(E) P(F|EP(F|E)) P(G|EP(G|E F)F)

    NoteNote: When we draw the third card,: When we draw the third card,the first and second cards havethe first and second cards have

    already been removed from the fairalready been removed from the fairdeck: there is two less cards in thedeck: there is two less cards in thedeck and we know what type of cardsdeck and we know what type of cards

    have been removed.have been removed.

  • 7/30/2019 probabilitati_conditionate

    38/41

    ExampleExample Three cards are drawn withoutThree cards are drawn without

    replacement from a fair poker deck.replacement from a fair poker deck.What is the probability that the firstWhat is the probability that the firstcard is a King, the second card is acard is a King, the second card is afive, and the third card is a facefive, and the third card is a facecard.card.

  • 7/30/2019 probabilitati_conditionate

    39/41

    ExampleExample Three cards are drawn withoutThree cards are drawn without

    replacement from a fair poker deck.replacement from a fair poker deck.What is the probability that the firstWhat is the probability that the firstcard is a King, the second card is acard is a King, the second card is a

    five, and the third card is a facefive, and the third card is a facecard.card.

    P(K, five, face card)P(K, five, face card)= (4/52)= (4/52) (4/51)(4/51) (11/50)(11/50)= (1/13)= (1/13) (2/51)(2/51) (11/25)(11/25)= 22/16575= 22/16575

  • 7/30/2019 probabilitati_conditionate

    40/41

    ExampleExampleP(K, five, face card)P(K, five, face card)

    = (4/= (4/5252))(4/(4/5151))

    (11/(11/5050))= (1/13)= (1/13) (2/51)(2/51) (11/25)(11/25)

    = 22/16575= 22/16575

    Notice that the denominator decreases forNotice that the denominator decreases for

    each fraction: the number of cards ineach fraction: the number of cards inthe deck decreases by one each time athe deck decreases by one each time acard is drawn.card is drawn.

  • 7/30/2019 probabilitati_conditionate

    41/41

    ExampleExampleP(K, five, face card)P(K, five, face card)

    = (4/52)= (4/52)(4/51)(4/51)

    (11/50)(11/50)= (1/13)= (1/13) (2/51)(2/51) ((1111/25)/25)

    = 22/16575= 22/16575

    Notice that the numerator for the lastNotice that the numerator for the last

    fraction is eleven rather than twelve:fraction is eleven rather than twelve:one of the twelve face cards has alreadyone of the twelve face cards has alreadybeen removed from the deck.been removed from the deck.