Random Variables Example:

Slides:



Advertisements
Similar presentations
MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS
Advertisements

Discrete Uniform Distribution
DISCRETE RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS
Statistics review of basic probability and statistics.
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.
The Bernoulli distribution Discrete distributions.
Lecture 10 – Introduction to Probability Topics Events, sample space, random variables Examples Probability distribution function Conditional probabilities.
Flipping an unfair coin three times Consider the unfair coin with P(H) = 1/3 and P(T) = 2/3. If we flip this coin three times, the sample space S is the.
Chapter 2 Discrete Random Variables
Discrete Probability Distributions
Probability Distributions Finite Random Variables.
Probability Distributions
TDC 369 / TDC 432 April 2, 2003 Greg Brewster. Topics Math Review Probability –Distributions –Random Variables –Expected Values.
1 Review of Probability Theory [Source: Stanford University]
1 Engineering Computation Part 5. 2 Some Concepts Previous to Probability RANDOM EXPERIMENT A random experiment or trial can be thought of as any activity.
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Special discrete distributions Sec
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
Class notes for ISE 201 San Jose State University
Probability Review ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar.
Discrete Random Variables and Probability Distributions
Week 51 Relation between Binomial and Poisson Distributions Binomial distribution Model for number of success in n trails where P(success in any one trail)
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
Probability Distributions: Finite Random Variables.
Joint Distribution of two or More Random Variables
Lecture 10 – Introduction to Probability Topics Events, sample space, random variables Examples Probability distribution function Conditional probabilities.
1 Performance Evaluation of Computer Systems By Behzad Akbari Tarbiat Modares University Spring 2009 Introduction to Probabilities: Discrete Random Variables.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
Week 41 Continuous Probability Spaces Ω is not countable. Outcomes can be any real number or part of an interval of R, e.g. heights, weights and lifetimes.
Winter 2006EE384x1 Review of Probability Theory Review Session 1 EE384X.
Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric.
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}.
Math 4030 – 4a Discrete Distributions
COMP 170 L2 L17: Random Variables and Expectation Page 1.
1 Topic 3 - Discrete distributions Basics of discrete distributions Mean and variance of a discrete distribution Binomial distribution Poisson distribution.
STA347 - week 51 More on Distribution Function The distribution of a random variable X can be determined directly from its cumulative distribution function.
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
Chapter 5 Discrete Probability Distributions. Random Variable A numerical description of the result of an experiment.
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.
Chapter 3 Discrete Random Variables and Probability Distributions  Random Variables.2 - Probability Distributions for Discrete Random Variables.3.
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.
Discrete Random Variables. Discrete random variables For a discrete random variable X the probability distribution is described by the probability function,
Topic 3 - Discrete distributions Basics of discrete distributions - pages Mean and variance of a discrete distribution - pages ,
4.3 More Discrete Probability Distributions NOTES Coach Bridges.
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
Chapter 4. Random Variables - 3
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
Engineering Probability and Statistics - SE-205 -Chap 3 By S. O. Duffuaa.
2.2 Discrete Random Variables 2.2 Discrete random variables Definition 2.2 –P27 Definition 2.3 –P27.
Week 61 Poisson Processes Model for times of occurrences (“arrivals”) of rare phenomena where λ – average number of arrivals per time period. X – number.
Probability Distributions
Chapter 3 Discrete Random Variables and Probability Distributions
MAT 446 Supplementary Note for Ch 3
3. Random Variables (Fig.3.1)
3 Discrete Random Variables and Probability Distributions
Random Variables.
C4: DISCRETE RANDOM VARIABLES
Chapter 2 Discrete Random Variables
Hypergeometric Distribution
Multinomial Distribution
Chapter 3 Discrete Random Variables and Probability Distributions
Some Discrete Probability Distributions
Discrete Random Variables: Basics
Discrete Random Variables: Basics
Each Distribution for Random Variables Has:
Random Variables Binomial and Hypergeometric Probabilities
Discrete Random Variables: Basics
Distribution Function of Random Variables
Presentation transcript:

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 5’s. Then X could be 0, 1, 2, 3, 4, 5, 6. X = 0 corresponds to the 56 elements of our 66 elements of Ω. X = 1 corresponds to the elements etc. X is an example of a random variable. Probability models often stated terms of random variables. E.g. - model for the # of H’s in 10 flips of a coin. - model for the height of a randomly chosen person. - model for size of a queue. week 3

Discrete Probability Spaces (Ω, F, P) week 3

Discrete Random Variable Definition: A random variable X is said to be discrete if it can take only a finite or countably infinite number of distinct values. A discrete random variable X maps the sample space Ω onto a countable set. Define a probability mass function (pmf) or frequency function on X such that Where the sum is taken over all possible values of X. Note that there is a theorem that states that there exists a probability triple and random variable whenever we have a function p such that The probability distribution of a discrete random variable X is represented by a formula, a table or a graph which provides the list of all possible values that X can take and the pmf for each value week 3

Examples of Discrete Random Variables Discrete Uniform Distribution We roll a fair die. Let X = the # that comes up. We have that This is an example of equiprobable outcomes, that is To state the probability distribution of X we need to give its possible values and its pmf X is a discrete Uniform random variable. X has a uniform distribution. week 3

Bernoulli Distribution week 3

Binomial Distribution Roll a die n time and count the number of times 6 came up. Let X be the number of 6’s in n rolls. X has image {1, 2, …, n} The probability distribution of X is given by the following formula In general, if identical Bernoulli trail is repeated n times independently and X is a random variable that count the number of success in the n trails then the probability distribution of X is given by Where p is the probability of success on any one experiment. X is a Binomial random variable. X has a Binomial Distribution. Question: is this a valid pmf? Prove! week 3

Geometric Distribution We roll a fair die until the first 6 comes up. Let X = the number of rolls until we get the first 6. Possible values of X: {1, 2, 3, …..} The probability distribution of X is given by the following formula In general, if identical Bernoulli trail is repeated independently until the first success is obtained and X is a random variable that count the number of trials until the first success then the probability distribution of X is given by X is a Geometric random variable. X has a Geometric Distribution. Question: is this a valid pmf? Prove! week 3

In general for a Geometric distribution: Memory-less property of geometric random variable: for i > j week 3

Negative Binomial Distribution We roll a fair die until the second 6 comes up. This is the waiting time for the second 6. Let X = the number of rolls until we get two 6’s. Possible values of X: {2, 3, 4, …..} The probability distribution of X is given by the following formula Is this a valid pmf? Prove! In general, X is the total number of experiments when waiting for rth success in a sequence of independent Bernoulli trails. The probability distribution of X is given by X has a Negative Binomial random Distribution. week 3

Hypergeometric Distribution A hat contains 12 tickets, 7 black and 5 white. Three tickets are drawn at random. Let X = the # of black tickets drawn. X could be 0, 1, 2, 3. The probability mass for each value can be calculated using combinatorics. For example, week 3

Poisson Distribution Model for the number of events occurring in a time (or space) interval where λ (a parameter of the distribution) is the rate of the occurrence of the events per one unit of time (or space). A Poisson random variable X = number of events per one unit of time (space). Possible values for X: {0, 1, 2, … } The probability distribution of X is given by Is this a valid pmf? Prove! week 3

Distribution Function of Random Variables Definition A cumulative distribution function (cdf) of a random variable X is a mapping F: R  [0, 1] defined by If X is a discrete random variable with pmf for x = 0, 1, 2, … then where is the greatest integer ≤ v. Example: week 3

Properties of Distribution Function F is monotone, non decreasing i.e. F(x) ≤ F(y) if x ≤ y. As x  - ∞ , F(x)  0 As x  ∞ , F(x)  1 F(x) is continuous from the right For a < b Why? week 3

Exercises A box contain 20 notes numbered 20 to 39. We randomly pick one note and record its number. What is the probability that the number we got is greater then 32? 30% of U of T students wear glasses. We select a random sample of size 10 students. a) What is the probability that exactly 4 of them wear glasses? b) What is the probability that more then 3 wear glasses? We roll a die until we obtained an even outcome. a) What is the probability that we will roll the die exactly 5 times? b) What is the probability that we roll the die more then 7 times ? c) What is the probability that we roll the die more then 7 times if we know that we need more then 2 rolls? week 3

We roll a die until we get 6 even outcomes. a) What is the probability that we need exactly 10 rolls? b) What is the probability that we need less 10 rolls? The number of cars that cross Spadina and Bloor intersection is a Poisson random variable with λ = 15 cars per minute. a) What is the probability that in a given minute exactly15 cars will cross the intersection? b) What is the probability that in a given minute more then 15 cars will cross the intersection? c) What is the probability that during half an hour there where exactly 2 minutes in which 15 cars crossed the intersection? week 3

Relation between Binomial and Poisson Distributions Binomial distribution Model for number of success in n trails where P(success in any one trail) = p. Poisson distribution is used to model rare occurrences that occur on average at rate λ per time interval. Can think of “rare” occurrence in terms of p  0 and n  ∞. Take these limits so that λ = np. So we have that week 3