ELEG 3143 Probability & Stochastic Process Ch. 2 Discrete Random Variables

Similar documents
ELEG 3143 Probability & Stochastic Process Ch. 4 Multiple Random Variables

ELEG 3143 Probability & Stochastic Process Ch. 1 Probability

ELEG 3143 Probability & Stochastic Process Ch. 6 Stochastic Process

Random Variables Example:

Mathematical Statistics 1 Math A 6330

Lecture 3. Discrete Random Variables

Random Variables. Definition: A random variable (r.v.) X on the probability space (Ω, F, P) is a mapping

Discrete Probability Distributions

(Ch 3.4.1, 3.4.2, 4.1, 4.2, 4.3)

(Ch 3.4.1, 3.4.2, 4.1, 4.2, 4.3)

Discrete Random Variable

Probability and Statistics Concepts

Discrete random variables and probability distributions

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

Relationship between probability set function and random variable - 2 -

Basics on Probability. Jingrui He 09/11/2007

Chapter 2: The Random Variable

Suppose that you have three coins. Coin A is fair, coin B shows heads with probability 0.6 and coin C shows heads with probability 0.8.

Binomial and Poisson Probability Distributions

Lecture 2: Repetition of probability theory and statistics

Notice how similar the answers are in i,ii,iii, and iv. Go back and modify your answers so that all the parts look almost identical.

STAT509: Discrete Random Variable

Random Variables. Statistics 110. Summer Copyright c 2006 by Mark E. Irwin

Review of Probability. CS1538: Introduction to Simulations

Bernoulli and Binomial Distributions. Notes. Bernoulli Trials. Bernoulli/Binomial Random Variables Bernoulli and Binomial Distributions.

Conditional Probability

Statistics for Economists. Lectures 3 & 4

Random Variable. Discrete Random Variable. Continuous Random Variable. Discrete Random Variable. Discrete Probability Distribution

Introduction to Probability and Statistics Slides 3 Chapter 3

Chapter 3. Discrete Random Variables and Their Probability Distributions

Introduction and Overview STAT 421, SP Course Instructor

Bernoulli Trials, Binomial and Cumulative Distributions

Probability and Statisitcs

STAT 345 Spring 2018 Homework 4 - Discrete Probability Distributions

Analysis of Engineering and Scientific Data. Semester

What is a random variable

Discrete Probability Distributions

CMPSCI 240: Reasoning Under Uncertainty

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

Chapter 3 Discrete Random Variables

Random variable X is a mapping that maps each outcome s in the sample space to a unique real number x, x. X s. Real Line

Continuous-Valued Probability Review

Stat Lecture 20. Last class we introduced the covariance and correlation between two jointly distributed random variables.

Name: Firas Rassoul-Agha

Part 3: Parametric Models

Lecture On Probability Distributions

Probability Density Functions and the Normal Distribution. Quantitative Understanding in Biology, 1.2

ELEG 3143 Probability & Stochastic Process Ch. 1 Experiments, Models, and Probabilities

Topic 3: The Expectation of a Random Variable

A Probability Primer. A random walk down a probabilistic path leading to some stochastic thoughts on chance events and uncertain outcomes.

random variables T T T T H T H H

Homework 2. Spring 2019 (Due Thursday February 7)

Notes for Math 324, Part 17

p. 4-1 Random Variables

IAM 530 ELEMENTS OF PROBABILITY AND STATISTICS LECTURE 3-RANDOM VARIABLES

Discrete Random Variables

IEOR 3106: Introduction to Operations Research: Stochastic Models. Professor Whitt. SOLUTIONS to Homework Assignment 1

Math 151. Rumbos Fall Solutions to Review Problems for Exam 2. Pr(X = 1) = ) = Pr(X = 2) = Pr(X = 3) = p X. (k) =

Lecture 2. Distributions and Random Variables

1: PROBABILITY REVIEW

Probability, Random Processes and Inference

Chapter 4 : Discrete Random Variables

Lecture 6. Probability events. Definition 1. The sample space, S, of a. probability experiment is the collection of all

EXAM. Exam #1. Math 3342 Summer II, July 21, 2000 ANSWERS

STAT 430/510 Probability Lecture 7: Random Variable and Expectation

Chapter 3. Discrete Random Variables and Their Probability Distributions

Statistics and Econometrics I

Chapter 2: Random Variables

MATH Notebook 5 Fall 2018/2019

Algorithms for Uncertainty Quantification

CMPT 882 Machine Learning

Discrete Distributions

Essentials on the Analysis of Randomized Algorithms

Topic 3 - Discrete distributions

Class 26: review for final exam 18.05, Spring 2014

Eleventh Problem Assignment

3 Multiple Discrete Random Variables

Random variables, Expectation, Mean and Variance. Slides are adapted from STAT414 course at PennState

The random variable 1

Chapter (4) Discrete Probability Distributions Examples

Lecture 08: Poisson and More. Lisa Yan July 13, 2018

Chapter 3: Discrete Random Variable

Fault-Tolerant Computer System Design ECE 60872/CS 590. Topic 2: Discrete Distributions

Chapter 1 Statistical Reasoning Why statistics? Section 1.1 Basics of Probability Theory

Discrete Random Variables

Example 1. Assume that X follows the normal distribution N(2, 2 2 ). Estimate the probabilities: (a) P (X 3); (b) P (X 1); (c) P (1 X 3).

MA 250 Probability and Statistics. Nazar Khan PUCIT Lecture 15

1 Random variables and distributions

Chapter 2: Discrete Distributions. 2.1 Random Variables of the Discrete Type

Chapter 3 Single Random Variables and Probability Distributions (Part 1)

Page Max. Possible Points Total 100

Probability. Lecture Notes. Adolfo J. Rumbos

Example A. Define X = number of heads in ten tosses of a coin. What are the values that X may assume?

Recitation 2: Probability

Lecture 2 Binomial and Poisson Probability Distributions

Northwestern University Department of Electrical Engineering and Computer Science

Things to remember when learning probability distributions:

Chapter 3 Probability Distribution

Week 6, 9/24/12-9/28/12, Notes: Bernoulli, Binomial, Hypergeometric, and Poisson Random Variables

What is Probability? Probability. Sample Spaces and Events. Simple Event

Transcription:

Department of Electrical Engineering University of Arkansas ELEG 3143 Probability & Stochastic Process Ch. 2 Discrete Random Variables Dr. Jingxian Wu wuj@uark.edu

OUTLINE 2 Random Variable Discrete Random Variable Families of Discrete Random Variables Moments

RANDOM VARIABLE 3 Random variable (RV) A function, which assigns a unique numerical value to each possible outcome in the sample space of a random experiment A mapping from the sample space to some real numbers. sample space S real number R

RANDOM VARIABLE 4 Random variable Examples Toss a coin. S = {H, T} Define random variable such that = 1, if the outcome is H = 0, if the outcome is T A mapping from the sample space to some real numbers Event {H} = 1 Event {T} = 0 The value of the random variable,, is random. The actual value of depends on the outcome of the experiment We can assign probability to each value of the random variable Pr( = 1) = Pr({H}) = 0.5 Pr( = 0) = Pr({T}) = 0.5

RANDOM VARIABLE 5 Example Consider an experiment of tossing 2 fair coins. Define the RV, Y, as the number of heads appearing. Find the mapping from the sample space to the value of Y Find the probability of the different values of Y Capital letter is used to represent an RV Small letter is used to represent a deterministic value of an RV.

RANDOM VARIABLE 6 Example Suppose that there is an unfair coin with a probability p of coming up heads. We perform an experiment, in which we flip the coin, until the first head appears. Define an RV, N, as the number of flips required. 1. Find the mapping from the sample space to the RV 2. Find the probability of the RV.

RANDOM VARIABLE 7 Discrete RV v.s. continuous RV Consider a random variable If has countable number values, then is a discrete RV E.g. toss a coin, = 0 if H, = 1 if T E.g. Defined the RV N as the number of flips required to get the head of a coin If has uncountable number of values, then is a continuous RV Example E.g. Define the RV as the current temperature Consider the lifetime of a car Define the RV,, as the lifetime of the car Then is a continuous RV, Define the RV, Y, as follows [ 0, ) If the car has a life longer than 2 years Y = 1 If the car has a life shorter than 2 years Y = 0 Then Y is a discrete RV, Y {0,1}

OUTLINE 8 Random Variable Discrete Random Variable Families of Discrete Random Variables Moments

DISCRETE RV 9 Discrete RV A random variable that can take at most a countable number of possible values. Probability mass function (PMF) Consider a discrete RV, which can take any one of the following values: The probability mass function of is defined as Example p ( ai ) Pr( ai ) Flip an unfair coin with the probability p of coming up head. Define an RV, such that H = 1; T = 0. What is the PMF?

DISCRETE RV 10 Example Consider an urn with 3 black balls, 5 red balls, and 8 white balls. Randomly pick 1 ball. Define an RV as: black ball = 1, red ball = 2, white ball = 3 Find the PMF.

DISCRETE RV 11 PMF For an RV, since must take one of the values of a n i1 p ( a i ) Pr( i1 a i ) 1

DISCRETE RV 12 Cumulative distribution function (CDF) All called distribution function The probability that the RV,, is less than or equal to a deterministic number, x capital letter : Random variable (has random values) Small letter x: deterministic variable (has fixed value) E.g. F F ( x) Pr( x) ( 3) Pr( 3)

DISCRETE RV 13 Example Flip an unfair coin with the probability p of coming up head. Define an RV, such that H = 1; T = 0. What is the CDF?

DISCRETE RV 14 Example Suppose has a PMF given by 1 1 p ( 1) p ( 2) 2 3 Find and plot the CDF. 3) ( p 1 6

DISCRETE RV 15 Properties of CDF 0 ( x) 1 F F ( ) 0 F ( ) 1 F (x) is a non-decreasing function of x Pr( x1 x2) F ( x2) F ( x1) Pr( x) 1 F ( x)

OUTLINE 16 Random Variable Discrete Random Variable Families of Discrete Random Variables Moments

DISCRETE RV 17 Bernoulli RV Consider an experiment, whose outcome can be classified as either a success or as a failure. The probability of success is p. Define an RV such that Success = 1 Failure = 0. Then is called a Bernoulli RV The PMF Pr( 1) p Pr( 0) 1 p The CDF Recall Bernoulli trials Perform the experiment independently for N times

DISCRETE RV 18 Binomial RV Perform n independent trials, each of which results in a success with probability p. Define the RV Y as the total number of successes that occur in the n trials. Then Y is a binomial RV. PMF p Y ( k) Pr( Y k) n p k k (1 p) nk The summation of PMF n k 0 p Y ( k)

DISCRETE RV 19 Relationship between Bernoulli RV and Binomial RV Consider an experiment, whose outcome can be classified as either a success or as a failure. The probability of success is p. The Bernoulli RV,, is defined as Success = 1 Failure = 0. ~ Bernoulli( p) Perform n independent trials, each of which results in a success with probability p. Define the RV Y as the total number of successes that occur in the n trials. Then Y is a binomial RV. Each trial results in a Bernoulli RV i ~ Bernoulli( p) Y ~ Binomial( n, p) The relationship between the Bernoulli RV, and the Binomial RV Y i i Y n i1 i

DISCRETE RV 20 Example It is known that any item produced by a certain machine will be defective with probability 0.1, independently of any other item. What is the probability that in a sample of 3 items, at most one will be defective?

DISCRETE RV 21 Binomial RV On a multiple-choice exam with 4 possible answers for each of the 5 questions. What is the probability that a student would get 4 or more correct answers just by guessing?

DISCRETE RV 22 Geometric RV Suppose that independent trials, each having probability p of being success. The experiment is performed until a success occurs. Define as the number of trials required until the first success. Then is said to be a geometric RV. PMF p ( k) Pr( k) (1 p k ) 1 p The sum of Geometric PMF k 1 Pr( k)

DISCRETE RV 23 Poisson RV A random variable, taking on the values 0, 1, 2,, is said to be a Poisson random variable with parameter > 0, if the PMF can be written as P( k) e k k! Sum of Poisson PMF k e k 0 k! e k 0 k! k

DISCRETE RV 24 Example If the number of accidents occurring on a highway each day is a Poisson RV with parameter 0.1. What is the probability that at least 1 accident occur today?

DISCRETE RV: SUMMARY 25 Bernoulli RV P( 1) p P( 0) 1 p Binomial RV Geometric RV P( n k k nk k) p (1 p) P( k) (1 p) k1 p Poisson RV P( k) e k k!

OUTLINE 26 Random Variable Discrete Random Variable Families of Discrete Random Variables Moments

MOMENTS 27 The expected value, or mean, of a discrete RV,, is The summation is performed over all the possible values of. Also called as: expected value, mean, average, first moment Interpretation The weighted average of the random variable If the random variable takes all the values with equal probability, that is,, then Given more weight to more probable values, and vice versa Also denoted as E ( ) xi p ( xi ) x i 1 E( ) N N x i i1 E( ) m

MOMENTS 28 Example Consider an unfair coin with Pr(H) = 0.3. Define the RV, such that = 0 if H, and = 1 if T. Find the mean of. (Bernoulli RV) Find the mean of a geometric RV with parameter p.

MOMENTS 29 Example Find the mean of a binomial RV with parameters n, k, and p

MOMENTS 30 Example Find the mean of the Poisson RV with the parameter

MOMENTS 31 Expected value of any function of E(): the expectation operator The variable of the expectation operator must be a random variable is an RV g() is an RV E [ g( )] g( xi ) p ( xi ) x i Also denoted as E[ g( )] g( )

MOMENTS 32 Example Consider a gambling game of throwing 3 fair coins. Let be the RV denoting the number of heads. The payoff is, e.g. the Casino pays $0 for 0 H, $1 for 1H, $4 for 2H, and $9 for 3H. If the Casino charges $3.5 per play, will you play the game? 2

MOMENTS 33 The expectation operator is a linear operator Consider two random variables and Y and two constants a and b, we have Proof:

MOMENTS 34 Variance The variance of a discrete RV is 2 Var( ) E 2 2 ( m ) ( x m ) p ( x ) x i i i Also called: the 2 nd central moment of Standard deviation: Physical interpretation How far away the random variable is from its expected value A larger variance more uncertainty Zero-variance the RV is deterministic (no randomness)

MOMENTS 35 Example Consider a discrete RV with PMF Find the mean and variance.

MOMENTS 36 Properties of variance

MOMENTS 37 Example Find the variance of the Bernoulli RV Consider a deterministic variable x = 3. What is the mean and variance?

MOMENTS 38 The n-th moment of the random variable 1 st moment: E[ ] mean 2 nd 2 moment: E[ ] n n E [ ] xi p ( xi ) x i The n-th central moment of the random variable 1 st central moment: n n E [( m ) ] ( x m ) p ( x ) E 2 nd central moment: E 2 variance x i [ i The combination of all the moments, n = 1, 2,., gives a complete description of the random variable m ] 2 m i