1

STAT 211

Handout 4 (Chapter 4): Continuous Random Variables

A r.v. X is said to be continuous if its set of possible values is an entire interval of numbers. Then a probability distribution of X is f(x) (pdf: probability density function) such that for any two numbers a and b,

Conditions to be a legitimate probability distribution:

(i)  f(x) ³ 0, for all x

(ii)  (area under the entire graph of f(x)).

If X is a continuous r.v., then for any number c, P(X=c)=0.

Cumulative Distribution Function for X (cdf) : F(x)=

F(-¥)=0, F(¥)=1, , P(X>a)=P(X³a)=1-F(a)

Example 1: A college professor never finishes his lecture before the bell rings to end the period and always finishes his lectures within 2 min after the bell rings. Let X=the time that elapses between the bell and the end of the lecture and suppose the pdf of X is .

(a) Find the value of k which makes f(x) a legitimate pdf. (Answer:3/8)

(b) The cumulative distribution function, F(X)?

F(0) =

F(0.5) =

F(1) =

F(3) =

Example 2: The amount of bread (in hundreds of pounds) that a certain bakery is able to sell in a day is a random variable with probability function,

(a)  Find the value of A which makes f(x) a legitimate pdf.

. Then A=1/25

(b)  What is the probability that the number of pounds of bread that will be sold tomorrow is

(i)  more than 500 pounds

P(X>5)=

(ii)  less than 500 pounds

P(X<5)=

(iii)  between 250 and 750 pounds

P(2.5<x<7.5)= +=0.75

(c)  What is the F(x)?

F(x)=

Obtaining f(x) from F(x) : If X is a continuous r.v. with pdf f(x) and cdf F(x), then at every x at which the derivative exists, F`(x)=f(x).

Percentile of a continuous distribution: Let p be a number between 0 and 1. the (100p)th percentile of the distribution of a continuous r.v. X, denoted by r(p), is defined by

P(X£median) = P(X>median) = 0.50

Expected value for the continuous random variable, X:

Variance for the continuous random variable, X:

or

the shortcut is

If h(X) is the function of random variable X,

If h(X) is a linear function of X, the rules of the mean and the variance can directly be used instead of going through the mathematics.

Example 1(continue): Go back to the example with the college professor in this chapter and show that

(i)  90th percentile of X is 1.931

Set F(r)=0.90 and solve for r to find it. r is the 90th percentile of X.

(ii)  the median is 1.5874

Set F(median)=0.50 and solve for median to find it.

(iii)  the expected value of X is 1.5

=1.5

(iv)  the variance of X is Var(X)= 0.15

=2.4

where Var(X)= E(X2)-[E(X)]2

(v)  how to obtain f(x) from F(x).

Example 2 (continue):

(i)  90th percentile of X is 7.7639

(ii)  the median is 5

(iii)  the expected value of X is 5

(iv)  the variance of X is 4.1667

Uniform Distribution: X ~U[a,b]

E(X)= and Var(X)=

Example 3:

We would like to plan classes so that the lengths of these are uniformly distributed between 50 min and 52 min on Monday-Wednesday-Friday (MWF). Let X be the length of the randomly selected MWF class.

(i) What is the pdf for x?

(ii) Find the probability that a randomly selected class will last longer than 51.5 minutes.

(iii) What is the expected length of the class?

(iv) What is the variance in the length of the class?

Normal Distribution: X ~ N (m , s2 )

A continuous r.v. X is said to have a normal distribution with parameters m and s2 where -¥ < m < ¥ and s > 0. The pdf of X is

It is symmetric and bell-shaped.

The standard normal random variable has m=0 and s2 =1. Z ~ N(0,1)

The cdf of Z is =P(Z£z). Appendix table A.3 can be used to compute .

The (100p)th percentile of X with N (m ,s2) = m + [The (100p)th percentile of Z with N (0,1)]×s

Example 4: In mathematics test, if we assume that your test scores (X) were approximately normally distributed with mean of 76.8 and standard deviation of 13.94.

a.  If a score below 60 represents a grade of F (failure), approximately what percent of students failed the test?

P(X<60)= =P(Z<-1.21)=0.1131=11.31%

b.  If the cutoff for a grade of A is the lowest score of the top 15%, what is that cutoff point?

P(X³x*)=0.15 then P(Z³z*)==0.15.

By looking at the table, z*= then x*=91.2976

c.  How many points must be added to the student scores so that only 10% fail (less than 60 be the failing grade)?

P(X<x*)=0.10 then P(Z<z*)==0.10.

z*= then x*=58.9568. 1.0432 should be added.

d.  If the cutoff for a grade of C is the lowest score of the top 45%, what is that cutoff point?

P(X³x*)=0.45 then P(Z³z*)==0.45.

z*= then x*=78.6122.

e.  What is the 90th percentile of test scores (x)?

P(X£x*)=0.90 then P(Z£z*)==0.90.

z*= then x*=94.6432.

Example 5:A chemical plant superintendent orders a process shutdown and setting readjustment whenever the pH of the final product falls below 6.9 or above 7.1. The sample pH is normally distributed with unknown m and standard deviation 0.05. Determine the probability

(a)  of readjusting when the process is operating as intended and m=7

P(X<6.9 or X>7.1)=P(X<6.9)+P(X>7.1)=P(Z<-2)+P(Z>2)=0.0228+0.0228=0.0456

(b)  of failing to readjust when the process is too alkaline and the mean pH is m=7.15

P(6.9£ X £ 7.1)=P(X£ 7.1)-P(X< 6.9)=P(Z£ -1)-P(Z<-5)=0.1587-0=0.1587

·  IF X is a random variable whose logarithm is normally distributed then X has a lognormal distribution.

Chebyshev's Inequality : is the probability that the value of X lies at least k standard deviations from its mean is at most where k is a positive number greater than 1.

Example 6: If k=2 then the probability that the value of X lies at least 2 standard deviations from its mean is at most 1/4=0.25=25% or 75% of the values are within two standard deviation of the mean.

Empirical Rule: If the population distribution of a random variable is (approximately) normal, then

·  Roughly 68% of the values are within one standard deviation of the mean

·  Roughly 95% of the values are within two standard deviations of the mean

·  Roughly 99.7% of the values are within three standard deviations of the mean

SAT scores have a distribution that is roughly unimodal and symmetric, and are designed to have an overall mean of 500 and a standard deviation of 100. In any one year, the mean and standard deviation may differ from these target values by a small amount. But they are a good overall approximation. Suppose you earned 600 on an SAT test, where do you stand among all students who took the SAT?

According to the empirical rule, if those scores are normally distributed, roughly 68% of the scores are within one standard deviation of the mean, (400,600). A score 600 is one standard deviation above the mean. About 32% of those who took the test were more than one standard deviation from the mean, but only 16% of those were higher than 600.

Exercise: Let’s confirm the findings on the empirical rule using the z-scores.

If those scores are not normally distributed, at least 75% of the scores are within 2 standard deviations of the mean (between 300, 700) according to the chebyshev’s rule

Normal Approximation to the Binomial Distribution:

Let X be a binomial r.v. based on n trials with success probability p. Then if the binomial probability histogram is not too skewed, X has approximately a normal distribution with m = n×p and then (check if np³10 and n(1-p)³10 to use the formula).

Example 7 (Exercise 4.50, 6th edition, Exercise 4.48, 5th edition): Suppose that 10% of all steel shafts produced by a certain process are nonconforming but can be reworked (rather than having to be scrapped). Consider a random sample of 200 shafts and let X denote the number among these that are nonconforming and can be reworked. What is the approximate probability that X is

(a)  At most 30?

P(X£30)=P(Z£2.48)=0.9934

(b)  Less than 30?

P(X<30)= P(X£29)=P(Z£2.24)=0.9875 (because X is discrete)

(c)  Between 15 and 25 (inclusive)?

P(15£X£25)=P(X£25)-P(X£14)= P(Z£1.30)-P(Z£-1.30)=0.9032-0.0968=0.8064

The Gamma Distribution: X ~ Gamma ( a , b )

It is a skewed distribution. Note that

·  If b=1 then it is called standard gamma distribution.

·  When the random variable is a standard gamma r.v. then the cdf is called the incomplete gamma function (Appendix Table A.4). F(x;a,b)=F(x/b;a)

·  If a = 1 then it is Gamma ( a=1 , b=1/l )~Exponential(b=1/l). It is used as a model for the distribution of times between the occurrence of successive events. The gamma distribution is used for the segment of time or and space occurring until some specified number of events has transpired where l being the average process rate and a being the specified number of events that must transpired as X is reached.

The pdf for exponentially distributed random variable is

P(X>x*)=

E(X)= 1/l and Var(X)=1/ l2

·  If a = r / 2 and b = 2 then it is Gamma ( a=r/2 , b=2 ) ~ Chi-squared(r). (Appendix table A.7)

·  If the random variable, X is distributed Exponential(b) then Y=X1/g has Weibull(g,b).

Example 8 (Exercise 4.56, 6th edition, Exercise 4.57, 5th edition): Suppose the time spent by a randomly selected student who uses a terminal connected to a local time sharing facility has a gamma distribution with mean 20 and variance 80 min2.

(a)  What are the values of a and b?

E(X)=ab=20 and Var(X)=ab2=80 then b=4 and a=5

(b)  What is the probability that a student uses the terminal for at most 24 min?

P(X£24)=P(X/b£6)=0.715 using the table of incomplete gamma function

(c)  What is the probability that a student spends between 20 and 40 min using the terminal?

P(20£X£40)=P(5£X/b£10)= P(X/b£10)- P(X/b<5)=0.971-0.56=0.411 using the table of incomplete gamma function

Example 9: Find the probability that the time taken for the next two cars to arrive at a tollbooth will be 1 minute or less when l=2 per minute.

X~Gamma(a=2,b=1/2)

P(X £1)=P(X/b£2)=0.594 using the table of incomplete gamma function

Or using the pdf of gamma =0.594

Example 10: Flaws in a reel of high-fidelity radar recording tape occur on the average of once every 10 feet. Determine the probability that the next recording will begin on a flawless stretch of tape over 5 feet long.

X~Exponential(l=0.1)

P(X>5)= =0.6065

Example 11: A series system consists of 100 independent units, each with exponential distribution with l=0.005. Find the system reliability over a span of t=10.

Rs(10)= ==(0.9512)100=0.0067

Example 12 (Exercise 4.61, 6th edition, Exercise 4.60, 5th edition): Extensive experience with fans of a certain type used in diesel engines has suggested that the exponential distribution provides a good model for time until failure. Suppose the mean time until failure is 25000 hours. What is the probability that

, x>0

(a)  A randomly selected fan will last at least 20000 hours?

P(X³20000)=

A randomly selected fan will last at most 30000 hours?

P(X£30000)= 1-

A randomly selected fan will last between 20000 and 30000 hours?

P(20000£X£30000)=-

(b)  The lifetime of a fan exceeds the mean value by more than 2 standard deviations?

P(X>m+2s)=P(X>25000+2(25000))=

The lifetime of a fan exceeds the mean value by more than 3 standard deviations?

P(X>m+3s)=P(X>25000+3(25000))=

Exponential distribution shares memoryless property of the geometric distribution then P(X³t+t0|X³t0)=P(X³t). It simply is the distribution of additional lifetime is exactly the same as the original distribution of lifetime.

Probability plots: Order the n-sample observations from smallest to largest. Then the ith smallest observation in the list is taken to be the [100(i-0.5)/n]th sample percentile.

Example 13 (Exercise 4.82, 6th edition, Exercise 4.80, 5th edition): Ten observations on bearing lifetime (in hours) are collected. Construct a normal probability plot and comment on the plausibility of the normal distribution as a model for bearing lifetime.

Data / i / (i-0.5)/n / z / Data / i / (i-0.5)/n / z
152.7 / 1 / .05 / -1.645 / 204.7 / 6 / .55 / 0.126
172 / 2 / .15 / -1.036 / 216.5 / 7 / .65 / 0.385
172.5 / 3 / .25 / -0.675 / 243.9 / 8 / .75 / 0.675
173.3 / 4 / .35 / -0.385 / 262.6 / 9 / .85 / 1.036
193 / 5 / .45 / -0.126 / 422.6 / 10 / .95 / 1.645

Example 14 (Exercise 4.91, 6th edition, Exercise 4.87, 5th edition): The failure time observations (1000’s of hours) resulted from accelerated life testing of 16 integrated circuit chips of a certain type. Use the corresponding percentiles of the exponential distribution with l=1 to construct a probability plot. Comment on the sample having been generated from any exponential distribution.

F(x)=

That means if the smallest 5 th percentile is observed then F(x)=0.05 and we are trying to find what x is. x can be found as -ln(1-F(x)).

Data / i / (i-0.5)/n / x
11.6 / 1 / 5/160 / 0.031749
26.5 / 2 / 15/160 / 0.09844
82.8 / 3 / 25/160 / 0.169899
179.7 / 4 / 35/160 / 0.24686
204.6 / 5 / 45/160 / 0.330242
212.6 / 6 / 55/160 / 0.421213
229.9 / 7 / 65/160 / 0.521297
242 / 8 / 75/160 / 0.632523
244.8 / 9 / 85/160 / 0.757686
304.3 / 10 / 95/160 / 0.900787
307.8 / 11 / 105/160 / 1.067841
359.5 / 12 / 115/160 / 1.268511
366.7 / 13 / 125/160 / 1.519826
379.1 / 14 / 135/160 / 1.856298
502.5 / 15 / 145/160 / 2.367124
558.9 / 16 / 155/160 / 3.465736