Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 5. Continuous Random Variables. Uniform Random Variable X is a uniform random variable on the interval (α, β) if its probability function is given.

Similar presentations


Presentation on theme: "Chapter 5. Continuous Random Variables. Uniform Random Variable X is a uniform random variable on the interval (α, β) if its probability function is given."— Presentation transcript:

1 Chapter 5. Continuous Random Variables

2 Uniform Random Variable X is a uniform random variable on the interval (α, β) if its probability function is given by 2

3 Ex 3a. Let X be uniformly distributed over (α, β). Find (a) E[X] and (b) Var(X). The expected value of a random variable uniformly distributed over some interval is equal to the midpoint of that interval. 3

4 4

5 Ex 3b. If X is uniformly distributed over (0, 10), calculate the probability that (a) X 6, and (c) 3 < X < 8. f(x) = 1/10, 0 ≤ x ≤ 10. 5

6 Ex 3c. Buses arrive at a specified stop at 15-minute intervals starting at 7AM. That is, they arrive at 7, 7:15, 7:30, 7:45, and so on. If a passenger arrives at the stop at a time that is uniformly distributed between 7 and 7:30, find the probability that he waits (a) less than 5 minutes for a bus; (b) more than 10 minutes for a bus. f(x) = 1/30, 0 ≤ x ≤ 30. 6

7 Normal Random Variables The distribution associated with Normal random variable is called Normal distribution. It was first studied by French mathematician Abraham DeMoivre. Carl Friedrich Gauss analyzed astronomical data using Normal distribution and defined the equation of its probability density function. –The distribution is also called Gaussian distribution. 7

8 Importance of Normal Distribution Describes many random processes of continuous phenomena –Height of a man, velocity of a molecule in gas, error made in measuring a physical quantity. Can be used to approximate discrete probability distributions –Example: binomial Basis for classical statistical inference –Central limit theorem. 8

9 Normal Distribution  = Mean of random variable x  = Standard deviation  = 3.14159… e = 2.71828… ‘Bell-shaped & symmetrical Random variable has infinite range Mean measures the center of the distribution Standard deviation measures the spread of the distribution 9

10 Effect of Varying Parameters (  &  ) A:  = 3.7  =1 B:  = 3.7  =0.5 C:  = 5.3  =1 10

11 If X is normally distributed with parameter μ and σ 2, then Y = aX + b is normally distributed with parameters aμ + b and (aσ) 2. 11

12 Standard Normal Normal distribution with parameter (0, 1), N(0,1), is also called standard normal. If X is N(μ, σ 2 ), then Z = (X - μ)/σ is standard normal. 12

13 Ex 4a. Find E[X] and Var[X] when X is a normal random variable with parameters μ and σ 2. 13

14 14

15 Because X = μ + σZ, E[X] = μ + σE[Z] = μ Var(X) = σ 2 Var(Z) = σ 2. 15

16 For negative values of x: For standard normal: P(Z ≤ -x) = P(Z > x) For X ~ N(μ, σ) 16

17 Φ(x) can be found from the table for standard normal distribution. 17

18 Ex 4b. If X is a normal random variable with parameter μ = 3 and σ 2 = 9, find (a) P(2 0); (c) P(|X-3| > 6). 18

19 19

20 Ex 4c. An examination is often regarded as being good if the test scores of those taking the examination can be approximated by a normal density function. The instructor often uses the test scores to estimate the normal parameters μ, and σ 2 and then assign the letter grade A to those whose test score is greater than μ + σ, B to those whose score is between μ and μ + σ, C to those whose score is between μ - σ and μ, D to those whose score is between μ - 2σ and μ - σ, and F to those getting a score below μ - 2σ. This is sometimes referred to as grading “on the curve”. 20

21 Approximately 16 percent of the class will receive an A grade on the examination, 34 percent a B grade, 34 percent a C grade, and 14 percent a D grade; 2 percent will fail. 21

22 Ex 4e. Suppose that a binary message – either 0 or 1 must be transmitted by wire from location A to location B. However, the data sent over the wire are subject to a channel noise disturbance, so to reduce the possibility of error, the value 2 is sent over the wire when the message is 1 and the value -2 is sent when the message is 0. If x, x = ±2, is the value sent at location A, then R, the value received at location B is given by R = x + N, where N is the channel noise disturbance. When the message is received at location B the receiver decodes it according to the following rule: If R ≥.5, then 1 is concluded If R <.5, then 0 is concluded. Assuming the channel noise is normally distributed, determine the error probabilities when N is a standard normal random variable. 22

23 There are two types of errors: one is that the message 1 can be incorrectly concluded to be 0, and the other that 0 is concluded to be 1. The first type of error will occur if the message is 1 and 2 + N<.5, whereas the second will occur if the message is 0 and -2 + N ≥.5. 23

24 Normal Approximation to the Binomial Distribution When n is large, a binomial random variable with parameter n and p will have approximately the same distribution as a normal random variable with the same mean and variance. 24

25 Ex 4f. Let X be the number of times that a fair coin, flipped 40 times, lands heads. Find the probability that X = 20. Use the normal approximation and then compare it to the exact solution. Since binomial is discrete and normal is continuous, we need to apply a continuity correction –we compute P(i-1/2 < X < i+1/2) instead of P(X = i). 25

26 Ex 4g. The ideal size of a first-year class at a particular college is 150 students. The college, knowing from past experience that on the average only 30 percent of those accepted for admission will actually attend, uses a policy of approving the applications of 450 students. Compute the probability that more than 150 first-year students attend this college. 26

27 Ex 4h. To determine the effectiveness of a certain diet in reducing the amount of cholesterol in the bloodstream, 100 people are put on the diet. After they have been on the diet for a sufficient length of time, their cholesterol count will be taken. The nutritionist running this experiment has decided to endorse the diet if at least 65 percent of the people have a lower cholesterol count after going on the diet. What is the probability that the nutritionist endorses the new diet if, in fact, it has no effect on the cholesterol level? 27

28 Exponential Random Variables pdf of exponential random variable The distribution of the amount of time until some specific event occurs. –The amount of time until an earthquake occurs. 28

29 Exponential Distribution 29

30 Ex 5a. Let X be an exponential random variable with parameter λ. Calculate (a) E[X] and (b) Var(X). 30

31 31

32 Ex 5b. Suppose that the length of a phone call in minutes is an exponential random variable with parameter λ = 1/10. If someone arrives immediately ahead of you at a public telephone booth, find the probability that you will have to wait (a) more than 10 minutes; (b) between 10 and 20 minutes. 32

33 Memory of A Random Variable We say a nonnegative random variable X is memoryless if 33

34 Ex 5c. Consider a post office that is staffed by two clerks. Suppose that Ms. Jones is being served by one of the clerks and Mr. Brown by the other. Suppose also that Mr. Smith is told that his service will begin as soon as either Jones or Brown leaves. If the amount of time that a clerk spends with a customer is exponentially distributed with parameter λ. what is the probability that, of the three customers, Mr. Smith is the last to leave the post office? Because exponential random variable is memoryless, the probability of Mr. Smith is the last to leave the post office is 1/2. 34

35 Ex 5d. Suppose that the number of miles that a car can run before its battery wears out is exponentially distributed with an average value of 10,000 miles. If a person desires to take a 5000-mile trip, what is the probability that he or she will be able to complete the trip without having to replace the battery? What can be said when the distribution is not exponential? The remaining lifetime of the battery is exponential with parameter 1/10 (in thousands of miles). 35

36 Gamma Distribution Gamma distribution is often used as the distribution of the amount of time one has to wait until a total of n events has occurred. –A generalization of exponential distribution 36

37 Gamma Distribution 37

38 Ex 6a. Let X be a gamma variable with parameters α and λ. Calculate (a) E[X] and Var(X). 38

39 Gamma Distribution – Special Cases When α = 1, the distribution reduce to exponential. When λ = 1, α = n/2, the distribution is also called chi-square distribution with n degree of freedom. –Model errors involved in attempting to hit a target in n dimensional space when each coordinate error is normally distributed. –Comparison of categorical data. 39

40 Beta Distribution Used to model a random phenomenon whose set of possible values is some finite interval [c, d] – which can be transformed into the interval [0, 1]. Frequently used in Bayesian inference. 40

41 Beta Distribution 41

42 Distribution of a Function of a Random Variable Sometimes we would like to know the distribution function of g(X) when the pdf of X is known. Ex 7a. Let X be uniformly distributed over (0,1). What is the distribution function of the random variable Y, defined by Y = X n ? 42

43 Distribution function Probability density function 43

44 Ex 7b. If X is a continuous random variable with probability density f X, then the distribution of Y = X 2 is: 44

45 Summary of Chapter 5 Continuous random variables Expectation and expectation of function of random variables Variance Uniform random variable Normal random variable –Standard normal Other random variables –Exponential –Gamma –Beta Distribution function of function of random variables 45


Download ppt "Chapter 5. Continuous Random Variables. Uniform Random Variable X is a uniform random variable on the interval (α, β) if its probability function is given."

Similar presentations


Ads by Google