• No results found

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

N/A
N/A
Protected

Academic year: 2021

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

Copied!
27
0
0

Loading.... (view fulltext now)

Full text

(1)

Chapter 5: Continuous Random Variables

Tony Pourmohamad

Department of Mathematics De Anza College

Spring 2015

(2)

Objectives

By the end of this set of slides, you should be able to:

1 Recognize and understand continuous probability distribution functions

2 Recognize the uniform probability distribution and apply it appropriately

3 Recognize the exponential probability distribution and apply it appropriately

2 / 27

(3)

Random Variables

• Random Variable: A random variable describes the outcomes of a statistical experiment

• Random variables can be of two types:

. Discrete random variables: can take only a finite or countable number of outcomes. Example: number of patients with a particular disease

. Continuous random variables: take values within a specified interval or continuum. Example: height or weight

• The values of a random variable can vary with each repetition of an experiment

• We will use capitol letters to denote random variables and lower case letter to denote the value of a random variable

If X is a random variable, then X is written in words, and x is given a number

3 / 27

(4)

Continuous Random Variable Example

Let X

=

the number of minutes until the next earthquake in California

Is X a continuous random variable?

The sample space S

= {???}

X is in words and x is a number

The x values are not countable (continuous or infinite) outcomes

Because you cannot count the possible values that X can take on and the outcomes are random, X is a continuous random variable

• Other examples of continuous random variables?

4 / 27

(5)

Probability Distribution Function

• Just like a discrete random variable, every continuous random variable has an associated probability distribution function

• The graph of a continuous probability distribution is a curve

• Probability is represented by the area under the curve

Example: What is the probability that X is between 8 and 11?

7 8 9 10 11 12 13

0.00.10.20.30.4

X

Probability Density Function

5 / 27

(6)

Probability Distribution Function

• In the discrete case, we could count all of the possible outcomes and assign each one a probability, in the continuous case WE CANNOT (why?)

• Instead of counting outcomes, we will be working now with area underneath the curves to solve probability problems

• The entire area under the curve is equal to one

Probability will be found for intervals of X rather than for individual X values, i.e.,

. P(c<X<d)is the probability the random variable X is in the interval between values c and d

. For EVERYcontinuousrandom variable, the probability that P(X=c)is ALWAYS equal to 0, i.e., P(X=c) =0 (why?)

P

(

c

<

X

<

d

)

is the same as P

(

c

X

d

)

because probability is equal to area

6 / 27

(7)

Probability Distribution Function

• We will find the area that represents the probability by using . Geometry

. Formulas . Technology . Probability Tables

• In general, calculus is needed to find the area under the curve for many probability distributions (in particular taking integrals)

• We will NOT be using calculus in this class!

For continuous probability distribution functions, PROBABILITY

=

AREA

7 / 27

(8)

Continuous Probability Functions

Notation: We will use f

(

x

)

to denote the probability density function (pdf)

You may think of f

(

x

)

as a function

We define f

(

x

)

so that the area between it and the x-axis is equal to a probability

• Since the maximum probability is one, the maximum area is also one

For continuous probability distribution functions, PROBABILITY

=

AREA

8 / 27

(9)

Example #1

Consider the pdf f

(

x

) =

201 for 0

x

20

The graph of f

(

x

)

is a horizontal line

0 5 10 15 20

0.000.010.020.030.040.050.060.07

Plot of f(x)=1/20

x

f(x)

• Question: What is the probability that 5

X

10?

9 / 27

(10)

Example #1 Continued

• Question: What is the probability that 5

X

10?

0 5 10 15 20

0.000.010.020.030.040.050.060.07

Plot of f(x)=1/20

x

f(x)

P

(

5

X

10

) = (

10

5

)

201

 =

0

.

25

• Recall: Area of a rectangle = (base)(height)

10 / 27

(11)

The Uniform Distribution

• The uniform distribution is a continuous probability distribution

• The uniform distribution describes data where the events are equally likely to occur

• Example: Age could be a continuous random variable that follows a uniform distribution

0 20 40 60 80 100

0.0000.0050.0100.015

Plot of the Uniform Distribution

Ages (in years)

Probability Density Function

11 / 27

(12)

The Uniform Distribution

Let X be a uniform random variable

X

U

(

a

,

b

)

• The uniform probability density function is

f

(

x

) =

1 b

a

. a=the lowest value of x . b=the highest value of x

The probability that c

X

d is

P

(

c

X

d

) =

d

c b

a

12 / 27

(13)

Example #2

Let X

U

(

0

,

23

)

• Question: Find the probability that 2

<

X

<

18

0 5 10 15 20

0.000.010.020.030.040.050.060.07

Plot of f(x)=1/23

x

f(x)

• Solution:

P

(

2

<

X

<

18

) =

18

2 23

0

=

16

23

13 / 27

(14)

Example #2 Continued

Let X

U

(

0

,

23

)

• Question: Find the probability that X

>

12 given that X

>

8

0 5 10 15 20

0.000.020.040.060.080.10

Plot of f(x)=1/23

x

f(x)

• Solution:

P

(

X

>

12

|

X

>

8

) =

23

12 23

8

=

11

15

14 / 27

(15)

Example #2 Continued

Let X

U

(

0

,

23

)

• Question: Find the probability that X

>

12 given that X

>

8

• Could we have solved it a different way?

• Solution:

P

(

X

>

12

|

X

>

8

) =

P

(

X

>

12 and X

<

18

)

P

(

X

>

8

)

=

P

(

X

>

12

)

P

(

X

>

8

)

=

11 23 15 23

=

11 15

15 / 27

(16)

Expected Value (Mean) and Standard Deviation

Let X

U

(

a

,

b

)

then:

. Theexpected valueof X is

µ = a+b 2 . Thestandard deviationof X is

σ =

r(ba)2 12

Example: Let X

U

(

0

,

23

)

, then

µ =

23

+

0

2

=

11

.

5 and

σ =

r (

23

0

)

2

12

=

r

529

12

=

6

.

639528

16 / 27

(17)

Percentiles for Uniform Random Variables

• Recall: The Pthpercentile divides the data between the lower P%

and the upper

(

100

P

)

% of the data:

P% of data values are less than (or equal to) the Pthpercentile

• Question: How can we find the value k corresponding to the Pth percentile?

Plot of f(x)=1/23

x

f(x)

0 5 10 15 k 20

0.000.010.020.030.040.050.060.07

17 / 27

(18)

Percentiles for Uniform Random Variables

• Question: How can we find the value k corresponding to the Pth percentile?

We know that P

(

X

k

) =

Pthpercentile, so k

a

b

a

=

Pthpercentile Rearranging terms we get

k

=

a

+ (

b

a

)(

PthPercentile

)

Example: Let X

U

(

0

,

23

)

, what value corresponds to the 78th percentile?

k

=

0

+ (

23

0

)(

0

.

78

) =

17

.

94 So 17.94 is the 78thpercentile

18 / 27

(19)

The Exponential Distribution

• The exponential distribution is a continuous probability distribution

• The exponential distribution is often concerned with the amount of time until some specific event occurs

• Some examples:

. The amount of time until and earthquake occurs . The length(in minutes) of long distance business calls . The amount of time (in months) a car battery lasts

0 2 4 6 8 10

0.00.10.20.30.40.5

Plot of the Exponential Distribution

Life of Car Battery (in months)

Probability Density Function

19 / 27

(20)

The Exponential Distribution

Let X be a exponential random variable

X

Exp

(

m

)

• The exponential probability density function is f

(

x

) =

memx

. m=the "decay rate"

. m must be positive, i.e., m>0 . e=2.71828182846...

20 / 27

(21)

The Exponential Distribution

Let X be a exponential random variable

X

Exp

(

m

)

• The exponential probability density function is f

(

x

) =

memx

The probability that X

d is

P

(

X

d

) =

1

emd

The probability that c

X

d is

P

(

c

X

d

) =

emc

emd

The probability that X

d is

P

(

X

d

) =

emd

21 / 27

(22)

Example #3

Let X

Exp

(

0

.

5

)

• Question: Find the probability that 2

<

X

<

4

0 2 4 6 8 10

0.00.10.20.30.40.5

Plot of the Exponential Distribution

Life of Car Battery (in months)

Probability Density Function

• Solution:

P

(

2

<

X

<

4

) =

e−(0.5)(2)

e−(0.5)(4)

=

e1

e2

=

0

.

2325442

22 / 27

(23)

Example #3 Continued

Let X

Exp

(

0

.

5

)

• Question: Find the probability that X

<

4

• Solution:

P

(

X

<

4

) =

1

e−(0.5)(4)

=

1

e2

=

0

.

8646647

• Question: Find the probability that X

>

4

• Solution:

P

(

X

>

4

) =

1

P

(

X

<

4

) =

1

−(

1

e−(0.5)(4)

) =

e2

=

0

.

1353353

• Question: Find the probability that X

=

4

• Solution:

P

(

X

=

4

) =???

23 / 27

(24)

Expected Value (Mean) and Standard Deviation

Let X

Exp

(

m

)

, where m

>

0, then:

. Theexpected valueof X is

µ = 1 m . Thestandard deviationof X is

σ = 1 m

Example: Let X

Exp

(

4

)

, then

µ =

1

4 and

σ =

1 4

24 / 27

(25)

Percentiles for Exponential Random Variables

• Question: How can we find the value k corresponding to the Pth percentile?

Plot of the Exponential Distribution

Life of Car Battery (in months) Probability Density Function 0.00.10.20.30.40.5

0 2 4 k 6 8 10

25 / 27

(26)

Percentiles for Exponential Random Variables

• Question: How can we find the value k corresponding to the Pth percentile?

We know that P

(

X

k

) =

Pthpercentile, so 1

ekm

=

Pthpercentile Rearranging terms we get

k

= −

ln

(

1

PthPercentile

)

m

Example: Let X

Exp

(

0

.

5

)

, what value corresponds to the 90th percentile?

k

= −

ln

(

1

0

.

90

)

0

.

5

= −

ln

(

0

.

10

)

0

.

5

=

4

.

60517 So 4.60517 is the 90thpercentile

26 / 27

(27)

Other Continuous Probability Distributions

• Some other well known discrete probability distributions:

. The normal (Gaussian) distribution . The student-t distribution

. Theχ2distribution (chi-squared) . The gamma distribution . The beta distribution . The weibull distribution

• And the list goes on...

27 / 27

References

Related documents

In answer to these questions, this paper offers two main reasons for the relative neglect of this motivational component: the first is related to the histori- cal roots of the

Head mounted displays are able to create a sense of being inside a virtual en- vironment by using motion tracking technology to match the view direction that is displayed to the

He/she shall likewise monitor attendance, training- related activities and performance of trainee during the OJT program in the Host-Company; and 9.3 Require the student-trainee

One of the risk factors for CHD in type 2 diabetes is dyslipidemia, ie lipid metabolism disorders in the form of elevat- ed total cholesterol, triglyceride (TG),

On January 23, 2003, the SEC published final rules that will require companies to include in their annual reports filed with the SEC new disclosures regarding (i) whether at least

Suppose we would like a continuous function to describe a variable Y in such a way that it more likely to produce y’s near the middle of the range more frequently than near the

If the number of calls received per hour by a telephone answering service is a Poisson random variable with parameter λ = 6, we know that the time, in hours, between successive

Daar is aangetoon dat die gedig talle ánder intertekste oproep waarin die bloubok figureer: vertalings van die gedig, sketse en kaarte deur koloniale reisigers