Expected Values, Exponential and Gamma Distributions

Similar documents
Expected Values, Exponential and Gamma Distributions

Exponential, Gamma and Normal Distribuions

Gamma and Normal Distribuions

The Normal Distribuions

The exponential distribution and the Poisson process

Chapter 4 Continuous Random Variables and Probability Distributions

Bernoulli Trials and Binomial Distribution

Exponential Distribution and Poisson Process

Continuous random variables

Bernoulli Trials, Binomial and Cumulative Distributions

CIVL Continuous Distributions

STAT 430/510 Probability Lecture 12: Central Limit Theorem and Exponential Distribution

Math438 Actuarial Probability

Moments. Raw moment: February 25, 2014 Normalized / Standardized moment:

2 Continuous Random Variables and their Distributions

Basics of Stochastic Modeling: Part II

Continuous distributions

Density Curves & Normal Distributions

STAT509: Continuous Random Variable

STAT Chapter 5 Continuous Distributions

Standard Normal Calculations

Chapter 3 sections. SKIP: 3.10 Markov Chains. SKIP: pages Chapter 3 - continued

Continuous Random Variables and Continuous Distributions

Chapter 4: Continuous Random Variable

Test 1 Review. Review. Cathy Poliak, Ph.D. Office in Fleming 11c (Department Reveiw of Mathematics University of Houston Exam 1)

Slides 8: Statistical Models in Simulation

Chapter 4: Continuous Probability Distributions

Exponential & Gamma Distributions

3 Continuous Random Variables

1. I had a computer generate the following 19 numbers between 0-1. Were these numbers randomly selected?

Chapter 3 sections. SKIP: 3.10 Markov Chains. SKIP: pages Chapter 3 - continued

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models

Experimental Design and Statistics - AGA47A

Guidelines for Solving Probability Problems

Probability Density Functions

1. Poisson Distribution

Common ontinuous random variables

Inverse Normal Distribution and Sampling Distributions

Some Continuous Probability Distributions: Part I. Continuous Uniform distribution Normal Distribution. Exponential Distribution

Let X be a continuous random variable, < X < f(x) is the so called probability density function (pdf) if

HW7 Solutions. f(x) = 0 otherwise. 0 otherwise. The density function looks like this: = 20 if x [10, 90) if x [90, 100]

Hypergeometric, Poisson & Joint Distributions

Least Squares Regression

Chapter 4. Continuous Random Variables

Notes on Continuous Random Variables

Continuous random variables

CPSC 531: System Modeling and Simulation. Carey Williamson Department of Computer Science University of Calgary Fall 2017

Math 3339 Homework 6 (Sections )

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

Introduction to Statistical Data Analysis Lecture 3: Probability Distributions

S n = x + X 1 + X X n.

Bernoulli Trials and Binomial Distribution

Inference for Proportions, Variance and Standard Deviation

STAT515, Review Worksheet for Midterm 2 Spring 2019

MAS1302 Computational Probability and Statistics

Continuous Distributions

Name of the Student:

CIVL 7012/8012. Continuous Distributions

CS 237: Probability in Computing

Northwestern University Department of Electrical Engineering and Computer Science

Continuous Probability Distributions. Uniform Distribution

Chapter 8: Continuous Probability Distributions

Continuous Random Variables. and Probability Distributions. Continuous Random Variables and Probability Distributions ( ) ( ) Chapter 4 4.

Brief Review of Probability

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 8 10/1/2008 CONTINUOUS RANDOM VARIABLES

Chapter 1: Revie of Calculus and Probability

Chapter 4: Continuous Random Variables and Probability Distributions

Lecture 4a: Continuous-Time Markov Chain Models

Outline PMF, CDF and PDF Mean, Variance and Percentiles Some Common Distributions. Week 5 Random Variables and Their Distributions

Examples of random experiment (a) Random experiment BASIC EXPERIMENT

Fundamental Tools - Probability Theory II

Lecture 20. Poisson Processes. Text: A Course in Probability by Weiss STAT 225 Introduction to Probability Models March 26, 2014

Probability Distributions for Continuous Variables. Probability Distributions for Continuous Variables

Random Variables. Saravanan Vijayakumaran Department of Electrical Engineering Indian Institute of Technology Bombay

Confidence Intervals for Two Means

Expectation, Variance and Standard Deviation for Continuous Random Variables Class 6, Jeremy Orloff and Jonathan Bloom

Probability Methods in Civil Engineering Prof. Dr. Rajib Maity Department of Civil Engineering Indian Institute of Technology, Kharagpur

Random variables. DS GA 1002 Probability and Statistics for Data Science.

EE 345 MIDTERM 2 Fall 2018 (Time: 1 hour 15 minutes) Total of 100 points

Random Variables and Their Distributions

Continuous Random Variables

Definition: A random variable X is a real valued function that maps a sample space S into the space of real numbers R. X : S R

Chapter 4. Continuous Random Variables 4.1 PDF

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

CSE 312, 2017 Winter, W.L. Ruzzo. 7. continuous random variables

Chapter Learning Objectives. Probability Distributions and Probability Density Functions. Continuous Random Variables

Probability Review. Yutian Li. January 18, Stanford University. Yutian Li (Stanford University) Probability Review January 18, / 27

ISyE 2030 Practice Test 1

Probability and Statistics Concepts

Continuous random variables and probability distributions

Continuous Random Variables. and Probability Distributions. Continuous Random Variables and Probability Distributions ( ) ( )

Poisson population distribution X P(

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

Chapter 3. Chapter 3 sections

Chapter 2. Continuous random variables

STAT 231 Homework 5 Solutions

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

Chapter 5. Statistical Models in Simulations 5.1. Prof. Dr. Mesut Güneş Ch. 5 Statistical Models in Simulations

Queueing Theory and Simulation. Introduction

1 Probability and Random Variables

Transcription:

Expected Values, Exponential and Gamma Distributions Sections 5.2 & 5.4 Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Department of Mathematics University of Houston Lecture 13-3339 Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sections (Department 5.2 & 5.4of Mathematics University of Lecture Houston 13 ) - 3339 1 / 35

Outline 1 Expected Values 2 Exponential Distribution 3 Gamma Distribution Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sections (Department 5.2 & 5.4of Mathematics University of Lecture Houston 13 ) - 3339 2 / 35

Popper Set Up Fill in all of the proper bubbles. Make sure your ID number is correct. Make sure the filled in circles are very dark. This is popper number 09. Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sections (Department 5.2 & 5.4of Mathematics University of Lecture Houston 13 ) - 3339 3 / 35

Definition of a Density Function A density function is a nonnegative function f defined of the set of real numbers such that: f (x)dx = 1. If f is a density function, then its integral F(x) = x f (u)du is a continuous cumulative distribution function (cdf), that is P(X x) = F(x). If X is a random variable with this density function, then for any two real numbers, a and b P(a X b) = b a f (x)dx. Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sections (Department 5.2 & 5.4of Mathematics University of Lecture Houston 13 ) - 3339 4 / 35

Cumulative Distribution Function Properties Any cummulative distribution function F has the following properties: 1. F is a nondecreasing function defined on the set of all real numbers. 2. F is right-continuous. That is, for each a, F(a) = F(a+) = lim x a+ F(x). 3. lim x F(x) = 0; lim x + F(X) = 1. 4. P(a < X b) = F x (b) F x (a) for all real a and b, a < b. 5. P(X > a) = 1 F x (a). 6. P(X < b) = F x (b ) = lim x b F x (x). 7. P(a < X < b) = F x (b ) F x (a). 8. P(X = b) = F x (b) F x (b ). Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sections (Department 5.2 & 5.4of Mathematics University of Lecture Houston 13 ) - 3339 5 / 35

Determine the cdf of a Uniform Distribution Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sections (Department 5.2 & 5.4of Mathematics University of Lecture Houston 13 ) - 3339 6 / 35

Cumulative Density Function Cumultative Density Curve for Elevator Waiting Times Cumulative Densities 0.0 0.2 0.4 0.6 0.8 1.0 0 1 2 3 4 5 Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sections (Department 5.2 & 5.4of Mathematics University of Lecture Houston 13 ) - 3339 7 / 35

Using the cdf F (X) to Compute Probabilities Let X be a continuous random variable with pdf f (x) and cdf F(x). Then for any number a, P(X > a) = 1 F(a) and for any two numbers a and b with a < b, P(a X b) = F (b) F(a) Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sections (Department 5.2 & 5.4of Mathematics University of Lecture Houston 13 ) - 3339 8 / 35

Example Suppose we have a cdf; 0, x 1 F(x) = x 3 +1 9, 1 x < 2 1, x 2. 1. Determine P(X 0) 2. Determine P(0 < X 1) 3. Determine P(X 0.5) Cathy Poliak, Ph.D. cathy@math.uh.edu Office in Fleming 11c Sections (Department 5.2 & 5.4of Mathematics University of Lecture Houston 13 ) - 3339 9 / 35

Example Suppose we have a pdf of f (x) = { 3 8 x 2 0 X k 0 otherwise a) Determine k. b) Give the cdf of this distribution. c) Determine x 0 such that P(X x 0 ) = 0.125-3339 10 / 35

- 3339 11 / 35

Popper 09 Questions (You Try Online) The cdf for X = measurement error is 0 ( ) x < 2 1 F(x) = 2 + 3 32 4x x 3 3 2 x < 2 1 2 x 1. Compute P(X < 0). a) 0.125 b) 0.5 c) 0 d) 0.875 2. Compute P( 1 < X < 1) a) 0.6875 b) 0.3215 c) 0 d) 1 3. Compute P(X > 0.5) a) 0.6836 b) 0 c) 0.3164 d) 0.8045-3339 12 / 35

Going from CDF to PDF The cdf for X = measurement error is 0 ( ) x < 2 1 F(x) = 2 + 3 32 4x x 3 3 2 x < 2 1 2 x Determine the PDF f (x). - 3339 13 / 35

Quantiles Let F be a given cumulative distribution and let p be any real number between 0 and 1. The (100p)th percentile of the distribution of a continuous random variable X is defined as F 1 (p) = min{x F (x) p}. For continuous distributions, F 1 (p) is the smallest number x such that F(x) = p. - 3339 14 / 35

Determine the Percentiles Given a cdf, 1. Determine the 90 th percentile. 0 X < 0 F(x) = 1 8 x 3 0 X 2 1 X > 2 2. Determine the 50 th percentile. 3. Find the value of c such that P(X c) = 0.75. - 3339 15 / 35

Expected Values for Continuous Random Variables The expected or mean value of a continuous random variable X with pdf f (x) is E(X) = xf (x)dx. More generally, if h is a function defined on the range of X, E(h(X)) = h(x)f (x)dx. - 3339 16 / 35

Example The following is a pdf of X, f (x) = { 3 2 (1 x 2 ) 0 X 1 0 otherwise 1. Determine E(X). 2. Determine E(X 2 ) - 3339 17 / 35

Mean and Variance of the Uniform Distribution Let X Unif(a, b) E(X) = a+b 2 Var(X) = (b a)2 12-3339 18 / 35

- 3339 19 / 35

- 3339 20 / 35

Example From Quiz 7 Let X be the amount of time (in hours) the wait is to get a table at a restaurant. Suppose the cdf is represented by 0 x < 0 F(X) = x 2 9 0 x 3 1 x > 3 Use the cdf to determine E[X]. - 3339 21 / 35

The Exponential Distribution X is said to have an exponential distribution with parameter λ (lambda > 0) if the pdf of X is: { λe λx x 0 f (x) = 0 otherwise Where λ is a rate parameter, we write X Exp(λ). The cdf of a exponential random variable is: { 0 x < 0 F(x) = 1 e λx x 0 The mean of the exponential distribution is µ x = E(X) = 1 λ the standard deviation is also 1 λ. - 3339 22 / 35

Exponential Density Curves Exponential Density Curves 0.0 0.5 1.0 1.5 2.0 lambda = 0.5 lambda = 1 lambda = 2 0 2 4 6 8 10-3339 23 / 35

Exponential Distribution Related to the Poisson Distribution The exponential distribution is frequently used as a model for the distribution of times between the occurrence of successive events until the first arrival. Suppose that the number of events occurring in any time of length t has a Poisson distribution with parameter αt. Where α, the rate of the event process, is the expected number of events occurring in 1 unit of time. The number of occurrences are in non overlapping intervals and are independent of one another. Then the distribution of elapsed time between the occurrence of two successive events is exponential with parameter λ = α. - 3339 24 / 35

Example Suppose you usually get 3 phone calls per hour. 3 phone calls per hour means that we would expect one phone call every 1 3 hour so λ = 1 3. Compute the probability that a phone call will arrive within the next hour. - 3339 25 / 35

R code > pexp(1,1/3) [1] 0.2834687 To find the probability of an exponetial distribution in R: pexp(x,λ). To find the percentile (quantile) in R: qexp(x,λ). - 3339 26 / 35

Examples Applications of the exponential distribution occurs naturally when describing the waiting time in a homogeneous Poisson process. It can be used in a range of disciplines including queuing theory, physics, reliability theory, and hydrology. Examples of events that may be modeled by exponential distribution include: The time until a radioactive particle decays The time between clicks of a Geiger counter The time until default on payment to company debt holders The distance between roadkills on a given road The distance between mutations on a DNA strand The time it takes for a bank teller to serve a customer The height of various molecules in a gas at a fixed temperature and pressure in a uniform gravitational field The monthly and annual maximum values of daily rainfall and river discharge volumes - 3339 27 / 35

Example from Quiz 7 1. Suppose the time a child spends waiting at for the bus as a school bus stop is exponentially distributed with mean 6 minutes. Determine the probability that the child must wait at least 9 minutes on the bus on a given morning. 2. Suppose the time a child spends waiting at for the bus as a school bus stop is exponentially distributed with mean 4 minutes. Determine the probability that the child must wait between 3 and 6 minutes on the bus on a given morning. - 3339 28 / 35

The "Memoryless" Property Another application of the exponential distribution is to model the distribution of component lifetime. Suppose component lifetime is exponentially distributed with parameter λ. After putting the component into service, we leave for a period of t 0 hours and then return to find the components still working; what now is the probability that it last at least an addition t hours? We want to find P(X t + t 0 X t 0 ) - 3339 29 / 35