Docsity

Probability I - Discrete Structures - Lecture Notes | CSCI 243, Study notes of Discrete Structures and Graph Theory

Partial preview of the text

Download Probability I - Discrete Structures - Lecture Notes | CSCI 243 and more Study notes Discrete Structures and Graph Theory in PDF only on Docsity!

CSci 243

Discrete Structures

Lecture 26

Probability I

Outline

  • Motivation
  • Basic Concepts and Terminology
  • Application: Gambling
  • Probability of Combinations of Events
  • Preview: Probability Theory

Basic Concepts and Terminology

  • Experiment : a procedure with an outcome
    • Example: Flip 2 coins
  • Sample space : S, set of all possible outcomes
    • { heads/heads, heads/tails, tails/heads, tails/tails }
  • Event : E, subset of the sample space
    • two heads = { heads/heads }
  • Probability : the odds of event E: S

E p ( E ) =

Examples

  • What is the probability of selecting a red ball from a bag with 3 red balls and 2 blue balls? - How many total possible outcomes? - How many outcomes of interest? - p(red ball) =?
  • What is the probability of getting two heads and a tail out of three coin tosses? - How many total possible outcomes? - How many outcomes of interest? - p(two heads and a tail) =?

Application: Gambling (Primer)

  • Standard deck
    • 52 cards: each of a kind, suit, and color
    • 13 “kinds”: ace, 2-10, jack, queen, king
    • 4 suits: clubs, hearts, spades, diamonds
    • 2 colors: spades & clubs are black, hearts & diamonds are red

Application: Gambling (Primer)

  • 5 card draw (“poker”)
    • 5 cards dealt randomly to a player
    • Ace high or low
    • Interesting hands: 1 pair, 2 pair, 3 of a kind, 4 of a kind, full house (2 pair and 3 pair), straight, flush, straight flush
    • Royal flush:
  • http://www.exclamation-poker.com/guide.htm

Application: Gambling

  • What is the probability of 2 pair?
  • First choose the 2 kinds (note: no order)
    • 13 possible kinds, and we choose 2: C(13,2) = 78
  • Next choose the cards for each kind
    • 4 cards in the first kind, choose 2: C(4,2) = 6
    • 4 cards in the second kind, choose 2: C(4,2) = 6
  • Number of ways to get remaining card
    • 44 cards left, and we choose 1: C(44,1) = 44
  • p(2 pair) = 78·6·6·44/2,598,960 ˜.

Quick Check

  • What is the probability that a card taken from a deck is a black 2?
  • What is the probability of a full house (three of one kind, and two of another)? (Note: Order!)

Example

  • What is the probability that a poker hand contains at least one ace?
  • Could compute p(1 ace) + p(2 aces) + …
  • Or compute 1 – p(no aces)

• 1 – C(48,5)/C(52,5) ˜.

Example

  • Binary trees: With a 50% chance of making a left child, and a 50% chance of making a right child, what is the chance that you make either?
  • p(left U right) = p(left)+p(right) – p(left I right)
  • Left and right child generation is independent
  • p(left U right) = ½ + ½ – (½)(½) = ¾

Quick Check

  • What are the odds that two people in this room share a birthday?

Preview: Probability Theory

  • We can build a theory of probabilities
  • Can answer:
    • What are the odds of getting three heads in a row if the first flip is a head?
    • What is the probability of getting exactly 3 heads in 10 flips?
  • Basic conditions for finite outcomes:
    • 0 = p(s) = 1, where s is an outcome in S

• ∑ s ∈ S p^ (^ s )^ =^1