Download presentation
Presentation is loading. Please wait.
Published byEric Owens Modified over 6 years ago
1
4. Continuous Random Variables and Probability Distributions
2
4.1 Continuous random variables and probability density functions
DEFINTION: A random variable X is said to be continuous if its set of possible values is an entire interval of numbers--that is, if for some A<B, any number X between A and B is possible.
3
Example 4.1: If in the study of the ecology of a lake ,we make depth measurements at randomly chosen location, then X=the depth at such a location is a continuous rv. Here A is the minimum depth in the region being sampled, and B is the maximum depth. If the measurement scale of X can be subdivided to any extent desired, then variable is continuous ; if it cannot, the variable is discrete.
4
Probability Distributions for Continuous Variables
Suppose the variable X of interest is depth of a lake at a randomly chosen point on the surface, let M=the maximum depth, so that any number in the interval [0,M] is a possible value of X. If we “discretize” X by measuring depth to the nearest meter ,then possible value are nonnegative less than or equal to M. the resulting discrete distribution of depth can be pictured using a probability histogram ,
5
if we draw the histogram so that the area of the rectangle above any possible integer k is the proportion of lake whose depth is k, then the total area of all rectangles is 1. A possible histogram appears in Figure 4.1(a). 4.1(a)
6
If depth is measured to the nearest centimeter and the same measurement axis as in Figure 4.1(a) is used ,each rectangle in the resulting probability histogram is much narrower ,though the total area of all rectangles is still 1. A possible histogram is pictured in Figure 4.1(b); 4.1(b)
7
if we continue in this way to measure depth more and more finely ,the resulting sequence of histograms approaches a smooth curve, such as pictured in Figure 4.1(c). 4.1(c)
8
Between a and b is just the area under the smooth curve between a and b . It is exactly a smooth curve of type pictured in Figure 4.1(c)that specifies a continuous probability distribution.
9
DEFINITION: let X be a continuous rv
DEFINITION: let X be a continuous rv. Then a probability distribution or probability density function of X is f(x) such that for any two numbers a and b with , That is ,the probability that X take on a value in the interval [a,b] is the area under the graph of the density function, as illustrated in Figure 4.2. The graph of f(x) is often referred to as the density curve. a b f(x) x Figure 4.2
10
a b f(x) x Figure 4.2 For f(x) to be a legitimate pdf, it must satisfy the following two conditions:
11
the probability that I wait between 1 and 3 minutes is
Example 4.3 Suppose take a bus to work , and that every 5 minutes a bus arrives at my stop. Because of variation in the time that I leave my house , I don’t always arrive at the bus stop at the same time, so my waiting time X for the next bus is a continuous rv. The set of possible values of X is the interval [0,5]. One possible pdf for X is the probability that I wait between 1 and 3 minutes is
12
Figure 4.3 the pdf of Example 4.3
5 x f(x) 0.2 f(x) 0.2 x 1 3 Figure 4.3 the pdf of Example 4.3 Similarly , The probability that I wait at least 4 minutes is
13
depends only on the length b-a of the interval ,
Because whenever in Example 4.3 depends only on the length b-a of the interval , X is said to have a uniform distribution.
14
DEFINITION:A continuous rv X is said to have a uniform distribution on the interval [A,B] if the pdf of X is PROPOSITION: If X is a continuous rv, then for any number c, furthermore, for any two numbers a and b with a<b,
15
EXAMPLE 4.4: “Time headway” in traffic flow is the elapsed time between the time that one car finishes passing a fixed point and the instant that the next car begins to pass that point. Let X=the time headway for two randomly chosen consecutive cars on a freeway during a period of heavy flow. The following pdf of X is essentially the one suggested in “The Statistical Properties of Freeway Traffic” 2 4 6 8 10 x f(x) .15 .5 Figure 4.4
16
The graph of f(x) is given in figure 4
The graph of f(x) is given in figure 4.4; there is no density associated with headway time less than .5, and headway density decreases rapidly (exponentially fast) as x increases from .5.Clearly , ;to show that , we use the calculus result Then
17
The probability that headwawy time is at most 5 sec is
18
4.2 Cumulative Distribution Functions and Expected Values
The Cumulative Distribution Function DEFINITION: The cumulative distribution function F(x) for a continuous rv X is defined for every number x by for each x, F(x) is the area under the density curve to the left of x. This is illustrated in Figure 4.5 ,where F(x) increases smoothly as x increases .
19
Figure 4.5 A pdf and associated cdf
10 F(x) 8 F(8) .5 x 5 10 x f(x) 8 F(8) Figure 4.5 A pdf and associated cdf
20
Figure 4.6 The pdf for a uniform distribution
Example 4.5 : Let X have a uniform distribution on [A,B] . The density function is show in Figure For x<A , F(x)=0 , since there is no area under the graph of the density function to the left of such an x . A B f(x) x A B f(x) x Figure 4.6 The pdf for a uniform distribution Finally , for ,
21
Figure 4.7 The cdf for a uniform distribution
The entire cdf is the graph of this cdf appears in Figure 4.7. F(x) 1 A x B Figure 4.7 The cdf for a uniform distribution
22
Example 4 If the density function of continuous variable X is
Determine parameter A (b) Determine the probability of P(0≤X≤1) (c) Determine the distribution function F(x) Solution: (a) (b)
23
(c) So, the probability distribution function is
24
Using F(x) to Compute Probabilities
PROPOSITION: Let X be a continuous rv with cdf F(x) . Then for any number a , and for any two numbers a and b with a<b , Figure 4.8 illustrates the second part of this proposition; a b f(x) = - Figure 4.8
25
Obtaining f(x) from F(x)
PROPOSITION: if X is a continuous rv with pdf f(x) and cdf F(x) ,then at every x at which the derivative F’(x) exists , F’(x)=f(x) .
26
Percentiles of a Continuous Distribution
DEFINITION : Let p be a number between 0 and 1 . The (100p)th percentile of the distribution of a continuous rv X , denoted by , is defined by f(x) F(x) 1
27
Example : The distribution of the amount of gravel (in tons ) sold by a particular supply company in a given week is a continuous rv X with pdf The cdf of sales is then , for 0<x<1
28
The graphs of both f(x) and F(x) appear in figure 4. 11
The graphs of both f(x) and F(x) appear in figure The (100p)th percentile of the distribution satisfies the equation that is x F(x) 1 .5 .347 f(x) 2 1 x
29
DEFINITION: The median of a continuous distribution , denoted by , is the 50th percentile , so satisfies That is ,half the area under the density curve is to the left of and half is to the right of .
30
Expected values for Continuous Random Variables
DEFINTION : The expected or mean value of continuous rv X with pdf f(x) is PROPOSITION: If X is a continuous rv with pdf f(x) and h(X) is any function of X , then
31
Example 4.10 Two species are competing in a region for control of a limited amount of a certain resource . Let X=the proportion of the resource controlled by species 1 and suppose X has pdf which is a uniform distribution on [0,1]. Then the species that controls the controls the majority of this resource controls the amount
32
The expected amount controlled by the species having majority control is then
33
Example : In a bus station, there is a bus starting off at 10th minute, 30th minute, 50th minute in every hour. One customer does not know the time of the bus starting off, so he arrived the station at any random time. Please calculate the expectation of his waiting time. Solution: let X denote the arriving time, Y denote the waiting time. Then X has a uniform distribution in [0,60].Its density function is
34
Y is function of X, namely Y=g(X)
Other method: let Y denote the waiting time ,then Y has a uniform distribution in [0,20].Then
35
The Variance Of Continuous Random Variables
Definition: the variance of a continuous random variable X with pdf f(x) and mean value is The standard deviation (SD) of X is
36
Proposition : Example : P156
37
4.3 The Normal Distribution
38
DEFINITION:A continuous rv X is said to have a normal distribution with parameters and , where and , if the pdf of X is
39
The left portion of the curve is the mirror image of the right portion
where is the mean and is called the location paramter, is the standard deviation and is called the scale parameter. Hence denote X ~ N ( , ). Symmetric The left portion of the curve is the mirror image of the right portion Bell-shaped The density in two ends of the distribution function is low. It increases towards the middle of the distribution function and reaches the peak at the median.
40
The standard normal distribution
DEFINITION: The normal distribution with parameter values and is called a standard normal distribution . A random variable that has a standard normal distribution is called a standard normal random variable and will be denoted by Z. The pdf of Z is The cdf of Z is , which we will denote by
41
Standard normal (z) curve
Standard normal (z) curve Shaded area=
42
Figure 4.15 Normal curve areas for examples
Example 4.12 Compute the follow probabilities : (a) (b) (c) a ,a probability that is tabulated in Appendix Table A.3 at the intersection of the row marked 1.2 and the column marked .05. The number there is ,so See Figure 4.15(a). 1.25 z curve Shaded area= (a) 1.25 (b) z curve Figure 4.15 Normal curve areas for examples
43
b See Figure 4.15(b) . c ,a lower-tail area . Appendix Table A.3, ,By symmetry of the normal curve , this is the same answer as in part (b) . d Is the area under the standard normal curve above the interval whose left endpoint is -.38 and whose right endpoint is From section 4.2 , if X is a continuous rv with cdf F(x) , then This gives 1.25 -.38 = -
44
Percentiles of the Standard Normal Distribution
Example 4.13 The 99th percentile of the standard normal distribution is that values is The 99th percentile is (approximately) z=2.33. (see Figure 4.17.) By symmetry , the first percentile is the negative of 99th percentile , so equals -2.33(see Figure 4.18)
45
Figure 4.17 finding the 99th percentile
z curve 2.33=99th percentile -2.33=1th percentile Shaded area=.9900 z curve 99th percentile Shared area =.01 Figure 4.17 finding the 99th percentile Figure 4.18 The relationship between the 1st and 99th percentiles
46
Notation Notation: will denote the values on the measurement axis for which of the area under the z curve lies to the right of (See Figure 4.19) z curve Shaded area = Figure 4.19
47
Table 4.1 lists the most useful standard normal percentiles and values .
(tail area)
48
Nonstandard normal distributions
PROPOSITION: If X has a normal distribution with mean and standard deviation , then has a standard normal distribution . Thus
50
The key idea of the proposition is that by standardizing , any probability involving X can be expressed as a probability involving a standard normal rv Z , so that Appendix Table A.3 can be used. This is illustrated in Figure The proposition can be proved by writing the cdf of
51
x = Figure 4.21
52
Example 4.15 The time that it take a drive to react to the brake lights on a decelerating vehicle is critical in helping to avoid rear-end collisions . The article “ Fast-Rise Brake Lamp as a Collision-Prevention Device” (Ergonomic , 1993: ) suggests that reaction time for an in-traffic response to a brake signal from standard brake lights can be modeled with a normal distribution having mean value 1.25 sec and standard deviation of .16 sec . What is the probability that reaction time is between 1.00 sec and 1.75 sec? If we let X denote reaction time , then standardizing gives if and only if
53
1.25 1.00 1.75 -.54 1.09 Figure 4.22
54
If we view 2 sec as a critically long reaction time , the probability that actual reaction time will exceed this value is
55
Example 4.16 The breakdown voltage of a randomly chosen diode(二极管) of a particular type is known to be normally distributed . What is the probability that a diode’s breakdown voltage is within 1 standard deviation of its mean value ? This question can be answered without knowing either or , as long as the distribution is known to be normal ; in other words , the answer is the same for any normal distribution :
56
Percentiles Of An Arbitrary Normal Distribution
PROPOSITION:
57
蒸馏水 Example 4.17 The amount of distilled water dispensed by a certain machine is normally distributed with mean value 64 oz and standard deviation .78 oz . What container size c will ensure that overflow occurs only .5% of the time? If X denotes the amount dispensed , the desired condition is that P(X>c)=.005 , or , equivalently ,that P(X<=c)=.995. Thus c is the 99.5th percentile of the normal distribution with and . The 99.5th percentile of the standard normal distribution is 2.58 , so
58
Shaded area=.995 C=99.5th percentile=66.0 125 Figure 4.23 Figure 4.24
59
The Exponential Distribution
DEFINITION: X is said to have an exponential if the pdf of X is In particular, the cdf of X is
60
x 2 1 .5 Figure 4.27
61
The component has lasted a length of time s , and we wish to calculate the probability that it will last at least t more time units; this is ,we wish to find P(T>t+s|T >s): We see that the probability that unit will last t more time units does not depend on s . The exponential distribution is consequently said to be memoryless.
62
Expected values for The Exponential Distribution
63
Solution: the density function of X is
X~N(0,1) Example: Suppose X has standard normal distribution, determine the density function of Y, when Y is Y=eX, (2)Y=2X2+1, (3)Y=|X| Solution: the density function of X is (1) The probability function is
64
So ,if y<0, then F(y)=0 Therefore, the density function of Y is
65
Similarly (2) The density function is (3) The density function is
66
Exercise 1: Let X has a uniform distribution on (0,1)
Exercise 1: Let X has a uniform distribution on (0,1). Identify the distribution of Exercise 2: Let X has the exponential distribution with mean 1. Determine the density function of Y, when Y is (1)Y=eX (2)Y=X2
67
Probability mass function Probability density function
R.V Function of R.V Cdf, F(x)=P(X x) D.R.V C.R.V Probability mass function (the probability mass function ,or the frequency function) Pi 0 X ~ Bern(p) X~Bin(n,p) X~P( ) Probability density function f(x) 0 X~U(a,b) X~Exp( ) X~N( , ) X~N(0,1) Non-discreasing right continuous Two limit
69
Probability mass function Probability density function
R.V Function of R.V Cdf, F(x)=P(X x) D.R.V C.R.V Probability mass function (the probability mass function ,or the frequency function) Pi 0 X ~ Bern(p) X~Bin(n,p) X~P( ) Probability density function f(x) 0 X~U(a,b) X~Exp( ) X~N( , ) X~N(0,1) Non-discreasing right continuous Two limit
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.