Discrete Random Variables. Introduction In previous lectures we established a foundation of the probability theory; we applied the probability theory.

Slides:



Advertisements
Similar presentations
MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS
Advertisements

CS433: Modeling and Simulation
Random Variables ECE460 Spring, 2012.
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
Chapter 4 Probability and Probability Distributions
Lecture 10 – Introduction to Probability Topics Events, sample space, random variables Examples Probability distribution function Conditional probabilities.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Review of Basic Probability and Statistics
Review.
Probability Distributions Finite Random Variables.
Probability Distributions
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.
CHAPTER 6 Statistical Analysis of Experimental Data
Probability Distributions Random Variables: Finite and Continuous A review MAT174, Spring 2004.
Probability Distributions Random Variables: Finite and Continuous Distribution Functions Expected value April 3 – 10, 2003.
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.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
Review of Probability Theory. © Tallal Elshabrawy 2 Review of Probability Theory Experiments, Sample Spaces and Events Axioms of Probability Conditional.
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.
Lectures prepared by: Elchanan Mossel Yelena Shvets Introduction to probability Stat 134 FAll 2005 Berkeley Follows Jim Pitman’s book: Probability Section.
Chapter 1 Probability and Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
PROBABILITY & STATISTICAL INFERENCE LECTURE 3 MSc in Computing (Data Analytics)
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Review and Preview This chapter combines the methods of descriptive statistics presented in.
Applied Business Forecasting and Regression Analysis Review lecture 2 Randomness and Probability.
Basic Concepts of Discrete Probability (Theory of Sets: Continuation) 1.
5.3 Random Variables  Random Variable  Discrete Random Variables  Continuous Random Variables  Normal Distributions as Probability Distributions 1.
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}.
2.1 Introduction In an experiment of chance, outcomes occur randomly. We often summarize the outcome from a random experiment by a simple number. Definition.
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
Week 11 What is Probability? Quantification of uncertainty. Mathematical model for things that occur randomly. Random – not haphazard, don’t know what.
One Random Variable Random Process.
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.
CS433 Modeling and Simulation Lecture 03 – Part 01 Probability Review 1 Dr. Anis Koubâa Al-Imam Mohammad Ibn Saud University
Random Variables Presentation 6.. Random Variables A random variable assigns a number (or symbol) to each outcome of a random circumstance. A random variable.
1 3. Random Variables Let ( , F, P) be a probability model for an experiment, and X a function that maps every to a unique point the set of real numbers.
1 3. Random Variables Let ( , F, P) be a probability model for an experiment, and X a function that maps every to a unique point the set of real numbers.
A random variable is a variable whose values are numerical outcomes of a random experiment. That is, we consider all the outcomes in a sample space S and.
Sixth lecture Concepts of Probabilities. Random Experiment Can be repeated (theoretically) an infinite number of times Has a well-defined set of possible.
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.
Conditional Probability Mass Function. Introduction P[A|B] is the probability of an event A, giving that we know that some other event B has occurred.
Multiple Discrete Random Variables. Introduction Consider the choice of a student at random from a population. We wish to know student’s height, weight,
Probability (outcome k) = Relative Frequency of k
Computer simulation Sep. 9, QUIZ 2 Determine whether the following experiments have discrete or continuous out comes A fair die is tossed and the.
Review of Probability. Important Topics 1 Random Variables and Probability Distributions 2 Expected Values, Mean, and Variance 3 Two Random Variables.
Expected values of discrete Random Variables. The function that maps S into S X in R and which is denoted by X(.) is called a random variable. The name.
Random Variables Example:
Probability Theory Modelling random phenomena. Permutations the number of ways that you can order n objects is: n! = n(n-1)(n-2)(n-3)…(3)(2)(1) Definition:
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
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)
A random variable is a variable whose values are numerical outcomes of a random experiment. That is, we consider all the outcomes in a sample space S and.
Chapter 6 Large Random Samples Weiqi Luo ( 骆伟祺 ) School of Data & Computer Science Sun Yat-Sen University :
Engineering Probability and Statistics - SE-205 -Chap 3 By S. O. Duffuaa.
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
Theory of Computational Complexity Probability and Computing Ryosuke Sasanuma Iwama and Ito lab M1.
Probability & Random Variables
Random Variables By: 1.
Evaluating Hypotheses. Outline Empirically evaluating the accuracy of hypotheses is fundamental to machine learning – How well does this estimate accuracy.
ICS 253: Discrete Structures I
3. Random Variables (Fig.3.1)
CHAPTER 2 RANDOM VARIABLES.
Engineering Probability and Statistics - SE-205 -Chap 3
3. Random Variables Let (, F, P) be a probability model for an experiment, and X a function that maps every to a unique point.
M248: Analyzing data Block A UNIT A3 Modeling Variation.
Discrete Random Variables: Basics
Discrete Random Variables: Basics
Experiments, Outcomes, Events and Random Variables: A Revisit
Discrete Random Variables: Basics
Presentation transcript:

Discrete Random Variables

Introduction In previous lectures we established a foundation of the probability theory; we applied the probability theory to some applications; we covered combinatorial problems; we studied Bayesian theorem. In this lecture we will define and describe the random variables; we will give a definition of probability mass function and probability distribution functions; a number of discrete probability mass functions will be given. Properties of probability mass and cumulative functions will be given.

Definition of Discrete Random Variables Sample space of a die is {1,2,3,4,5,6}, because each face of a die has a dot pattern containing 1,2,3,4,5, of 6 dots. This type of experiment is called numerical valued random phenomenon. What if outcomes of an experiment are nonnumerical? The sample space of a coin toss is S = {tail, head}. It is often useful to assign numeric values to such experiments. Example: the total number of heads observed can be found as

Definition of Discrete Random Variables The function that maps S into S X and which is denoted by X(.) is called a random variable. The name random variable is a poor one in that the function X(.) is not random but a known one and usually one of our own choosing. Example: In phase-shift keyed (PSK) digital system a ”0” or “1” is communicated to a receiver by sending A 1 or a 0 occurs with equal probability so we model the choice of a bit as a fair coin tossing experiment. random variable

Definition of Discrete Random Variables Random variable is a function that maps the sample space S into a subset of the real line. S  S X For a discrete random variable this subset is a finite or countable infinite set of points. A discrete random variable may also map multiple elements of the sample space into the same number. One-to-one Many-to-one Example:

Probability of Discrete Random Variables What is the probability P[X(s i ) = x i ] for each ? If X(.) maps each s i into a different x i (or X(.) one-to-one), then because s i and x i are just two different names for the same event If, there multiple outcomes in S that map into the same value x i (X(.) is many-to-one) then s j ’s are simple events in S and are therefore mutually exclusive. The probability mass function (PMF) can be summarized as Random variable (RV) [] discrete RV The PMF is the probability that the RV X takes on the value x i for each possible x i.

Examples Coin toss – one-to-one mapping The experiment consists of a single coin toss with a probability of heads equal to p. The sample space is S = {head, tail} and the RV is The PMF is therefore Die toss – many-to-one mapping The experiment consists of a single fair die toss. With a sample space of S = (1,2,3,4,5,6} and in interest only in whether the outcome is even or odd we define the RV as The event is just the subset of S for which X(s) = x i holds.

Properties Because PMFs p X [x i ] are just new names for the probability P[X(s) =x i ] they must satisfy the usual properties: Property 1: Range values Property 2: Sum of values If S X consists of M outcomes If S X is countably infinite. We will omit the s argument of X to write p X [x i ] = P[X = x i ]. Thus, we probability of event A defined on S X is given by

Example Calculating probabilities based on the PMF Consider a die with sides S = {side1, side2, side3, side4, side5, side6} whose sides have been labeled as with 1,2 or 3 dots. Thus, Assume we are interested in the probability that a 2 or 3 occurs or A = {2,3}, then

Important Probability Mass Functions Bernoulli ~ is distributed according to Binomial p =0.25 M = 10 p =0.25 (M + 1)p max

Important Probability Mass Functions Geometric Poisson p =0.25

Approximation of Binomial PMF by Poisson PMF If in a binomial PMF, M  ∞ as p  0 such that the product λ = Mp remains constant, then bin(M,p)  Pois(λ) and λ represents average number of successes in M Bernoulli trials. In other words, by keeping the average number of successes fixed but assuming more and more trials with smaller and smaller probabilities of success on each trial, leads to a Poisson PMF. M = 10 p =0.5 M = 100 p =0.05

Approximation of Binomial PMF by Poisson PMF We have for the binomial PMF with p = λ/M  0 as M  ∞. For a fixed k, as M ,we have that and. Using L’Hospital’s rule we have and therefore

Transformation of Discrete Random Variable It is frequently of interest to be able to determine the PMF of the new random variable Y = g(X). Consider a die which sides are labeled with the numbers 0,0,1,1,2,2. Then the transformation appears as many-to-one

Examples In general, Example: One-to-one transformation of Bernoulli random variable. If X ~ Ber(p) and Y = 2X – 1, determine the PMF of Y. The sample space S X = {0, 1} and consequently S Y = {-1, 1}. It follows that x 1 = 0 maps into y 1 = -1 and x 2 = 1 maps into y 2 = 1. Thus, Example: Many-to-one transformation Let the transformation be Y = g(X) = X 2 which is defined on the sample space S X = {-1, 0, 1} so that S Y = {0, 1}. Clearly, g(x j ) = x j 2 = 0 only for x j = 0. However, g(x j ) = x j 2 = 1 for x j = -1 and x j = 1. Thus, using (*) we have

Example: Many-to-one transformation of Poisson random variable Consider X ~ Pois(λ) and define the transformation Y = g(X) as To find the PMF for Y we use We need only determine since. Thus, Taylor expansion

Cumulative Distribution Function An alternative means of summarizing the probabilities of a discrete random variable is the cumulative distribution function (CDF). The CDF for a RV X is defined as Note that the value X = x is included in the interval. Example: if X ~ Ber(p), then the PMF and the corresponding CDF are PMFCDF p = 0.25

Example: CDF for geometric random variable Since for k = 1,2,…, we have the CDF Where [x] denotes the largest integer not exceeding x. The PMF can be recovered from CDF by.

Example: CDF for geometric random variable PMF and CDF are equivalent descriptions of the probability and can be used to find the probability of X being in an interval. To determine for geometric RV we have In general, the intervals (a,b] will have different from (a,b), [a, b), and [a,b] probabilities. but

Properties of CDF Property 3. CDF is between 0 and 1 Proof: Since by def. F X (x) = P[X ≤ x] is a probability for all x, it must lie between 0 and 1. Property 4. Limits of CDF as x  -∞ and x  ∞. Proof: since the values that X(s) can take on do not include -∞. Also since the values that X(s) can take on are all included on the real line

Properties of CDF Property 5. A monotonically increasing function g(.) is one in which for every x 1 and x 2 with x 1 ≤ x 2, it follows that g(x 1 ) ≤ g(x 2 ). Proof: Property 6. CDF is right-continuous By right-continuous is meant, that as we approach the point x0 from the right, the limiting value of the CDF should be the value of the CDF at that point (definition) (Axiom 3) (def. and Axiom 1)

Properties of CDF Property 7. Probability of interval found using the CDF Proof: Since a < b and the intervals on the right-hand-side are disjoint, by Axiom 3 Or rearranging the terms we have that

Computer Simulations Assume that X can take on values S X = {1,2,3} with PMF

Computer Simulations u is a random variable whose values are equally likely to fall within the interval (0,1). It is called uniform RV. To estimate the PMF a relative frequency interpretation of probability will yield The CDF is estimated for all x via k = 1,2,3 M = 100

Computer Simulations Note that an inverse CDF is given by so we choose the value of x as shown below.

Exercise 1.Draw a picture depicting a mapping of the outcome of a clock hand that is randomly rotated with discrete steps 1 to Consider a random experiment for which S = {s i : s i = -3, -2, -1, 0, 1, 2, 3} and the outcomes are equally likely. If a random variable is defined as X(s i ) = s i 2, find S x and the PMF.

Exercise 1.If X is a geometric RV with p =0.25, what is the probability that X ≥ 4? 2.Compare the PMFs for Pois(1) and bin(100, 0.01) RVs. 3.Generate realizations of a Pois(1) RV by using a binomial approximation. 4.Find and plot the CDF of Y = - X if X ~ Ber(1/4). pois

Homework problems 1.A horizontal bar of negligible weight is loaded with three weights as shown in Figure. Assuming that the weights are concentrated at their center locations, plot the total mass of the bar starting at the left (where x = 0 meters) to any point on the bar. How does this relate to a PMF and a CDF? 2.Find the PMF if X is a discrete random variable with the CDF

Homework problems 3.Prove that the function g(x) = exp(x) is a monotonically increasing function by showing that g(x 2 ) ≥ g(x 1 ) if x 2 ≥ x 1. 4.Estimate the PMF for a geom(0.25) RV for k=1,2,….,20 using a computer simulation and compare it to the true PMF. Also, estimate the CDF from your computer simulation.