review and more examples Sample space: S = set of all potential - - PowerPoint PPT Presentation

review and more examples
SMART_READER_LITE
LIVE PREVIEW

review and more examples Sample space: S = set of all potential - - PowerPoint PPT Presentation

review and more examples Sample space: S = set of all potential outcomes of experiment E.g., flip two coins: S = {(H,H), (H,T), (T,H), (T,T)} Events: E S is an arbitrary subset of the sample space 1 head in 2 flips: E = {(H,H), (H,T),


slide-1
SLIDE 1

Sample space: S = set of all potential outcomes of experiment E.g., flip two coins: S = {(H,H), (H,T), (T,H), (T,T)} Events: E ⊆ S is an arbitrary subset of the sample space ≥1 head in 2 flips: E = {(H,H), (H,T), (T,H)} S = Probability: A function from subsets of S to real numbers – Pr: 2S → [0,1] Probability Axioms: Axiom 1 (Non-negativity): 0 ≤ Pr(E) Axiom 2 (Normalization): Pr(S) = 1 Axiom 3 (Additivity): EF = ∅ ⇒ Pr(E ∪ F) = Pr(E) + Pr(F)

review and more examples

1

slide-2
SLIDE 2

equally likely outcomes

Simplest case: sample spaces with equally likely outcomes. Coin flips: S = {Heads, Tails} Flipping two coins: S = {(H,H),(H,T),(T,H),(T,T)} Roll of 6-sided die: S = {1, 2, 3, 4, 5, 6} Pr(each outcome) = In that case,

uniform distribution

slide-3
SLIDE 3

poker hands

3

slide-4
SLIDE 4

any straight in poker

Consider 5 card poker hands. A “straight” is 5 consecutive rank cards of any suit What is Pr(straight) ? |S| = |E| = Pr(straight) = I

all 5 card hands

Pr w

an

F

i set

  • foutcomes that

are straight

PNE

HI

slide-5
SLIDE 5

When you

submit

your

homework

  • n

gradescope

you

must

assign

page

numbers

to

each

problem

slide-6
SLIDE 6

card flipping

slide-7
SLIDE 7

card flipping

52 card deck. Cards flipped one at a time. After first ace (of any suit) appears, consider next card Pr(next card = ace of spades) < Pr(next card = 2 of clubs) ?

JL

all possible permutationsof 52 cards

Prlw

L

52

F

Ey

a

Ae AE

Bye

3

2

Ea

A LE

52

PRE

PRIED

AafAIC

E

PRIED

HO AE

Eso

AOI AE

Erez

Fiel

E

I

it

i

slide-8
SLIDE 8

card flipping

52 card deck. Cards flipped one at a time. After first ace (of any suit) appears, consider next card Pr(next card = ace of spades) < Pr(next card = 2 of clubs) ? Case 1: Take Ace of Spades out of deck Shuffle remaining 51 cards, add ace of spades after first ace |S| = 52! (all cards shuffled) |E| = 51! (only 1 place ace of spades can be added) Case 2: Do the same thing with the 2 of clubs |S| and |E| have same size So, Pr(next = Ace of spades) = Pr(next = 2 of clubs) = 1/52

slide-9
SLIDE 9

Ace of Spades: 2/6 2 of Clubs: 2/6

Theory is the same for a 3-card deck; Pr = 2!/3! = 1/3

Card images from http://www.eludication.org/playingcards.html

8

slide-10
SLIDE 10

birthdays

slide-11
SLIDE 11

birthdays What is the probability that, of n people, none share the same birthday?

I

I setq

possiblebirthdays

for each

  • f

n people

154

365

E

no

2 people

share

sane bday

A Aa

An

Praz

A

An 111

365 Macht

Matto

Machzor Nach19

slide-12
SLIDE 12

birthdays What is the probability that, of n people, none share the same birthday? |S| = (365)n |E| = (365)(364)(363)!(365-n+1) Pr(no matching birthdays) = |E|/|S| = (365)(364)…(365-n+1)/(365)n Some values of n… n = 23: Pr(no matching birthdays) < 0.5 n = 77: Pr(no matching birthdays) < 1/5000 n = 100: Pr(no matching birthdays) < 1/3,000,000 n = 150: Pr(…) < 1/3,000,000,000,000,000

20 40 60 80 100 0.0 0.2 0.4 0.6 0.8 1.0 n Probability

slide-13
SLIDE 13

birthdays n = 366? Pr = 0 Above formula gives this, since (365)(364)…(365-n+1)/(365)n == 0 when n = 366 (or greater). Even easier to see via pigeon hole principle.

12

as

slide-14
SLIDE 14

birthdays What is the probability that, of n people, none share the same birthday as you?

me

March 19

lol I

365

Pronopensonwlfghdgia

slide-15
SLIDE 15

birthdays What is the probability that, of n people, none share the same birthday as you? |S| = (365)n |E| = (364)n Pr(no birthdays matches yours) = |E|/|S| = (364)n/(365)n Some values of n… n = 23: Pr(no matching birthdays) ≈ 0.9388 n = 77: Pr(no matching birthdays) ≈ 0.8096 n = 253: Pr(no matching birthdays) ≈ 0.4995

r

slide-16
SLIDE 16

Other problems

Probability that a random 7 digit numbers (decimal) has at least one repeating digit? (allowed to have leading zeros). 0,1 19

3 sore digit

7

thatappears twice

ch

10

  • r more

E atleast

  • verepeeting digit

PrcE

lofqfhwenovpeehgdigiti.co 10.9 8.7 4

1 prfng.g.fm

107

slide-17
SLIDE 17

Other problems

Probability that a 3 character password has at least one digit? Each character is either a digit (0-9) or a lower case letter (a-z). 10 36 36 + 36 10 36 + 36 36 10

  • 363
  • vercoming
slide-18
SLIDE 18

8 by 8 chessboard

  • Probability that a randomly placed pawn, bishop

and knight share no row or column?

slide-19
SLIDE 19

Rooks on Chessboard Probability that two randomly placed identical rooks don’t share a row or column?

slide-20
SLIDE 20

20