Probability Review Part I Design and Analysis of Algorithms I.

Slides:



Advertisements
Similar presentations
Analysis of Algorithms CS 477/677 Instructor: Monica Nicolescu Lecture 6.
Advertisements

STATISTIK LECTURE: AL MUIZZUDDIN F., SE., ME.. Key Concept In this section we present three different approaches to finding the probability of an event.
Copyright © Cengage Learning. All rights reserved. 7 Probability.
Randomized Algorithms Randomized Algorithms CS648 Lecture 3 Two fundamental problems Balls into bins Randomized Quick Sort Random Variable and Expected.
Probability of two events Example A coin is tossed twice. Draw a probability sample space diagram showing all the possible outcomes. What is the probability.
EXAMPLE 1 Construct a probability distribution
Section 7.4 (partially). Section Summary Expected Value Linearity of Expectations Independent Random Variables.
PROBABILITY  A fair six-sided die is rolled. What is the probability that the result is even?
EXAMPLE 1 Construct a probability distribution Let X be a random variable that represents the sum when two six-sided dice are rolled. Make a table and.
Randomized Algorithms Randomized Algorithms CS648 Lecture 20 Probabilistic Method (part 1) Lecture 20 Probabilistic Method (part 1) 1.
Analysis of Algorithms CS 477/677 Randomizing Quicksort Instructor: George Bebis (Appendix C.2, Appendix C.3) (Chapter 5, Chapter 7)
Linear-Time Selection Randomized Selection (Algorithm) Design and Analysis of Algorithms I.
MA 102 Statistical Controversies Monday, April 1, 2002 Today: Randomness and probability Probability models and rules Reading (for Wednesday): Chapter.
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Discrete random variables Probability mass function Distribution function (Secs )
Analysis of Algorithms CS 477/677 Instructor: Monica Nicolescu.
UNR, MATH/STAT 352, Spring Random variable (rv) – central concept of probability theory Numerical description of experiment.
Samples vs. Distributions Distributions: Discrete Random Variable Distributions: Continuous Random Variable Another Situation: Sample of Data.
1 Discrete Probability Hsin-Lung Wu Assistant Professor Advanced Algorithms 2008 Fall.
Probability Distributions. A sample space is the set of all possible outcomes in a distribution. Distributions can be discrete or continuous.
Discrete Random Variables: PMFs and Moments Lemon Chapter 2 Intro to Probability
4.1 Probability Distributions. Do you remember? Relative Frequency Histogram.
Random Variables. A random variable X is a real valued function defined on the sample space, X : S  R. The set { s  S : X ( s )  [ a, b ] is an event}.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 5 Counting.
COMP 170 L2 L17: Random Variables and Expectation Page 1.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Computer Vision Group Prof. Daniel Cremers Autonomous Navigation for Flying Robots Lecture 5.2: Recap on Probability Theory Jürgen Sturm Technische Universität.
Math b (Discrete) Random Variables, Binomial Distribution.
Slide 5-1 Chapter 5 Probability and Random Variables.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Probability Refresher. Events Events as possible outcomes of an experiment Events define the sample space (discrete or continuous) – Single throw of a.
EXAMPLE 4 Find probabilities of complements Dice When two six-sided dice are rolled, there are 36 possible outcomes, as shown. Find the probability of.
Analysis of Algorithms CS 477/677 Instructor: Monica Nicolescu Lecture 7.
8-3: Probability and Probability Distributions English Casbarro Unit 8.
Tim Roughgarden Introduction Merge Sort (Analysis ) Design and Analysis of Algorithms I.
Random Variables. Numerical Outcomes Consider associating a numerical value with each sample point in a sample space. (1,1) (1,2) (1,3) (1,4) (1,5) (1,6)
QuickSort Choosing a Good Pivot Design and Analysis of Algorithms I.
Master Method (4. 3) Recurrent formula T(n) = a  T(n/b) + f(n) 1) if for some  > 0 then 2) if then 3) if for some  > 0 and a  f(n/b)  c  f(n) for.
1 Discrete Structures - CSIS2070 Text Discrete Mathematics and Its Applications Kenneth H. Rosen Chapter 4 Counting.
Central Limit Theorem Let X 1, X 2, …, X n be n independent, identically distributed random variables with mean  and standard deviation . For large n:
Probability and Simulation The Study of Randomness.
ROLL A PAIR OF DICE AND ADD THE NUMBERS Possible Outcomes: There are 6 x 6 = 36 equally likely.
Spring 2016 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University.
Reviews of probability Question 1: Suppose we have a “ABCDE” litters how many words we can compose from them with 4 litters without repetition.
If ONE student was to be selected at random, find the following probabilities: The student is a boyThe student has green eyes The student is left-handed.
Counting and Probability. Imagine tossing two coins and observing whether 0, 1, or 2 heads are obtained. Below are the results after 50 tosses Tossing.
Data Structures Red-Black Trees Design and Analysis of Algorithms I.
Introduction to probability (3) Definition: - The probability of an event A is the sum of the weights of all sample point in A therefore If A1,A2,…..,An.
Conditional Probability 423/what-is-your-favorite-data-analysis-cartoon 1.
© 2005 McGraw-Hill Ryerson Ltd. 4-1 Statistics A First Course Donald H. Sanders Robert K. Smidt Aminmohamed Adatia Glenn A. Larson.
APPENDIX A: A REVIEW OF SOME STATISTICAL CONCEPTS
Math a Discrete Random Variables
Subtopic : 10.1 Events and Probability
Algorithms CSCI 235, Fall 2017 Lecture 12 Midterm I Review
Lecture 8 Randomized Algorithms
This presentation uses a free template provided by FPPT.com Quantitative Methods Dr. Aravind Banakar –
This presentation uses a free template provided by FPPT.com Quantitative Methods
This presentation uses a free template provided by FPPT.com Quantitative Methods
Suppose you roll two dice, and let X be sum of the dice. Then X is
7.1 Experiments, Sample Spaces, & Events
Master Method (4. 3) Recurrent formula T(n) = aT(n/b) + f(n)
CS200: Algorithm Analysis
CONDITIONAL PROBABILITY
Probability Vocabulary:
Warm Up Imagine you are rolling 2 six-sided dice. 1) What is the probability to roll a sum of 7? 2) What is the probability to roll a sum of 6 or 7? 3)
Lecture 23 Section Mon, Oct 25, 2004
Introduction to Probability
ASV Chapters 1 - Sample Spaces and Probabilities
Probability of two events
CSE 321 Discrete Structures
Algorithms CSCI 235, Spring 2019 Lecture 12 Midterm I Review
Presentation transcript:

Probability Review Part I Design and Analysis of Algorithms I

Tim Roughgarden Topics Covered Sample spaces Events Random variables Expectation Linearity of Expectation See also: Lehman-Leighton notes (free PDF) Wikibook on Discrete Probability

Tim Roughgarden Concept #1 – Sample Spaces

Tim Roughgarden Concept #2 – Events

Template vertLeftWhite2 Consider the event (i.e., the subset of outcomes for which) “the sum of the two dice is 7”. What is the probability of this event?

Template vertLeftWhite2 Consider the event (i.e., the subset of outcomes for which) “the chosen pivot gives a split of better”. What is the probability of this event?

Tim Roughgarden Concept #2 – Events

Tim Roughgarden Concept #3 - Random Variables

Tim Roughgarden Concept #4 - Expectation

Template vertLeftWhite2 What is the expectation of the sum of two dice?

Template vertLeftWhite2 Which of the following is closest to the expectation of the size of the subarray passed to the first recursive call in QuickSort?

Tim Roughgarden Concept #4 - Expectation

Tim Roughgarden Concept #5 – Linearity of Expectation

Tim Roughgarden Linearity of Expectation (Proof)

Tim Roughgarden Example: Load Balancing

Tim Roughgarden Load Balancing Solution

Tim Roughgarden Load Balancing Solution (con’d)