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

Similar documents
5. Continuous Random Variables

Definition: Suppose that two random variables, either continuous or discrete, X and Y have joint density

Random Variables. Chapter 2. Random Variables 1

Notes on Continuous Random Variables

Introduction to Probability

Lecture 6: Discrete & Continuous Probability and Random Variables

Section 5.1 Continuous Random Variables: Introduction

Math 425 (Fall 08) Solutions Midterm 2 November 6, 2008

Example: 1. You have observed that the number of hits to your web site follow a Poisson distribution at a rate of 2 per day.

Math 370/408, Spring 2008 Prof. A.J. Hildebrand. Actuarial Exam Practice Problem Set 3 Solutions

Continuous Random Variables

University of California, Los Angeles Department of Statistics. Random variables

Overview of Monte Carlo Simulation, Probability Review and Introduction to Matlab

Important Probability Distributions OPRE 6301

Probability and Statistics Prof. Dr. Somesh Kumar Department of Mathematics Indian Institute of Technology, Kharagpur

Lecture Notes 1. Brief Review of Basic Probability

Poisson Processes. Chapter Exponential Distribution. The gamma function is defined by. Γ(α) = t α 1 e t dt, α > 0.

For a partition B 1,..., B n, where B i B j = for i. A = (A B 1 ) (A B 2 ),..., (A B n ) and thus. P (A) = P (A B i ) = P (A B i )P (B i )

Summary of Formulas and Concepts. Descriptive Statistics (Ch. 1-4)

Joint Exam 1/P Sample Exam 1

Department of Mathematics, Indian Institute of Technology, Kharagpur Assignment 2-3, Probability and Statistics, March Due:-March 25, 2015.

Exponential Distribution

3. The Economics of Insurance

Lecture 7: Continuous Random Variables

6.041/6.431 Spring 2008 Quiz 2 Wednesday, April 16, 7:30-9:30 PM. SOLUTIONS

Example. A casino offers the following bets (the fairest bets in the casino!) 1 You get $0 (i.e., you can walk away)

ECE 316 Probability Theory and Random Processes

Chapter 3 RANDOM VARIATE GENERATION

UNIT I: RANDOM VARIABLES PART- A -TWO MARKS

PSTAT 120B Probability and Statistics

MATH 10: Elementary Statistics and Probability Chapter 5: Continuous Random Variables

Some special discrete probability distributions

Practice problems for Homework 11 - Point Estimation

( ) = 1 x. ! 2x = 2. The region where that joint density is positive is indicated with dotted lines in the graph below. y = x

Probability density function : An arbitrary continuous random variable X is similarly described by its probability density function f x = f X

Math 370, Actuarial Problemsolving Spring 2008 A.J. Hildebrand. Practice Test, 1/28/2008 (with solutions)

Chapter 4 - Lecture 1 Probability Density Functions and Cumul. Distribution Functions

Math 431 An Introduction to Probability. Final Exam Solutions

STT315 Chapter 4 Random Variables & Probability Distributions KM. Chapter 4.5, 6, 8 Probability Distributions for Continuous Random Variables

CHAPTER 6: Continuous Uniform Distribution: 6.1. Definition: The density function of the continuous random variable X on the interval [A, B] is.

What is Statistics? Lecture 1. Introduction and probability review. Idea of parametric inference

Chapter 4 Lecture Notes

Math 461 Fall 2006 Test 2 Solutions

0 x = 0.30 x = 1.10 x = 3.05 x = 4.15 x = x = 12. f(x) =

Math 370, Spring 2008 Prof. A.J. Hildebrand. Practice Test 2

ECE302 Spring 2006 HW5 Solutions February 21,

( ) is proportional to ( 10 + x)!2. Calculate the

Lecture 3: Continuous distributions, expected value & mean, variance, the normal distribution

MAS108 Probability I

Statistics 100A Homework 7 Solutions

Math 370, Spring 2008 Prof. A.J. Hildebrand. Practice Test 1 Solutions

ST 371 (IV): Discrete Random Variables

Statistics 100A Homework 8 Solutions

VISUALIZATION OF DENSITY FUNCTIONS WITH GEOGEBRA

Math 370, Spring 2008 Prof. A.J. Hildebrand. Practice Test 2 Solutions

Statistics 100A Homework 3 Solutions

An Introduction to Basic Statistics and Probability

Section 6.1 Discrete Random variables Probability Distribution

Generating Random Numbers Variance Reduction Quasi-Monte Carlo. Simulation Methods. Leonid Kogan. MIT, Sloan , Fall 2010

STA 256: Statistics and Probability I

Math 370/408, Spring 2008 Prof. A.J. Hildebrand. Actuarial Exam Practice Problem Set 5 Solutions

WEEK #22: PDFs and CDFs, Measures of Center and Spread

STAT x 0 < x < 1

Math 151. Rumbos Spring Solutions to Assignment #22

4. Continuous Random Variables, the Pareto and Normal Distributions

Manual for SOA Exam MLC.

1. A survey of a group s viewing habits over the last year revealed the following

1.1 Introduction, and Review of Probability Theory Random Variable, Range, Types of Random Variables CDF, PDF, Quantiles...

BNG 202 Biomechanics Lab. Descriptive statistics and probability distributions I

Random variables P(X = 3) = P(X = 3) = 1 8, P(X = 1) = P(X = 1) = 3 8.

Transformations and Expectations of random variables

SOA EXAM MLC & CAS EXAM 3L STUDY SUPPLEMENT

Lecture 5: Mathematical Expectation

MULTIVARIATE PROBABILITY DISTRIBUTIONS

Sums of Independent Random Variables

Homework set 4 - Solutions

Statistics and Random Variables. Math 425 Introduction to Probability Lecture 14. Finite valued Random Variables. Expectation defined

TEST 2 STUDY GUIDE. 1. Consider the data shown below.

Stochastic Processes and Queueing Theory used in Cloud Computer Performance Simulations

FEGYVERNEKI SÁNDOR, PROBABILITY THEORY AND MATHEmATICAL

Math/Stats 342: Solutions to Homework

Measurements of central tendency express whether the numbers tend to be high or low. The most common of these are:

1. Let A, B and C are three events such that P(A) = 0.45, P(B) = 0.30, P(C) = 0.35,

Chapter 3: DISCRETE RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS. Part 3: Discrete Uniform Distribution Binomial Distribution

The Exponential Distribution

UNIVERSITY of TORONTO. Faculty of Arts and Science

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 18. A Brief Introduction to Continuous Probability

CA200 Quantitative Analysis for Business Decisions. File name: CA200_Section_04A_StatisticsIntroduction

Problem sets for BUEC 333 Part 1: Probability and Statistics

Random Variate Generation (Part 3)

7 CONTINUOUS PROBABILITY DISTRIBUTIONS

Manual for SOA Exam MLC.

The problems of first TA class of Math144

The Math. P (x) = 5! = = 120.

16. THE NORMAL APPROXIMATION TO THE BINOMIAL DISTRIBUTION

The Normal Distribution. Alan T. Arnholt Department of Mathematical Sciences Appalachian State University

14.1. Basic Concepts of Integration. Introduction. Prerequisites. Learning Outcomes. Learning Style

Poisson processes (and mixture distributions)

3.4. The Binomial Probability Distribution. Copyright Cengage Learning. All rights reserved.

Lecture 13: Martingales

Transcription:

University of California, Los Angeles Department of Statistics Statistics 1B Instructor: Nicolas Christou Continuous probability distributions Let X be a continuous random variable, < X < f(x) is the so called probability density function (pdf) if f(x)dx = 1 Area under the pdf is equal to 1. How do we compute probabilities? Let X be a continuous r.v. with pdf f(x). Then P (X > a) = f(x)dx P (X < a) = a f(x)dx P (a < X < b) = b f(x)dx a Note that in continuous r.v. the following is true: P (X a) = P (X > a) This is NOT true for discrete r.v. 1

Cumulative distribution function (cdf): Therefore F (x) = P (X x) = x f(x)dx f(x) = F (x) Compute probabilities using cdf: P (a < X < b) = P (X b) P (X a) = F (b) F (a) Example: Let the lifetime X of an electronic component in months be a continuous r.v. with f(x) = 1, x > 1. x 2 a. Find P (X > 2). b. Find the cdf. c. Use the cdf to compute P (X > 2). d. Find the 75 th percentile of the distribution of X. e. Compute the probability that among 6 such electronic components, at least two will survive more than 15 months. 2

Mean of a continuous r.v. µ = E(X) = xf(x)dx Mean of a function of a continuous r.v. E[g(X)] = g(x)f(x)dx Variance of continuous r.v. Or σ 2 = E(X µ) 2 = (x µ)2 f(x)dx σ 2 = x2 f(x)dx [E(X)] 2 Some properties: Let a, b constants and X, Y r.v. E(X + a) = a + E(X) E(X + Y ) = E(X) + E(Y ) var(x + a) = var(x) var(ax + b) = a 2 var(x) If X, Y are independent then var(x + Y ) = var(x) + var(y ) 3

Example: Let X be a continuous r.v. with f(x) = ax + bx 2, and < x < 1. a. If E(X) =.6 find a, b. b. Find var(x). 4

Uniform probability distribution: A continuous r.v. X follows the uniform probability distribution on the interval a, b if its pdf function is given by f(x) = 1 b a, a x b Find cdf of the uniform distribution. Find the mean of the uniform distribution. Find the variance of the uniform distribution. 5

The gamma distribution The gamma distribution is useful in modeling skewed distributions for variables that are not negative. A random variable X is said to have a gamma distribution with parameters α, β if its probability density function is given by f(x) = xα 1 e x β β α Γ(α) E(X) = αβ and σ 2 = αβ 2., α, β >, x. A brief note on the gamma function: The quantity Γ(α) is known as the gamma function and it is equal to: Γ(α) = x α 1 e x dx. If α = 1, Γ(1) = e x dx = 1. With integration by parts we get Γ(α + 1) = αγ(α) as follows: Γ(α + 1) = x α e x dx = Let, v = x α dv dx = αxα 1 du dx = e x u = e x Therefore, Γ(α + 1) = x α e x dx = e x x α e x αx α 1 dx = α x α 1 e x dx. Or, Γ(α + 1) = αγ(a). 6

Similarly, using integration by parts it can be shown that, Γ(α + 2) = (α + 1)Γ(α + 1) = (α + 1)αΓ(α), and, Γ(α + 3) = (α + 2)(α + 1)αΓ(α). Therefore, using this result, when α is an integer we get Γ(α) = (α 1)!. Example: Γ(5) = Γ(4 + 1) = 4 Γ(4) = 4 Γ(3 + 1) = 4 3 Γ(3) = 4 3 Γ(2+1) = 4 3 2 Γ(1+1) = 4 3 2 1 Γ(1) = 4!. Useful result: Γ( 1 2 ) = π. The gamma density for α = 1, 2, 3, 4 and β = 1. Gamma distribution density f(x)..2.4.6.8 1. Γ(α = 1, β = 1) Γ(α = 2, β = 1) Γ(α = 3, β = 1) Γ(α = 4, β = 1) 2 4 6 8 x 7

Exponential probability distribution: Useful for modeling the lifetime of electronic components. A continuous r.v. X follows the exponential probability distribution with parameter λ > if its pdf function is given by f(x) = λe λx, x > Note: From the pdf of the gamma distribution, if we set α = 1 and β = 1 λ we get f(x) = λe λx. We see that the exponential distribution is a special case of the gamma distribution. Find cdf of the exponential distribution. Find the mean of the exponential distribution. Find the variance of the exponential distribution. Find the median of the exponential distribution. Find the p th percentile of the exponential distribution. 8

Example: Let X be an exponential random variable with λ =.2. a. Find the mean of X. b. Find the median of X. c. Find the variance of X. d. Find the 8 th percentile of this distribution (or find c such that P (X < c) =.8). 9

Memoryless property of the exponential distribution: Suppose the lifetime of an electronic component follows the exponential distribution with parameter λ. The memoryless property states that P (X > s + t X > t) = P (X > s), s >, t > Example: Suppose the number of miles a car can run before its battery wears out follows the exponential distribution with mean µ = 1 miles. If the owner of the car takes a 5-mile trip what is the probability that he will be able to complete the trip without having to replace the battery of the car? If the number of miles follow some other distribution with known cumulative distribution function (cdf) give an expression of the probability of completing the trip without having to replace the battery of the car in terms of the cdf. 1

The distribution of a function of a random variables Suppose we know the pdf of a random variable X. Many times we want to find the probability density function (pdf) of a function of the random variable X. Suppose Y = X n. We begin with the cumulative distribution function of Y : F Y (y) = P (Y y) = P (X n y) = P (X y 1 n ). So far we have F Y (y) = F X (y 1 n ) To find the pdf of Y we simply differentiate both sides wrt to y: f Y (y) = 1 n y 1 n 1 f X (y 1 n ). where, f X ( ) is the pdf of X which is given. Here are some more examples. Example 1 Suppose X follows the exponential distribution with λ = 1. If Y = X find the pdf of Y. Example 2 Let X N(, 1). If Y = e X find the pdf of Y. Note: Y it is said to have a log-normal distribution. Example 3 Let X be a continuous random variable with pdf f(x) = 2(1 x), x 1. If Y = 2X 1 find the pdf of Y. Example 4 Let X be a continuous random variable with pdf f(x) = 3 2 x2, 1 x 1. If Y = X 2 find the pdf of Y. 11

Continuous random variables - Some examples (Some are from: Sheldon Ross (22), A first Course in Probability, Sixth Edition, Prentice Hall). Example 1 Suppose X, the lifetime of a certain type of electronic device (in hours), is a continuous random variable with probability density function f(x) = 1 x 2 for x > 1 and f(x) = for x 1. a. Find P (X > 2). b. Find the cumulative distribution function (cdf). c. Find the 75 th percentile of this distribution. d. What is the probabilty that among 6 such types of devices at least 3 will function for at least 15 hours? Example 2 Suppose a bus always arrives at a particular stop between 8: AM and 8:1 AM. Find the probability that the bus will arrive tomorrow between 8: AM and 8:2 AM. Example 3 A parachutist lands at a random point on a line AB. a. Find the probability that he is closer to A than to B. b. Find the probability that his distance to A is more thant 3 times his distance to B. Example 4 Suppose the length of a phone call in minutes follows the exponential distribution with parameter λ =.1. If someone arrives immediately ahead of you at a public telephone booth, find the probability that you will have to wait a. more than 1 minutes. b. between 1 and 2 minutes. Example 5 Let X be an exponential random variable with λ =.2. a. Find the mean of X. b. Find the median of X. c. Find the variance of X. d. Find the 8 th percentile of this distribution (or find c such that P (X < c) =.8). Example 6 The random variable X has probability density function { ax + bx 2 < x < 1 f(x) = otherwise If E(X) =.6 find a. P (X < 1 2 ). b. Var(X). 12

Example 7 For some constant c, the random variable X has probability density function { cx 4 < x < 1 f(x) = otherwise Find a. E(X). b. Var(X). Example 8 To be a winner in the following game, you must be succesful in three succesive rounds. The game depends on the value of X, a uniform random variable on (,1). If X >.1, then you are succesful in round 1; if X >.2, then you are succesful in round 2; if X >.3, then you are succesful in round 3. a. Find the probability that you are succesful in round 1. b. Find the conditional probability that you are succesful in round 2 given that you were succesful in round 1. c. Find the conditional probability that you are succesful in round 3 given that you were succesful in round 2. d. Find the probability that you are a winner. Example 9 There are two types of batteries in a bin. The lifetime of type i battery is an exponential random variable with parameter λ i, i = 1, 2. The probability that a type i battery is chosen from the bin is p i. If a randomly chosen battery is still operating after t hours of use, what is the probability it willl still be operating after an additional s hours? Example 1 You bet $1 on a specified number at a roulette table. A roulette wheel has 38 slots, numbered,, and 1 through 36. Approximate the probability that a. In 1 bets you win more than 28 times. b. In 1 bets you win more than 27 times. 13

Continuous random variables - Some examples Solutions Example 1 We are given that the pdf of X is f(x) = 1 x for x > 1 and f(x) = for x 1. 2 a. P (X > 2) = 2 1 x 2 dx = 1 x 2 = ( 1 2 ) = 1 2. b. The cumulative distribution function (cdf) is defined as F (x) = P (X x). F (x) = P (X x) = x 1 1 u 2 du = 1 u x 1 F (x) = 1 1 x. c. We want to find a value of X (call it p) such that P (X p) =.75. p 1 1 x 2 dx =.75 1 1 x p 1 =.75 1 =.75 p = 4. p Therefore the 75 th percentile is 4, which means P (X 4) =.75. d. We first find the probability that a device willfunction for at least 15 hours: P (X > 15) = 15 1 x 2 dx = 1 x 15 = ( 1 15 ) = 2 3. Now we have n = 6 devices with p = 2 3. We want to find P (X 3), where X represents the number of devices that function for at least 15 hours among the 6 selected. Therefore X b(6, 2 3 ). The answer is: 6 ( ) 6 P (X 3) = ( 2 x 3 )x ( 1 3 )6 x. x=3 Example 2 This is a uniform distribution problem with f(x) = 1 1. We want P ( < X < 2) = 2 1 1 dx = x 1 2 =.2. Example 3 Another uniform distribution problem with f(x) = 1 a, where a is the length of the line AB with B at the origin. a. P ( a 2 < X < a) = a a 2 1 a dx = x a a a = 1 1 2 2 = 1 2. b. P ( < X < a 4 ) = a 4 1 a dx = x a a 4 = 1 4 = 1 4. Example 4 We are given that f(x) =.1e.1x, x. a. P (X > 1) = 1.1e.1x dx = e.1x 1 = e.1(1) = e 1. b. P (< 1 < X > 2) = 2 1.1e.1x dx = e.1x 2 1 = e.1(2) + e.1(1) = e 1 e 2. 14

Example 5 Let X be an exponential random variable with λ =.2. a. µ = 1 λ = 1.2 µ = 5. b. Let m be the median. We want P (X m) =.5. Therefore P (X m) =.5 m.1e.2x dx =.5 e.2x m =.5 m = ln(.5).2 = 3.47. Or faster way, is to use the cdf function: F (m) = 1 e.2m =.5 m = ln(.5).2 = 3.47. The median is 3.47, which means P (X 3.47) =.5. c. µ = 1 λ 2 = 1.2 2 µ = 25. d. Let p be the 8 th percentile. We want P (X p) =.8. Therefore P (X p) =.8 p.1e.2x dx =.8 e.2x p =.8 p = ln(.2).2 = 8.5. Or faster way, is to use the cdf function: F (p) = 1 e.2p =.8 p = ln(.2).2 = 8.5. The 8 th percentile is 8.5, which means P (X 8.5) =.8. Example 6 First we must find the constants a, and b. Since f(x) is a pdf we know that 1 f(x)dx = 1. Therefore 1 (ax + bx2 )dx = 1 [a x2 2 + b x3 3 ] 1 = 1 3a + 2b = 6 (1). We also know that E(X) = 1 xf(x)dx and that E(X) =.6. Therefore 1 x(ax + bx2 )dx =.6 [a x3 3 + b x4 4 ] 1 =.6 4a + 3b = 7.2 (2). Now solving (1) and (2) for a, and b we get a = 3.6 and b = 2.4. The pdf is f(x) = 3.6x 2.4x 2, < x < 1. a. P (X < 1 2 ) = 1 2 (3.6x 2.4x 2 )dx = (3.6 x2 x3 2 2.4 3 ) 1 2 =.35. b. σ 2 = 1 x2 f(x)dx µ 2 = 1 x2 (3.6x 2.4x 2 )dx (.6) 2 = [3.6 x4 x5 4 2.4 5 ] 1 (.6) 2 σ 2 =.6. Example 7 First we must find the constant c. 1 cx4 dx = 1 c x5 5 1 = 1 c = 5. The pdf is f(x) = 5x 4, < x < 1. a. E(X) = 1 x5x4 dx = 5 x6 6 1 E(X) = 5 6. b. V ar(x) = 1 x2 5x 4 dx µ 2 = 5 x7 7 1 ( 5 6 )2 V ar(x) =.198. Example 8 This is a uniform distribution problem with f(x) = 1, < x < 1. a. P (X >.1) = 1.1 dx = x 1.1 =.9. b. P (X >.2/X >.1) = P (X>.2) P (X>.1) =.8.9 = 8 9. c. P [X >.3/(X >.1 X >.2)] = P (X>.3) P (X>.2) =.7.8 = 7 8. d. The probability that you are a winner is the probability that you are a winner in round 1, and winner in round 2, and winner in round 3. This is equal to the product of the 3 probabilities found in parts a,b,c. P (win) = 9 8 7 1 9 8 = 7 1. 15

Example 9 We want P (X > s + t/x > t). This is equal to: P (X > s + t x > t) = P (X > s + t) P (X > t) P (X > s + t X > t) P (X > t) = P (X > s + t)p 1 + P (X > s + t)p 2 P (X > t)p 1 + P (X > t)p 2 Using the exponential cdf we find: P (X > x) = 1 P (X x) = 1 [1 e λx ] = e λx = P (X > s + t/x > t) = e λ1(s+t) p 1 + e λ2(s+t) p 2 e λ1t p 1 + e λ2t p 2. Example 1 Let X be the number of times you win among the n times you play this game. Then X b(n, 1 38 ). a. We want P (X > 28). We will approximate this probability using the normal distribution. We need µ and σ. These are equal to: µ = 1 1 38 = 26.32, and σ2 = 1 1 38 (1 1 38 ) = 25.62 σ = 5.6. Now the desired probability is (we use the continuity correction): P (X > 28) = P (Z > 28.5 26.32 5.6 ) = P (Z >.43) = 1.6664 =.3336. b. We want P (X > 28). Again we will approximate this probability using the normal distribution. We need µ and σ. These are equal to: µ = 1 1 38 = 263.16, and σ2 = 1 1 38 (1 1 38 ) = 256.23 σ = 16.1. Now the desired probability is (we use the continuity correction): P (X > 28) = P (Z > 28.5 263.16 16.1 ) = P (Z > 1.8) = 1.8599 =.141. 16