Review of important distributions Another randomized algorithm

Slides:



Advertisements
Similar presentations
Special random variables Chapter 5 Some discrete or continuous probability distributions.
Advertisements

MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS
Discrete Uniform Distribution
DISCRETE RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS
2 Discrete Random Variable. Independence (module 1) A and B are independent iff the knowledge that B has occurred does not change the probability that.
Acknowledgement: Thanks to Professor Pagano
Important Random Variables Binomial: S X = { 0,1,2,..., n} Geometric: S X = { 0,1,2,... } Poisson: S X = { 0,1,2,... }
Lecture (7) Random Variables and Distribution Functions.
Random Variable A random variable X is a function that assign a real number, X(ζ), to each outcome ζ in the sample space of a random experiment. Domain.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Basic Business Statistics.
ฟังก์ชั่นการแจกแจงความน่าจะเป็น แบบไม่ต่อเนื่อง Discrete Probability Distributions.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Statistics.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Pearson Prentice-Hall, Inc.Chap 5-1 Statistics for Managers Using Microsoft® Excel 5th Edition.
Lec 18 Nov 12 Probability – definitions and simulation.
Review of Basic Probability and Statistics
Chapter 1 Probability Theory (i) : One Random Variable
Review.
Probability Distributions
TDC 369 / TDC 432 April 2, 2003 Greg Brewster. Topics Math Review Probability –Distributions –Random Variables –Expected Values.
1 Pertemuan 05 Sebaran Peubah Acak Diskrit Matakuliah: A0392-Statistik Ekonomi Tahun: 2006.
1 Review of Probability Theory [Source: Stanford University]
P robability Important Random Variable Independent random variable Mean and variance 郭俊利 2009/03/23.
Engineering Probability and Statistics - SE-205 -Chap 3 By S. O. Duffuaa.
A random variable that has the following pmf is said to be a binomial random variable with parameters n, p The Binomial random variable.
Probability Mass Function Expectation 郭俊利 2009/03/16
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Special discrete distributions Sec
Class notes for ISE 201 San Jose State University
Discrete and Continuous Distributions G. V. Narayanan.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
Chapter 5 Discrete Probability Distribution I. Basic Definitions II. Summary Measures for Discrete Random Variable Expected Value (Mean) Variance and Standard.
LECTURE 14 SIMULATION AND MODELING Md. Tanvir Al Amin, Lecturer, Dept. of CSE, BUET CSE 411.
Winter 2006EE384x1 Review of Probability Theory Review Session 1 EE384X.
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 1 – Slide 1 of 34 Chapter 11 Section 1 Random Variables.
ENGG 2040C: Probability Models and Applications Andrej Bogdanov Spring Random variables part two.
MTH3003 PJJ SEM I 2015/2016.  ASSIGNMENT :25% Assignment 1 (10%) Assignment 2 (15%)  Mid exam :30% Part A (Objective) Part B (Subjective)  Final Exam:
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}.
Random Variables and Probability Models
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
1 Since everything is a reflection of our minds, everything can be changed by our minds.
STA347 - week 31 Random Variables Example: We roll a fair die 6 times. Suppose we are interested in the number of 5’s in the 6 rolls. Let X = number of.
Stat 13 Lecture 19 discrete random variables, binomial A random variable is discrete if it takes values that have gaps : most often, integers Probability.
Exam 2: Rules Section 2.1 Bring a cheat sheet. One page 2 sides. Bring a calculator. Bring your book to use the tables in the back.
Random Variable The outcome of an experiment need not be a number, for example, the outcome when a coin is tossed can be 'heads' or 'tails'. However, we.
Some Common Discrete Random Variables. Binomial Random Variables.
Chapter 4-5 DeGroot & Schervish. Conditional Expectation/Mean Let X and Y be random variables such that the mean of Y exists and is finite. The conditional.
CONTINUOUS RANDOM VARIABLES
4.3 More Discrete Probability Distributions NOTES Coach Bridges.
Random Variables Example:
Chapter 4. Random Variables - 3
Binomial Distributions Chapter 5.3 – Probability Distributions and Predictions Mathematics of Data Management (Nelson) MDM 4U.
Engineering Probability and Statistics - SE-205 -Chap 3 By S. O. Duffuaa.
Discrete Random Variable Random Process. The Notion of A Random Variable We expect some measurement or numerical attribute of the outcome of a random.
3. Random Variables (Fig.3.1)
Random variables (r.v.) Random variable
Engineering Probability and Statistics - SE-205 -Chap 3
Random Variables and Probability Models
CONTINUOUS RANDOM VARIABLES
Chapter 5 Statistical Models in Simulation
Another Randomized Algorithm
Some Discrete Probability Distributions
STATISTICAL MODELS.
Useful Discrete Random Variable
Another Randomized Algorithm
Discrete Random Variables: Basics
Discrete Random Variables: Basics
Geometric Poisson Negative Binomial Gamma
Discrete Random Variables: Basics
Presentation transcript:

Review of important distributions Another randomized algorithm Section 5-23 Review of important distributions Another randomized algorithm

Discrete Random Variables

Bernoulli Distribution Definition: value 1 with probability p, 0 otherwise (prob. q = 1-p) Example: coin toss (p = ½ for fair coin) Parameters: p Properties: E[X] = p Var[X] = p(1-p) = pq

Binomial Distribution Definition: sum of n independent Bernoulli trials, each with parameter p Example: number of heads in 10 independent coin tosses Parameters: n, p Properties: E[X] = np Var(X) = np(1-p) pmf: Pr 𝑋=𝑘 = 𝑛 𝑘 𝑝 𝑘 (1−𝑝) 𝑛−𝑘

Poisson Distribution Definition: number of events that occur in a unit of time, if those events occur independently at an average rate  per unit time Example: # of cars at traffic light in 1 minute, # of deaths in 1 year by horse kick in Prussian cavalry Parameters:  Properties: E[X] =  Var[X] =  pmf: 𝑃𝑟 𝑋=𝑘 = λ 𝑘 𝑘! 𝑒 −λ

Geometric Distribution Definition: number of independent Bernoulli trials with parameter p until and including first success (so X can take values 1, 2, 3, ...) Example: # of coins flipped until first head Parameters: p Properties: E[X] = Var[X] = pmf: 1 𝑝 1−𝑝 𝑝 2 Pr 𝑋=𝑘 = 1−𝑝 𝑘−1 𝑝

Hypergeometric Distribution Definition: number of successes in n draws (without replacement) from N items that contain K successes in total Example: An urn has 10 red balls and 10 blue balls. What is the probability of drawing 2 red balls in 4 draws? Parameters: n, N, K Properties: E[X] = Var[X] = pmf: 𝑛 𝐾 𝑁 Think about the pmf; we've been doing it for weeks now: ways-to-choose-successes times ways-to-choose-failures over ways-to-choose-n Also, consider that the binomial dist. is the with-replacement analog of this 𝑛 𝐾 𝑁 𝑁−𝐾 𝑁 𝑁−𝑛 𝑁−1 𝑃𝑟 𝑋=𝑘 = 𝐾 𝑘 𝑁−𝐾 𝑛−𝑘 𝑁 𝑛

Continuous Random Variables

Uniform Distribution Definition: A random variable that takes any real value in an interval with equal likelihood Example: Choose a real number (with infinite precision) between 0 and 10 Parameters: a, b (lower and upper bound of interval) Properties: E[X] = Var[X] = pdf: 𝑎+𝑏 2 𝑏−𝑎 2 12 f(x) = 1 𝑏−𝑎 if 𝑥∈ 𝑎,𝑏 ,0 otherwise

Exponential Distribution Definition: Time until next events in Poisson process Example: How long until the next soldier is killed by horse kick? Parameters: λ, the rate at which Poisson events occur Properties: E[X] = Var[X] = pdf: 1 λ 1 λ 2 f(x)=λ 𝑒 −λ𝑥 for 𝑥≥0, 0 for 𝑥<0

Normal Distribution Definition: Your classic bell curve Example: Quantum harmonic oscillator ground state (exact) Human heights, binomial random variables (approx) Properties: μ, σ2 (yes, mean and variance are given) E[X] = μ Var[X] = σ2 pdf: f(x)= 1 2π σ 2 𝑒 − 𝑥−μ 2 2 σ 2

Another Randomized Algorithm

Matrix Multiplication Multiplying nn matrices (n = 2 in this example) 𝑎 𝑏 𝑐 𝑑 ∗ 𝑤 𝑥 𝑦 𝑧 = 𝑎𝑤+𝑏𝑦 𝑎𝑥+𝑏𝑧 𝑐𝑤+𝑑𝑦 𝑐𝑥+𝑑𝑧 Complexity of straightforward algorithm: O(n3) time (There are 8 multiplications here; in general, n multiplications for each of n2 entries) Coppersmith–Winograd algorithm (with help by others) can perform this operation in time O(n2.38) (2.3755 in 1990, 2.3727 by 2011. Progress!)

Frievalds’ Algorithm Determine whether n  n matrices A, B and C satisfy the condition AB = C Method: Choose x  {0,1}n randomly and uniformly (vector of length n) If ABx ≠ Cx, then AB ≠ C Else, AB = C probably

Results of Frievalds’ Algorithm Runs in time O(n2) ABx = A(Bx), so we have 3 instances of an n  n matrix times an n-vector these are O(n2) time operations Via some math magic, P(the algorithm reports AB = C | AB  C) ≤ ½ By iterating k random choices of x, can decrease probability of error to 1/2k. Interesting comparison Quicksort is always correct, runs slowly with small probability Frievalds’ alg. is always fast, incorrect with small probability