Sets. Review of basic probability. Tuples. E = {all even integers} S = {x E : x is a multiple of 3} CSE 101. I = [0, 1] = {x : 0 x 1}

Size: px
Start display at page:

Download "Sets. Review of basic probability. Tuples. E = {all even integers} S = {x E : x is a multiple of 3} CSE 101. I = [0, 1] = {x : 0 x 1}"

Transcription

1 Sets A = {a, b, c,..., z} A = 26 Review of basic probability = {0, 1} = 2 E = {all even integers} E = CSE 1 S = {x E : x is a multiple of 3} I = [0, 1] = {x : 0 x 1} In a set, the order of elements doesn t matter: {0, 1, 2} = {2, 0, 1} and there are no duplicates. Tuples Let C = {H, T }. All pairs of elements from C: {(H, H), (H, T ), (T, H), (T, T )} = C C = C 2 All triples of elements of C: {(H, H, H), (H, H, T ), (H, T, H),...} = C C C = C 3 All sequences of elements from C: denoted C = C C C. How many sequences of length are there? C = C = 2. In a sequence, the order of elements matters: Let A = {a, b, c,..., z}. How many sequences of length 2? 26 2 How many sequences of length? 26 How many sequences of length n? 26 n An alien language has an alphabet of size. Every sequence of 5 of these characters is a valid word. How many words are there in this language? = = (H, T ) (T, H).

2 Union and intersection A A = {any element in A or in or in both} A = {any element in A and in } M = {2, 3, 5, 7, 11} and N = {1, 3, 5, 7, 9} M N = {1, 2, 3, 5, 7, 9, 11} M N = {3, 5, 7} S = {all even integers} and T = {all odd integers} S T = {all integers} S T = Permutations How many ways to order the three letters A,, C? AC, AC, AC, CA, CA, CA 3 choices for the first, 2 choices for the second, 1 choice for the third = 6. Call this 3! How many ways to order A,, C, D, E? = 5! = 120 How many ways to place 6 men in a line-up? = 6! = 720 How many possible outcomes of shuffling a dec of cards? 52! General rule: The number of ways to order n distinct items is: n! = n(n 1)(n 2) 1. Combinations An ice-cream parlor has flavors {chocolate, vanilla, strawberry, pecan}. You are allowed to pic two of them. How many options do you have? CV, CS, CP, VS, VP, SP In general, the number of ways to pic items out of n is: ( ) n n! n(n 1) (n + 1) = = (n )!!! For instance, ( ) 4 2 = 4 3 2! = 6. How many ways to pic three ice-cream flavors? ( ) 4 = 4 3 Pic any 4 of your favorite 0 songs. How many ways to do this? ( ) = Probability spaces How to interpret a statement lie: The chance of getting a flush in a five-card poer hand is about 0.20%. (Flush = five of the same suit.) The underlying probability space has two components: 1. The sample space (the space of outcomes). In the example, Ω = {all possible five-card hands}. 2. The probabilities of outcomes. In the example, all hands are equally liely: probability 1/ Ω. Note: ω Ω Pr(ω) = 1. Event of interest: the set of outcomes A = {ω : ω is a flush} Ω. Pr(A) = ω A Pr(ω) = A Ω Ω A

3 Examples Roll three dice. What is the chance that their sum is 3? Sample space Ω = {(1, 1, 1), (1, 1, 2), (1, 1, 3),..., (6, 6, 6)} Roll a die. What is the chance of getting a number > 3? Sample space Ω = {1, 2, 3, 4, 5, 6}. Probabilities of outcomes: Pr(ω) = 1 6. Event of interest: A = {4, 5, 6} Pr(A) = Pr(4) + Pr(5) + Pr(6) = 1 2. = Ω o Ω o Ω o where Ω o = {1, 2, 3, 4, 5, 6}. Probabilities of outcomes: Pr(ω) = 1 Ω = Event of interest: A = {(1, 1, 1)}. Pr(A) = Roll n dice. Then Ω = Ω o Ω o = Ω n o, where Ω o = {1, 2, 3, 4, 5, 6}. What is Ω? 6 n. Probability of an outcome: Pr(ω) = 1 6 n. Socs in a drawer. A drawer has three blue socs and three red socs. You put your hand in and pull out two socs at random. What is the probability that they match? Thin of grabbing one soc first, then another. Ω = {(, ), (, R), (R, ), (R, R)} = {, R} 2. Probabilities: Pr((, )) = = 1 5 Pr((, R)) = = 3 Pr((R, )) = = 3 Pr((R, R)) = = 1 5 Event of interest: A = {(, ), (R, R)}. Pr(A) = 2 5. Socs in a drawer, cont d. This time the drawer has three blue socs and two red socs. You put your hand in and pull out two socs at random. What is the probability that they match? Sample sample space, Ω = {(, ), (, R), (R, ), (R, R)} = {, R} 2. Different probabilities: Pr((, )) = = 3 Pr((, R)) = = 3 Pr((R, )) = = 3 Pr((R, R)) = = 1 Event of interest: A = {(, ), (R, R)}. Pr(A) = 2 5.

4 Toss a fair coin times. What is the chance none are heads? Shuffle a pac of cards. Sample space Ω = {all possible orderings of 52 cards}. What is Ω? 52! = Sample space Ω = {H, T }. It includes, for instance, (H, T, H, T, H, T, H, T, H, T ). What is Ω? 2 = 24. For any sequence of coin tosses ω Ω, we have Pr(ω) = Event of interest: A = {(T, T, T, T, T, T, T, T, T, T )}. Pr(A) = What is the probability of exactly one head? Event of interest: A = {ω Ω : ω has exactly one H}. What is A?. Each sequence in A can be specified by the location of the one H, and there are choices for this. What is Pr(A)? 24. Toss a fair coin times. What is the chance of exactly two heads? Again, sample space Ω = {H, T }, with Ω = 2 = 24. For any sequence of coin tosses ω Ω, we have Pr(ω) = Event of interest: A = {ω Ω : ω has exactly two H s}. What is A? ( ) 2 = 9 2 = 45. Each sequence in A can be specified by the locations of the two H s and there are ( ) 2 choices for these locations. What is Pr(A)? What is the probability of exactly heads? Event of interest: A = {ω Ω : ω has exactly H s}. What is A? ( ). What is Pr(A)? ( ) /24. irthday paradox. A room contains people. What is the chance that they all have different birthdays? Number the people 1, 2,...,. Number the days of the year 1, 2,..., 5. Let ω = (ω 1,..., ω ), where ω i {1, 2,..., 5} is the birthday of person i. Thus Ω = {1, 2,..., 5}. What is Ω? 5. Event of interest: A = {(ω 1,..., ω ) : all ω i different}. What is A? (5 + 1). Therefore, Pr(A) = 5 4 (5 + 1) 5 = For = 23, this is less than 1/2. In other words, in a group of 23 random people, chances are some pair of them have a common birthday!

5 People s probability judgements Experiment by Kahneman-Tversy. Subjects were told: Linda is 31, single, outspoen, and very bright. She majored in philosophy in college. As a student, she was deeply concerned with racial discrimination and other social issues, and participated in anti-nuclear demonstrations. They were then ased to ran three possibilities: (a) Linda is active in the feminist movement. (b) Linda is a ban teller. (c) Linda is a ban teller and is active in the feminist movement. Over 85% respondents chose (a) > (c) > (b). ut: Pr(ban teller, feminist) Pr(ban teller). F In a city, 60% of people have a car, 20% of people have a bie, and % of people have a motorcycle. Anyone without at least one of these wals to wor. What is the minimum fraction of people who wal to wor? Let Ω = {people in the town}. Let C = {has car}, = {has bie}, M = {has motorcyle}, W = {wals}. General picture: C M Pr(W ) 1 Pr(C M) Pr(C M) Pr(C) + Pr() + Pr(M) and thus Pr(W ) 0.1. = = 0.9 M C Complements and unions The complement of an event. Let Ω be a sample space and E Ω an event. Write E c for the event that E does not occur, that is, E c = Ω \ E. The union bound. For any events E 1,..., E : Pr(E c ) = 1 Pr(E). Pr(E 1 E ) Pr(E 1 ) + + Pr(E ). This inequality is exact when the events are disjoint. Coupon-collector problem Each cereal box has one of action figures. How many boxes do you need to buy so that you are liely to get all figures? Say we buy n boxes. Let A i be the event that the ith action figure is not obtained. Pr(A i ) = Pr(not in 1st box) Pr(not in 2nd box) Pr(not in nth box) ( = 1 1 ) n e n/ y union bound, the probability of missing some figure is Pr(A 1 A ) Pr(A 1 ) + + Pr(A ) e n/. Setting n ln 2 maes this 1/2. Therefore: enough to buy O( log ) cereal boxes.

6 Independence Two events A, are independent if the probability of occurring is the same whether or not A occurs. Example: toss two coins. A = {first coin is heads} = {second coin is heads} A Not independent Formally, we say A, are independent if Pr(A ) = Pr(A)Pr(). Independent or not? 1. You have two children. A = {first child is a boy}, = {second child is a girl}. Independent. A Possibly independent 2. You throw two dice. A = {first is a six}, = {sum > }. Not independent. 3. You get dealt two cards at random from a dec of 52. A = {first is a heart}, = {second is a club}. Not independent. A Not independent Random variables Roll a die. Define X = { 1 if die is 3 0 otherwise Here the sample space is Ω = {1, 2, 3, 4, 5, 6}. Roll n dice. ω = 1, 2 X = 0 ω = 3, 4, 5, 6 X = 1 X = # of 6 s Y = # of 1 s before the first 6 oth X and Y are defined on the same sample space, Ω = {1, 2, 3, 4, 5, 6} n. For instance, ω = (1, 1, 1,..., 1, 6) X = 1, Y = n 1. The distribution of a random variable Roll a die. Define X = 1 if die is 3, otherwise X = 0. X taes values in {0, 1} and has distribution: Pr(X = 0) = 1 3 and Pr(X = 1) = 2 3. Roll n dice. Define X = number of 6 s. X taes values in {0, 1, 2,..., n}. The distribution of X is: Pr(X = ) = #(sequences with 6 s) Pr(one such sequence) ( ) ( ) ( ) n n 1 5 = 6 6 In general, a random variable (r.v.) is a defined on a probability space. It is a mapping from Ω to R. We ll use capital letters for r.v. s.

7 Expected value, or mean The expected value of a random variable X is E(X ) = x Roll a die. Let X be the number observed. x Pr(X = x). E(X ) = = = 3.5 (average) 6 iased coin. A coin has heads probability p. Let X be 1 if heads, 0 if tails. E(X ) = 1 p + 0 (1 p) = p. Toss a coin with bias p repeatedly, until it comes up heads. Let X be the number of tosses. Pascal s wager Pascal: I thin there is some chance (p > 0) that God exists. Therefore I should act as if he exists. Let X = my level of suffering. Suppose I behave as if God exists (that is, I behave myself). Then X is some significant but finite amount, lie 0 or 00. Suppose I behave as if God doesn t exists (I do whatever I want to). If indeed God doesn t exist: X = 0. ut if God exists: X = (hell). Therefore, E(X ) = 0 (1 p) + p =. The first option is much better! E(X ) = 1 p. Linearity of expectation Linearity: examples Roll 2 dice and let Z denote the sum. What is E(Z)? If you double a set of numbers, how is the average affected? It is also doubled. If you increase a set of numbers by 1, how much does the average change? It also increases by 1. Rule: E(aX + b) = ae(x ) + b for any random variable X and any constants a, b. ut here s a more surprising (and very powerful) property: E(X + Y ) = E(X ) + E(Y ) for any two random variables X, Y. Liewise: E(X + Y + Z) = E(X ) + E(Y ) + E(Z), etc. Method 1 Distribution of Z: z Pr(Z = z) Now use formula for expected value: E(Z) = = 7. Method 2 Let X 1 be the first die and X 2 the second die. Each of them is a single die and thus (as we saw earlier) has expected value 3.5. Since Z = X 1 + X 2, E(Z) = E(X 1 ) + E(X 2 ) = =

8 Toss n coins of bias p, and let X be the number of heads. What is E(X )? Let the individual coins be X 1,..., X n. Each has value 0 or 1 and has expected value p. Since X = X 1 + X X n, E(X ) = E(X 1 ) + + E(X n ) = np. Roll a die n times, and let X be the number of 6 s. What is E(X )? Let X 1 be 1 if the first roll is a 6, and 0 otherwise. Liewise, define X 2, X 3,..., X n. Since X = X X n, we have E(X 1 ) = 1 6. E(X ) = E(X 1 ) + + E(X n ) = n 6. Coupon collector, again Each cereal box has one of action figures. What is the expected number of boxes you need to buy in order to collect all the figures? Suppose you ve already collected i 1 of the figures. Let X i be the time to collect the next one. Each box you buy will contain a new figure with probability ( (i 1))/. Therefore, E(X i ) = i + 1. Total number of boxes bought is X = X 1 + X X, so E(X ) = E(X 1 ) + E(X 2 ) + + E(X ) = ( = ) ln. Independent random variables Random variables X, Y are independent if Pr(X = x, Y = y) = Pr(X = x)pr(y = y). Independent or not? Pic a card out of a standard dec. X = suit and Y = number. Independent. Flip a fair coin n times. X = # heads and Y = last toss. Not independent. X, Y tae values { 1, 0, 1}, with the following probabilities: Y X Independent. X Y

Topic 3 Random variables, expectation, and variance, II

Topic 3 Random variables, expectation, and variance, II CSE 103: Probability and statistics Fall 2010 Topic 3 Random variables, expectation, and variance, II 3.1 Linearity of expectation If you double each value of X, then you also double its average; that

More information

Topic 2 Multiple events, conditioning, and independence, I. 2.1 Two or more events on the same sample space

Topic 2 Multiple events, conditioning, and independence, I. 2.1 Two or more events on the same sample space CSE 103: Probability and statistics Fall 2010 Topic 2 Multiple events, conditioning, and independence, I 2.1 Two or more events on the same sample space Frequently we end up dealing with multiple events

More information

Mathematical Foundations of Computer Science Lecture Outline October 18, 2018

Mathematical Foundations of Computer Science Lecture Outline October 18, 2018 Mathematical Foundations of Computer Science Lecture Outline October 18, 2018 The Total Probability Theorem. Consider events E and F. Consider a sample point ω E. Observe that ω belongs to either F or

More information

1. When applied to an affected person, the test comes up positive in 90% of cases, and negative in 10% (these are called false negatives ).

1. When applied to an affected person, the test comes up positive in 90% of cases, and negative in 10% (these are called false negatives ). CS 70 Discrete Mathematics for CS Spring 2006 Vazirani Lecture 8 Conditional Probability A pharmaceutical company is marketing a new test for a certain medical condition. According to clinical trials,

More information

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14 CS 70 Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 14 Introduction One of the key properties of coin flips is independence: if you flip a fair coin ten times and get ten

More information

UNIT 5 ~ Probability: What Are the Chances? 1

UNIT 5 ~ Probability: What Are the Chances? 1 UNIT 5 ~ Probability: What Are the Chances? 1 6.1: Simulation Simulation: The of chance behavior, based on a that accurately reflects the phenomenon under consideration. (ex 1) Suppose we are interested

More information

X = X X n, + X 2

X = X X n, + X 2 CS 70 Discrete Mathematics for CS Fall 2003 Wagner Lecture 22 Variance Question: At each time step, I flip a fair coin. If it comes up Heads, I walk one step to the right; if it comes up Tails, I walk

More information

Mathematical Foundations of Computer Science Lecture Outline October 9, 2018

Mathematical Foundations of Computer Science Lecture Outline October 9, 2018 Mathematical Foundations of Computer Science Lecture Outline October 9, 2018 Eample. in 4? When three dice are rolled what is the probability that one of the dice results Let F i, i {1, 2, 3} be the event

More information

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 12. Random Variables: Distribution and Expectation

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 12. Random Variables: Distribution and Expectation CS 70 Discrete Mathematics and Probability Theory Fall 203 Vazirani Note 2 Random Variables: Distribution and Expectation We will now return once again to the question of how many heads in a typical sequence

More information

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 20

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 20 CS 70 Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 20 Today we shall discuss a measure of how close a random variable tends to be to its expectation. But first we need to see how to compute

More information

Notice how similar the answers are in i,ii,iii, and iv. Go back and modify your answers so that all the parts look almost identical.

Notice how similar the answers are in i,ii,iii, and iv. Go back and modify your answers so that all the parts look almost identical. RANDOM VARIABLES MATH CIRCLE (ADVANCED) 3/3/2013 0) a) Suppose you flip a fair coin 3 times. i) What is the probability you get 0 heads? ii) 1 head? iii) 2 heads? iv) 3 heads? b) Suppose you are dealt

More information

HW MATH425/525 Lecture Notes 1

HW MATH425/525 Lecture Notes 1 HW MATH425/525 Lecture Notes 1 Definition 4.1 If an experiment can be repeated under the same condition, its outcome cannot be predicted with certainty, and the collection of its every possible outcome

More information

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability Department of Electrical Engineering University of Arkansas ELEG 3143 Probability & Stochastic Process Ch. 1 Probability Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Applications Elementary Set Theory Random

More information

MATH MW Elementary Probability Course Notes Part I: Models and Counting

MATH MW Elementary Probability Course Notes Part I: Models and Counting MATH 2030 3.00MW Elementary Probability Course Notes Part I: Models and Counting Tom Salisbury salt@yorku.ca York University Winter 2010 Introduction [Jan 5] Probability: the mathematics used for Statistics

More information

Lecture 4: Probability and Discrete Random Variables

Lecture 4: Probability and Discrete Random Variables Error Correcting Codes: Combinatorics, Algorithms and Applications (Fall 2007) Lecture 4: Probability and Discrete Random Variables Wednesday, January 21, 2009 Lecturer: Atri Rudra Scribe: Anonymous 1

More information

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Note 15. Random Variables: Distributions, Independence, and Expectations

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Note 15. Random Variables: Distributions, Independence, and Expectations EECS 70 Discrete Mathematics and Probability Theory Fall 204 Anant Sahai Note 5 Random Variables: Distributions, Independence, and Expectations In the last note, we saw how useful it is to have a way of

More information

The probability of an event is viewed as a numerical measure of the chance that the event will occur.

The probability of an event is viewed as a numerical measure of the chance that the event will occur. Chapter 5 This chapter introduces probability to quantify randomness. Section 5.1: How Can Probability Quantify Randomness? The probability of an event is viewed as a numerical measure of the chance that

More information

Example 1. The sample space of an experiment where we flip a pair of coins is denoted by:

Example 1. The sample space of an experiment where we flip a pair of coins is denoted by: Chapter 8 Probability 8. Preliminaries Definition (Sample Space). A Sample Space, Ω, is the set of all possible outcomes of an experiment. Such a sample space is considered discrete if Ω has finite cardinality.

More information

Lecture 8: Probability

Lecture 8: Probability Lecture 8: Probability The idea of probability is well-known The flipping of a balanced coin can produce one of two outcomes: T (tail) and H (head) and the symmetry between the two outcomes means, of course,

More information

Recap. The study of randomness and uncertainty Chances, odds, likelihood, expected, probably, on average,... PROBABILITY INFERENTIAL STATISTICS

Recap. The study of randomness and uncertainty Chances, odds, likelihood, expected, probably, on average,... PROBABILITY INFERENTIAL STATISTICS Recap. Probability (section 1.1) The study of randomness and uncertainty Chances, odds, likelihood, expected, probably, on average,... PROBABILITY Population Sample INFERENTIAL STATISTICS Today. Formulation

More information

CS280, Spring 2004: Final

CS280, Spring 2004: Final CS280, Spring 2004: Final 1. [4 points] Which of the following relations on {0, 1, 2, 3} is an equivalence relation. (If it is, explain why. If it isn t, explain why not.) Just saying Yes or No with no

More information

Discrete Mathematics and Probability Theory Fall 2011 Rao Midterm 2 Solutions

Discrete Mathematics and Probability Theory Fall 2011 Rao Midterm 2 Solutions CS 70 Discrete Mathematics and Probability Theory Fall 20 Rao Midterm 2 Solutions True/False. [24 pts] Circle one of the provided answers please! No negative points will be assigned for incorrect answers.

More information

ORF 245 Fundamentals of Statistics Chapter 5 Probability

ORF 245 Fundamentals of Statistics Chapter 5 Probability ORF 245 Fundamentals of Statistics Chapter 5 Probability Robert Vanderbei Oct 2015 Slides last edited on October 14, 2015 http://www.princeton.edu/ rvdb Sample Spaces (aka Populations) and Events When

More information

= 2 5 Note how we need to be somewhat careful with how we define the total number of outcomes in b) and d). We will return to this later.

= 2 5 Note how we need to be somewhat careful with how we define the total number of outcomes in b) and d). We will return to this later. PROBABILITY MATH CIRCLE (ADVANCED /27/203 The likelyhood of something (usually called an event happening is called the probability. Probability (informal: We can calculate probability using a ratio: want

More information

CS70: Jean Walrand: Lecture 26.

CS70: Jean Walrand: Lecture 26. CS70: Jean Walrand: Lecture 26. Expectation; Geometric & Poisson 1. Random Variables: Brief Review 2. Expectation 3. Linearity of Expectation 4. Geometric Distribution 5. Poisson Distribution Random Variables:

More information

Probability and Statistics Notes

Probability and Statistics Notes Probability and Statistics Notes Chapter One Jesse Crawford Department of Mathematics Tarleton State University (Tarleton State University) Chapter One Notes 1 / 71 Outline 1 A Sketch of Probability and

More information

Probabilities and Expectations

Probabilities and Expectations Probabilities and Expectations Ashique Rupam Mahmood September 9, 2015 Probabilities tell us about the likelihood of an event in numbers. If an event is certain to occur, such as sunrise, probability of

More information

3.2 Probability Rules

3.2 Probability Rules 3.2 Probability Rules The idea of probability rests on the fact that chance behavior is predictable in the long run. In the last section, we used simulation to imitate chance behavior. Do we always need

More information

Conditional Probability (cont...) 10/06/2005

Conditional Probability (cont...) 10/06/2005 Conditional Probability (cont...) 10/06/2005 Independent Events Two events E and F are independent if both E and F have positive probability and if P (E F ) = P (E), and P (F E) = P (F ). 1 Theorem. If

More information

Carleton University. Final Examination Winter DURATION: 2 HOURS No. of students: 275

Carleton University. Final Examination Winter DURATION: 2 HOURS No. of students: 275 Carleton University Final Examination Winter 2017 DURATION: 2 HOURS No. of students: 275 Department Name & Course Number: Computer Science COMP 2804B Course Instructor: Michiel Smid Authorized memoranda:

More information

Lecture Notes 1 Basic Probability. Elements of Probability. Conditional probability. Sequential Calculation of Probability

Lecture Notes 1 Basic Probability. Elements of Probability. Conditional probability. Sequential Calculation of Probability Lecture Notes 1 Basic Probability Set Theory Elements of Probability Conditional probability Sequential Calculation of Probability Total Probability and Bayes Rule Independence Counting EE 178/278A: Basic

More information

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 10

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 10 EECS 70 Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 10 Introduction to Basic Discrete Probability In the last note we considered the probabilistic experiment where we flipped

More information

Probabilistic models

Probabilistic models Probabilistic models Kolmogorov (Andrei Nikolaevich, 1903 1987) put forward an axiomatic system for probability theory. Foundations of the Calculus of Probabilities, published in 1933, immediately became

More information

Formalizing Probability. Choosing the Sample Space. Probability Measures

Formalizing Probability. Choosing the Sample Space. Probability Measures Formalizing Probability Choosing the Sample Space What do we assign probability to? Intuitively, we assign them to possible events (things that might happen, outcomes of an experiment) Formally, we take

More information

Discrete Mathematics for CS Spring 2006 Vazirani Lecture 22

Discrete Mathematics for CS Spring 2006 Vazirani Lecture 22 CS 70 Discrete Mathematics for CS Spring 2006 Vazirani Lecture 22 Random Variables and Expectation Question: The homeworks of 20 students are collected in, randomly shuffled and returned to the students.

More information

Probabilistic models

Probabilistic models Kolmogorov (Andrei Nikolaevich, 1903 1987) put forward an axiomatic system for probability theory. Foundations of the Calculus of Probabilities, published in 1933, immediately became the definitive formulation

More information

HW2 Solutions, for MATH441, STAT461, STAT561, due September 9th

HW2 Solutions, for MATH441, STAT461, STAT561, due September 9th HW2 Solutions, for MATH44, STAT46, STAT56, due September 9th. You flip a coin until you get tails. Describe the sample space. How many points are in the sample space? The sample space consists of sequences

More information

12 1 = = 1

12 1 = = 1 Basic Probability: Problem Set One Summer 07.3. We have A B B P (A B) P (B) 3. We also have from the inclusion-exclusion principle that since P (A B). P (A B) P (A) + P (B) P (A B) 3 P (A B) 3 For examples

More information

Randomized Algorithms

Randomized Algorithms Randomized Algorithms Andreas Klappenecker Texas A&M University Lecture notes of a course given in Fall 2003. Preliminary draft. c 2003 by Andreas Klappenecker. All rights reserved. Chapter 2 Probability

More information

Dept. of Linguistics, Indiana University Fall 2015

Dept. of Linguistics, Indiana University Fall 2015 L645 Dept. of Linguistics, Indiana University Fall 2015 1 / 34 To start out the course, we need to know something about statistics and This is only an introduction; for a fuller understanding, you would

More information

Probability Theory. Introduction to Probability Theory. Principles of Counting Examples. Principles of Counting. Probability spaces.

Probability Theory. Introduction to Probability Theory. Principles of Counting Examples. Principles of Counting. Probability spaces. Probability Theory To start out the course, we need to know something about statistics and probability Introduction to Probability Theory L645 Advanced NLP Autumn 2009 This is only an introduction; for

More information

MA : Introductory Probability

MA : Introductory Probability MA 320-001: Introductory Probability David Murrugarra Department of Mathematics, University of Kentucky http://www.math.uky.edu/~dmu228/ma320/ Spring 2017 David Murrugarra (University of Kentucky) MA 320:

More information

7.1 What is it and why should we care?

7.1 What is it and why should we care? Chapter 7 Probability In this section, we go over some simple concepts from probability theory. We integrate these with ideas from formal language theory in the next chapter. 7.1 What is it and why should

More information

What is the probability of getting a heads when flipping a coin

What is the probability of getting a heads when flipping a coin Chapter 2 Probability Probability theory is a branch of mathematics dealing with chance phenomena. The origins of the subject date back to the Italian mathematician Cardano about 1550, and French mathematicians

More information

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 14. Random Variables: Distribution and Expectation

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 14. Random Variables: Distribution and Expectation CS 70 Discrete Mathematics and Probability Theory Fall 202 Vazirani Note 4 Random Variables: Distribution and Expectation Random Variables Question: The homeworks of 20 students are collected in, randomly

More information

Lectures Conditional Probability and Independence

Lectures Conditional Probability and Independence Lectures 5 11 Conditional Probability and Independence Purpose: Calculate probabilities under restrictions, conditions or partial information on the random experiment. Break down complex probabilistic

More information

1 The Basic Counting Principles

1 The Basic Counting Principles 1 The Basic Counting Principles The Multiplication Rule If an operation consists of k steps and the first step can be performed in n 1 ways, the second step can be performed in n ways [regardless of how

More information

STAT Chapter 3: Probability

STAT Chapter 3: Probability Basic Definitions STAT 515 --- Chapter 3: Probability Experiment: A process which leads to a single outcome (called a sample point) that cannot be predicted with certainty. Sample Space (of an experiment):

More information

Chapter 2: Probability Part 1

Chapter 2: Probability Part 1 Engineering Probability & Statistics (AGE 1150) Chapter 2: Probability Part 1 Dr. O. Phillips Agboola Sample Space (S) Experiment: is some procedure (or process) that we do and it results in an outcome.

More information

Business Statistics. Lecture 3: Random Variables and the Normal Distribution

Business Statistics. Lecture 3: Random Variables and the Normal Distribution Business Statistics Lecture 3: Random Variables and the Normal Distribution 1 Goals for this Lecture A little bit of probability Random variables The normal distribution 2 Probability vs. Statistics Probability:

More information

18.600: Lecture 4 Axioms of probability and inclusion-exclusion

18.600: Lecture 4 Axioms of probability and inclusion-exclusion 18.600: Lecture 4 Axioms of probability and inclusion-exclusion Scott Sheffield MIT Outline Axioms of probability Consequences of axioms Inclusion exclusion Outline Axioms of probability Consequences of

More information

CS70: Jean Walrand: Lecture 19.

CS70: Jean Walrand: Lecture 19. CS70: Jean Walrand: Lecture 19. Random Variables: Expectation 1. Random Variables: Brief Review 2. Expectation 3. Important Distributions Random Variables: Definitions Definition A random variable, X,

More information

Chapter 14. From Randomness to Probability. Copyright 2012, 2008, 2005 Pearson Education, Inc.

Chapter 14. From Randomness to Probability. Copyright 2012, 2008, 2005 Pearson Education, Inc. Chapter 14 From Randomness to Probability Copyright 2012, 2008, 2005 Pearson Education, Inc. Dealing with Random Phenomena A random phenomenon is a situation in which we know what outcomes could happen,

More information

Carleton University. Final Examination Fall DURATION: 2 HOURS No. of students: 223

Carleton University. Final Examination Fall DURATION: 2 HOURS No. of students: 223 Carleton University Final Examination Fall 2016 DURATION: 2 HOURS No. of students: 223 Department Name & Course Number: Computer Science COMP 2804A Course Instructor: Michiel Smid Authorized memoranda:

More information

Conditional Probability (cont'd)

Conditional Probability (cont'd) Conditional Probability (cont'd) April 26, 2006 Conditional Probability (cont'd) Midterm Problems In a ten-question true-false exam, nd the probability that a student get a grade of 70 percent or better

More information

Probability 1 (MATH 11300) lecture slides

Probability 1 (MATH 11300) lecture slides Probability 1 (MATH 11300) lecture slides Márton Balázs School of Mathematics University of Bristol Autumn, 2015 December 16, 2015 To know... http://www.maths.bris.ac.uk/ mb13434/prob1/ m.balazs@bristol.ac.uk

More information

Statistical Theory 1

Statistical Theory 1 Statistical Theory 1 Set Theory and Probability Paolo Bautista September 12, 2017 Set Theory We start by defining terms in Set Theory which will be used in the following sections. Definition 1 A set is

More information

Great Theoretical Ideas in Computer Science

Great Theoretical Ideas in Computer Science 15-251 Great Theoretical Ideas in Computer Science Probability Theory: Counting in Terms of Proportions Lecture 10 (September 27, 2007) Some Puzzles Teams A and B are equally good In any one game, each

More information

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e 1 P a g e experiment ( observing / measuring ) outcomes = results sample space = set of all outcomes events = subset of outcomes If we collect all outcomes we are forming a sample space If we collect some

More information

AMS7: WEEK 2. CLASS 2

AMS7: WEEK 2. CLASS 2 AMS7: WEEK 2. CLASS 2 Introduction to Probability. Probability Rules. Independence and Conditional Probability. Bayes Theorem. Risk and Odds Ratio Friday April 10, 2015 Probability: Introduction Probability:

More information

ECE 340 Probabilistic Methods in Engineering M/W 3-4:15. Lecture 2: Random Experiments. Prof. Vince Calhoun

ECE 340 Probabilistic Methods in Engineering M/W 3-4:15. Lecture 2: Random Experiments. Prof. Vince Calhoun ECE 340 Probabilistic Methods in Engineering M/W 3-4:15 Lecture 2: Random Experiments Prof. Vince Calhoun Reading This class: Section 2.1-2.2 Next class: Section 2.3-2.4 Homework: Assignment 1: From the

More information

Random variables, expectation, and variance

Random variables, expectation, and variance Random variables, expectation, and variance DSE 210 Random variables Roll a die. Define X = 1 if die is 3 0 otherwise Here the sample space is = {1, 2, 3, 4, 5, 6}. Roll n dice.! =1, 2 ) X =0! =3, 4, 5,

More information

CISC 1100/1400 Structures of Comp. Sci./Discrete Structures Chapter 7 Probability. Outline. Terminology and background. Arthur G.

CISC 1100/1400 Structures of Comp. Sci./Discrete Structures Chapter 7 Probability. Outline. Terminology and background. Arthur G. CISC 1100/1400 Structures of Comp. Sci./Discrete Structures Chapter 7 Probability Arthur G. Werschulz Fordham University Department of Computer and Information Sciences Copyright Arthur G. Werschulz, 2017.

More information

Topic -2. Probability. Larson & Farber, Elementary Statistics: Picturing the World, 3e 1

Topic -2. Probability. Larson & Farber, Elementary Statistics: Picturing the World, 3e 1 Topic -2 Probability Larson & Farber, Elementary Statistics: Picturing the World, 3e 1 Probability Experiments Experiment : An experiment is an act that can be repeated under given condition. Rolling a

More information

Math 243 Section 3.1 Introduction to Probability Lab

Math 243 Section 3.1 Introduction to Probability Lab Math 243 Section 3.1 Introduction to Probability Lab Overview Why Study Probability? Outcomes, Events, Sample Space, Trials Probabilities and Complements (not) Theoretical vs. Empirical Probability The

More information

CS 246 Review of Proof Techniques and Probability 01/14/19

CS 246 Review of Proof Techniques and Probability 01/14/19 Note: This document has been adapted from a similar review session for CS224W (Autumn 2018). It was originally compiled by Jessica Su, with minor edits by Jayadev Bhaskaran. 1 Proof techniques Here we

More information

If S = {O 1, O 2,, O n }, where O i is the i th elementary outcome, and p i is the probability of the i th elementary outcome, then

If S = {O 1, O 2,, O n }, where O i is the i th elementary outcome, and p i is the probability of the i th elementary outcome, then 1.1 Probabilities Def n: A random experiment is a process that, when performed, results in one and only one of many observations (or outcomes). The sample space S is the set of all elementary outcomes

More information

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 16. Random Variables: Distribution and Expectation

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 16. Random Variables: Distribution and Expectation CS 70 Discrete Mathematics and Probability Theory Spring 206 Rao and Walrand Note 6 Random Variables: Distribution and Expectation Example: Coin Flips Recall our setup of a probabilistic experiment as

More information

TOPIC 12 PROBABILITY SCHEMATIC DIAGRAM

TOPIC 12 PROBABILITY SCHEMATIC DIAGRAM TOPIC 12 PROBABILITY SCHEMATIC DIAGRAM Topic Concepts Degree of Importance References NCERT Book Vol. II Probability (i) Conditional Probability *** Article 1.2 and 1.2.1 Solved Examples 1 to 6 Q. Nos

More information

Week 12-13: Discrete Probability

Week 12-13: Discrete Probability Week 12-13: Discrete Probability November 21, 2018 1 Probability Space There are many problems about chances or possibilities, called probability in mathematics. When we roll two dice there are possible

More information

ORF 245 Fundamentals of Statistics Chapter 1 Probability

ORF 245 Fundamentals of Statistics Chapter 1 Probability ORF 245 Fundamentals of Statistics Chapter 1 Probability Robert Vanderbei Sept 2014 Slides last edited on September 19, 2014 http://www.princeton.edu/ rvdb Course Info Prereqs: Textbook: Three semesters

More information

Introduction to Probability, Fall 2009

Introduction to Probability, Fall 2009 Introduction to Probability, Fall 2009 Math 30530 Review questions for exam 1 solutions 1. Let A, B and C be events. Some of the following statements are always true, and some are not. For those that are

More information

Section 13.3 Probability

Section 13.3 Probability 288 Section 13.3 Probability Probability is a measure of how likely an event will occur. When the weather forecaster says that there will be a 50% chance of rain this afternoon, the probability that it

More information

Theorem 1.7 [Bayes' Law]: Assume that,,, are mutually disjoint events in the sample space s.t.. Then Pr( )

Theorem 1.7 [Bayes' Law]: Assume that,,, are mutually disjoint events in the sample space s.t.. Then Pr( ) Theorem 1.7 [Bayes' Law]: Assume that,,, are mutually disjoint events in the sample space s.t.. Then Pr Pr = Pr Pr Pr() Pr Pr. We are given three coins and are told that two of the coins are fair and the

More information

1. Sample spaces, events and conditional probabilities. A sample space is a finite or countable set S together with a function. P (x) = 1.

1. Sample spaces, events and conditional probabilities. A sample space is a finite or countable set S together with a function. P (x) = 1. DEPARTMENT OF MATHEMATICS UNIVERSITY OF CALIFORNIA, BERKELEY Probability theory H.W. Lenstra, Jr. These notes contain material on probability for Math 55, Discrete mathematics. They were written to supplement

More information

6.041/6.431 Spring 2009 Quiz 1 Wednesday, March 11, 7:30-9:30 PM. SOLUTIONS

6.041/6.431 Spring 2009 Quiz 1 Wednesday, March 11, 7:30-9:30 PM. SOLUTIONS 6.0/6.3 Spring 009 Quiz Wednesday, March, 7:30-9:30 PM. SOLUTIONS Name: Recitation Instructor: Question Part Score Out of 0 all 0 a 5 b c 5 d 5 e 5 f 5 3 a b c d 5 e 5 f 5 g 5 h 5 Total 00 Write your solutions

More information

Outline. Probability. Math 143. Department of Mathematics and Statistics Calvin College. Spring 2010

Outline. Probability. Math 143. Department of Mathematics and Statistics Calvin College. Spring 2010 Outline Math 143 Department of Mathematics and Statistics Calvin College Spring 2010 Outline Outline 1 Review Basics Random Variables Mean, Variance and Standard Deviation of Random Variables 2 More Review

More information

Compound Events. The event E = E c (the complement of E) is the event consisting of those outcomes which are not in E.

Compound Events. The event E = E c (the complement of E) is the event consisting of those outcomes which are not in E. Compound Events Because we are using the framework of set theory to analyze probability, we can use unions, intersections and complements to break complex events into compositions of events for which it

More information

Chapter 8 Sequences, Series, and Probability

Chapter 8 Sequences, Series, and Probability Chapter 8 Sequences, Series, and Probability Overview 8.1 Sequences and Series 8.2 Arithmetic Sequences and Partial Sums 8.3 Geometric Sequences and Partial Sums 8.5 The Binomial Theorem 8.6 Counting Principles

More information

1 True/False. Math 10B with Professor Stankova Worksheet, Discussion #9; Thursday, 2/15/2018 GSI name: Roy Zhao

1 True/False. Math 10B with Professor Stankova Worksheet, Discussion #9; Thursday, 2/15/2018 GSI name: Roy Zhao Math 10B with Professor Stankova Worksheet, Discussion #9; Thursday, 2/15/2018 GSI name: Roy Zhao 1 True/False 1. True False When we solve a problem one way, it is not useful to try to solve it in a second

More information

MAT2377. Ali Karimnezhad. Version September 9, Ali Karimnezhad

MAT2377. Ali Karimnezhad. Version September 9, Ali Karimnezhad MAT2377 Ali Karimnezhad Version September 9, 2015 Ali Karimnezhad Comments These slides cover material from Chapter 1. In class, I may use a blackboard. I recommend reading these slides before you come

More information

Review of Basic Probability Theory

Review of Basic Probability Theory Review of Basic Probability Theory James H. Steiger Department of Psychology and Human Development Vanderbilt University James H. Steiger (Vanderbilt University) 1 / 35 Review of Basic Probability Theory

More information

Basic Probability. Introduction

Basic Probability. Introduction Basic Probability Introduction The world is an uncertain place. Making predictions about something as seemingly mundane as tomorrow s weather, for example, is actually quite a difficult task. Even with

More information

Math 1313 Experiments, Events and Sample Spaces

Math 1313 Experiments, Events and Sample Spaces Math 1313 Experiments, Events and Sample Spaces At the end of this recording, you should be able to define and use the basic terminology used in defining experiments. Terminology The next main topic in

More information

(6, 1), (5, 2), (4, 3), (3, 4), (2, 5), (1, 6)

(6, 1), (5, 2), (4, 3), (3, 4), (2, 5), (1, 6) Section 7.3: Compound Events Because we are using the framework of set theory to analyze probability, we can use unions, intersections and complements to break complex events into compositions of events

More information

14 - PROBABILITY Page 1 ( Answers at the end of all questions )

14 - PROBABILITY Page 1 ( Answers at the end of all questions ) - PROBABILITY Page ( ) Three houses are available in a locality. Three persons apply for the houses. Each applies for one house without consulting others. The probability that all the three apply for the

More information

Probability Basics Review

Probability Basics Review CS70: Jean Walrand: Lecture 16 Events, Conditional Probability, Independence, Bayes Rule Probability Basics Review Setup: Set notation review A B A [ B A \ B 1 Probability Basics Review 2 Events 3 Conditional

More information

2. AXIOMATIC PROBABILITY

2. AXIOMATIC PROBABILITY IA Probability Lent Term 2. AXIOMATIC PROBABILITY 2. The axioms The formulation for classical probability in which all outcomes or points in the sample space are equally likely is too restrictive to develop

More information

Lecture 2: Probability. Readings: Sections Statistical Inference: drawing conclusions about the population based on a sample

Lecture 2: Probability. Readings: Sections Statistical Inference: drawing conclusions about the population based on a sample Lecture 2: Probability Readings: Sections 5.1-5.3 1 Introduction Statistical Inference: drawing conclusions about the population based on a sample Parameter: a number that describes the population a fixed

More information

MAT Mathematics in Today's World

MAT Mathematics in Today's World MAT 1000 Mathematics in Today's World Last Time We discussed the four rules that govern probabilities: 1. Probabilities are numbers between 0 and 1 2. The probability an event does not occur is 1 minus

More information

Conditional Probability: Review

Conditional Probability: Review CS7: Jean Walrand: Lecture 7 ayes Rule, Mutual Independence, Collisions and Collecting Conditional Probability 2 Independence 3 ayes Rule 4 alls and ins 5 Coupons Conditional Probability: Review Recall:

More information

Ch 14 Randomness and Probability

Ch 14 Randomness and Probability Ch 14 Randomness and Probability We ll begin a new part: randomness and probability. This part contain 4 chapters: 14-17. Why we need to learn this part? Probability is not a portion of statistics. Instead

More information

Lecture Lecture 5

Lecture Lecture 5 Lecture 4 --- Lecture 5 A. Basic Concepts (4.1-4.2) 1. Experiment: A process of observing a phenomenon that has variation in its outcome. Examples: (E1). Rolling a die, (E2). Drawing a card form a shuffled

More information

2.6 Tools for Counting sample points

2.6 Tools for Counting sample points 2.6 Tools for Counting sample points When the number of simple events in S is too large, manual enumeration of every sample point in S is tedious or even impossible. (Example) If S contains N equiprobable

More information

Econ 113. Lecture Module 2

Econ 113. Lecture Module 2 Econ 113 Lecture Module 2 Contents 1. Experiments and definitions 2. Events and probabilities 3. Assigning probabilities 4. Probability of complements 5. Conditional probability 6. Statistical independence

More information

MATH STUDENT BOOK. 12th Grade Unit 9

MATH STUDENT BOOK. 12th Grade Unit 9 MATH STUDENT BOOK 12th Grade Unit 9 Unit 9 COUNTING PRINCIPLES MATH 1209 COUNTING PRINCIPLES INTRODUCTION 1. PROBABILITY DEFINITIONS, SAMPLE SPACES, AND PROBABILITY ADDITION OF PROBABILITIES 11 MULTIPLICATION

More information

Notes on Discrete Probability

Notes on Discrete Probability Columbia University Handout 3 W4231: Analysis of Algorithms September 21, 1999 Professor Luca Trevisan Notes on Discrete Probability The following notes cover, mostly without proofs, the basic notions

More information

Intermediate Math Circles November 8, 2017 Probability II

Intermediate Math Circles November 8, 2017 Probability II Intersection of Events and Independence Consider two groups of pairs of events Intermediate Math Circles November 8, 017 Probability II Group 1 (Dependent Events) A = {a sales associate has training} B

More information

Event A: at least one tail observed A:

Event A: at least one tail observed A: Chapter 3 Probability 3.1 Events, sample space, and probability Basic definitions: An is an act of observation that leads to a single outcome that cannot be predicted with certainty. A (or simple event)

More information

Overview. CSE 21 Day 5. Image/Coimage. Monotonic Lists. Functions Probabilistic analysis

Overview. CSE 21 Day 5. Image/Coimage. Monotonic Lists. Functions Probabilistic analysis Day 5 Functions/Probability Overview Functions Probabilistic analysis Neil Rhodes UC San Diego Image/Coimage The image of f is the set of values f actually takes on (a subset of the codomain) The inverse

More information