Introduction to Discrete Probability

Slides:



Advertisements
Similar presentations
Beginning Probability
Advertisements

AP Statistics Section 6.2C Independent Events & The Multiplication Rule.
Describing Probability
AP Statistics Section 6.2 A Probability Models
PROBABILITY  A fair six-sided die is rolled. What is the probability that the result is even?
Lec 18 Nov 12 Probability – definitions and simulation.
1 Discrete Math CS 280 Prof. Bart Selman Module Probability --- Part a) Introduction.
1 Copyright M.R.K. Krishna Rao 2003 Chapter 5. Discrete Probability Everything you have learned about counting constitutes the basis for computing the.
1 Section 5.1 Discrete Probability. 2 LaPlace’s definition of probability Number of successful outcomes divided by the number of possible outcomes This.
An Introduction to Probability Probability, odds, outcomes and events.
Bell Work: Factor x – 6x – Answer: (x – 8)(x + 2)
Chapter 9 Introducing Probability - A bridge from Descriptive Statistics to Inferential Statistics.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
1 9/8/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
1 9/23/2015 MATH 224 – Discrete Mathematics Basic finite probability is given by the formula, where |E| is the number of events and |S| is the total number.
Lecture Discrete Probability. 5.1 Probabilities Important in study of complexity of algorithms. Modeling the uncertain world: information, data.
The probability that it rains is 70% The probability that it does NOT rain is 30% Instinct tells us that for any event E, the probability that E happens.
4.1 Probability Distributions. Do you remember? Relative Frequency Histogram.
Basic Probability Section 7.1. Definitions Sample Space: The set of all possible outcomes in a given experiment or situation Often denoted by S Event:
The Wonderful World… of Probability. When do we use Probability?
Review Homework pages Example: Counting the number of heads in 10 coin tosses. 2.2/
ICS 253: Discrete Structures I Discrete Probability King Fahd University of Petroleum & Minerals Information & Computer Science Department.
11/13 Basic probability Probability in our context has to do with the outcomes of repeatable experiments Need an Experiment Set X of outcomes (outcome.
Basic Concepts of Probability
Math 145 September 18, Terminologies in Probability  Experiment – Any process that produces an outcome that cannot be predicted with certainty.
Introduction to Algorithms Probability Review – Appendix C CIS 670.
No Warm-Up today. You have a Quiz Clear your desk of everything but a calculator and something to write with.
Independent and Dependent Events Lesson 6.6. Getting Started… You roll one die and then flip one coin. What is the probability of : P(3, tails) = 2. P(less.
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
Probability Intro. Coin toss u Toss two coins 10 times keeping track of the results (head/tails) u Now toss 3 coins 10 times u Make a chart of all the.
PROBABILITY AND STATISTICS WEEK 2 Onur Doğan. Introduction to Probability The Classical Interpretation of Probability The Frequency Interpretation of.
Terminologies in Probability
Please copy your homework into your assignment book
Introduction to Discrete Probability
ICS 253: Discrete Structures I
Chapter 6: Discrete Probability
Probability Predictions Ch. 1, Act. 5.
Sec. 4-5: Applying Ratios to Probability
Brief General Discussion of Probability: Some “Probability Rules” Some abstract math language too! (from various internet sources)
Section 12.2 Probability.
= Basic Probability Notes Basics of Probability Probability
CS104:Discrete Structures
Math 145 September 25, 2006.
Conditional Probability
Probability Practice Problems
Discrete Probability Chapter 7 With Question/Answer Animations
PROBABILITY The probability of an event is a value that describes the chance or likelihood that the event will happen or that the event will end with.
PROBABILITY AND STATISTICS
Statistics 1: Elementary Statistics
Multiply the probability of the events together.
Terminologies in Probability
Statistics 1: Elementary Statistics
Terminologies in Probability
Terminologies in Probability
Probability Section 19 NOTE: We are skipping Section 18. 2/21/2019
Brief General Discussion of Probability: Some “Probability Rules”
Brief General Discussion of Probability: Some “Probability Rules”
Now it’s time to look at…
Terminologies in Probability
Probability Notes Please fill in the blanks on your notes to complete them. Please keep all notes throughout the entire week and unit for use on the quizzes.
POPULATION (of “units”)
CSE 321 Discrete Structures
Math 145 June 26, 2007.
Terminologies in Probability
Math 145 February 12, 2008.
Terminologies in Probability
Lecture 2 Basic Concepts on Probability (Section 0.2)
Sets, Combinatorics, Probability, and Number Theory
Presentation transcript:

Introduction to Discrete Probability ICS 6D Sandy Irani

A Few Applications of Discrete Probability in Computer Science Analyzing the behavior of algorithms that make random choices Running time, performance Testing computer systems Generating input/demand to test a system Modeling discrete structures Understanding the structure of the internet or social networks

Basic Definitions Experiment: repeatable process that results in one out of a possible set of outcomes. Sample space: the set of all possible outcomes of an experiment Examples: 5-card hand from a standard deck Roll of a blue and a red die Flip a coin 3 times

Events An event is a subset of the sample space Examples: Experiment: 5-card hand from a standard deck Event: The hand has a pair of 8’s Experiment: Roll of a blue and a red die Event: The two dice have the same number Experiment: Flip a coin 3 times Event: there are more heads than tails.

Probabilities Probability over the outcomes of an experiment with sample space S p: S → ℝ such that For every x ∈ S, 0 ≤ p(x) ≤ 1 x ∈ S 𝑝(𝑥) = 1 Example: Roll of a single die. S = {1, 2, 3, 4, 5, 6} p(1) = p(2) = p(3) = p(4) = p(5) = 1 7 p(6) = 2 7

Probability of an Event Prob(E) = 𝑥 ∈𝐸 𝑝(𝑥) Example: Roll of a single die. S = {1, 2, 3, 4, 5, 6} p(1) = p(2) = p(3) = p(4) = p(5) = 1 7 p(6) = 2 7 Event: outcome is even

Uniform Distribution Experiment with sample space S The uniform distribution over S is For every x ∈ S, 𝑝 𝑥 = 1 |𝑆| If the distribution is uniform then: p(E) =

Probabilities Under the Uniform Distribution Roll a red and a blue die (Fair dice means that the distribution over the outcomes is uniform) What is |S|? What is the probability of each event: B: the sum of the dice is at most 3

Probabilities Under the Uniform Distribution Roll a fair red and blue die What is the probability of each event: C: The value on the red die is one more than the value on the blue die

Probabilities Under the Uniform Distribution Roll a fair red and blue die What is the probability of each event: D: The value on the red die is less than the value on the blue die

Probabilities Under the Uniform Distribution Flip a fair coin 3 times (Fair coin means that the distribution over the outcomes is uniform) What is |S|? What is the probability of each event: A: the first and last flip come up heads

Probabilities Under the Uniform Distribution Flip a fair coin 3 times What is the probability of each event: E: At least one flip comes up heads.

Probabilities Under the Uniform Distribution Deal a 5-card hand from a perfectly shuffled deck. (“Perfectly shuffled deck” means that the distribution over the outcomes is uniform) What is |S|?

Probabilities Under the Uniform Distribution Deal a 5-card hand from a perfectly shuffled deck. What is the probability of each event: F: the hand is a full house

Probabilities Under the Uniform Distribution Deal a 5-card hand from a perfectly shuffled deck. What is the probability of each event: T: the hand has a 2-of-a-kind

A network has 30 servers. A copy of a file is stored on 3 of the servers. A random subset of 5 of the servers go down. What is the probability that all three copies of the file are unavailable?

A group of 90 kids take a test. There are three versions of the test A group of 90 kids take a test. There are three versions of the test. The kids are grouped randomly into three groups of 30 and each group is assigned to a version of the test. What is the probability that two particular students are given the same version of the test?

A 7-bit string is selected at random A 7-bit string is selected at random. What is the probability that the string is a palindrome?

A string over the alphabet {a, b, c, d} is selected at random A string over the alphabet {a, b, c, d} is selected at random. What is the probability that the string has two consecutive characters that are the same somewhere in the string?

8 different kids are assigned 8 different jobs 8 different kids are assigned 8 different jobs. The jobs are assigned at random so that each kid gets exactly one job. One of the kids (Barnaby) has a favorite job. What is the probability that Barnaby is assigned his favorite job?