Probability - Florida International...

33
1/30/2014 1 Chapter 3: Probability 1 Section 3.1: Basic Ideas Definition: An experiment is a process that results in an outcome that cannot be predicted in advance with certainty. Examples: rolling a die tossing a coin weighing the contents of a box of cereal. 2

Transcript of Probability - Florida International...

Page 1: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

1

Chapter 3:

Probability

1

Section 3.1: Basic Ideas

Definition: An experiment is a process that

results in an outcome that cannot be predicted

in advance with certainty.

Examples:

rolling a die

tossing a coin

weighing the contents of a box of cereal.

2

Page 2: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

2

Sample Space

Definition: The set of all possible outcomes of an experiment is called the sample space for the experiment.

Examples: For rolling a fair die, the sample space is {1, 2, 3, 4, 5, 6}.

For a coin toss, the sample space is {heads, tails}.

Imagine a hole punch with a diameter of 10 mm punches holes in sheet metal. Because of variation in the angle of the punch and slight movements in the sheet metal, the diameters of the holes vary between 10.0 and 10.2 mm. For this experiment of punching holes, a reasonable sample space is the interval (10.0, 10.2).

3

More Terminology

Definition: A subset of a sample space is called an

event.

A given event is said to have occurred if the

outcome of the experiment is one of the

outcomes in the event. For example, if a die

comes up 2, the events {2, 4, 6} and {1, 2, 3}

have both occurred, along with every other

event that contains the outcome โ€œ2โ€.

4

Page 3: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

3

Example 3.1

An engineer has a box containing four bolts and

another box containing four nuts. The diameters

of the bolts are 4, 6, 8, and 10 mm, and the

diameters of the nuts were 6, 10, 12, and 14

mm. One bolt and one nut are chosen.

5

Example 3.1 (cont.)

Let A be the event that the bolt diameter is less than 8, let B be the event that the nut diameter is greater than 10, and let C be the event that the bolt and the nut have the same diameter.

1. Find the sample space for this experiment.

2. Specify the subsets corresponding to the events A, B, and C.

6

Page 4: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

4

Combining Events

The union of two events A and B, denoted

๐ด โˆช ๐ต, is the set of outcomes that belong either

to A, to B, or to both.

In words, ๐ด โˆช ๐ต means โ€œA or B.โ€ So the event

โ€œA or Bโ€ occurs whenever either A or B (or both)

occurs.

Example: Let A = {1, 2, 3} and B = {2, 3, 4}.

What is ๐ด โˆช ๐ต?

7

Intersections

The intersection of two events A and B, denoted

by ๐ด โˆฉ ๐ต, is the set of outcomes that belong to A

and to B. In words,๐ด โˆฉ ๐ต means โ€œA and B.โ€

Thus the event โ€œA and Bโ€ occurs whenever both

A and B occur.

Example: Let A = {1, 2, 3} and B = {2, 3, 4}.

What is ๐ด โˆฉ ๐ต?

8

Page 5: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

5

Complements

The complement of an event A, denoted ๐ด๐‘, is

the set of outcomes that do not belong to A. In

words, ๐ด๐‘ means โ€œnot A.โ€ Thus the event โ€œnot

Aโ€ occurs whenever A does not occur.

Example: Consider rolling a fair sided die. Let A be

the event: โ€œrolling a sixโ€ = {6}.

What is ๐ด๐‘ = โ€œnot rolling a sixโ€?

9

Mutually Exclusive Events

Definition: The events A and B are said to be mutually exclusive if they have no outcomes in common.

More generally, a collection of events A1, A2, โ€ฆ, An

is said to be mutually exclusive if no two of them have

any outcomes in common.

Sometimes mutually exclusive events are referred to as disjoint events.

10

Page 6: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

6

Probabilities

Definition:Each event in the sample space has a probability of occurring. Intuitively, the probability is a quantitative measure of how likely the event is to occur.

Given any experiment and any event A:

The expression P(A) denotes the probability that the event A occurs.

P(A) is the proportion of times that the event Awould occur in the long run, if the experiment were to be repeated over and over again.

11

Axioms of Probability

1. Let ๐‘บ be a sample space. Then ๐‘ƒ(๐‘บ) = 1.

2. For any event A, 0 โ‰ค ๐‘ƒ(๐ด) โ‰ค 1.

3. If A and B are mutually exclusive events, then

๐‘ƒ ๐ด โˆช ๐ต = ๐‘ƒ ๐ด + ๐‘ƒ(๐ต). More generally, if

๐ด1, ๐ด2, โ€ฆ are mutually exclusive events, then

๐‘ƒ ๐ด1 โˆช ๐ด2 โˆช โ‹ฏ = ๐‘ƒ ๐ด1 + ๐‘ƒ ๐ด2 + โ‹ฏ

12

Page 7: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

7

A Few Useful Things

For any event A, ๐‘ƒ(๐ด๐ถ) = 1 โ€“ ๐‘ƒ(๐ด).

Let denote the empty set. Then ๐‘ƒ( ) = 0.

If ๐‘† is a sample space containing ๐‘ equally likely

outcomes, and if A is an event containing ๐‘˜outcomes, then ๐‘ƒ(๐ด) = ๐‘˜/๐‘.

Addition Rule (for when A and B are not mutually

exclusive): ๐‘ƒ ๐ด โˆช ๐ต = ๐‘ƒ ๐ด + ๐‘ƒ ๐ต โˆ’ ๐‘ƒ(๐ด โˆฉ ๐ต)

13

(3.1)

(3.2)

(3.3)

(3.4)

Example 3.3

A target on a test firing range consists of a bullโ€™s-eye

with two concentric rings around it. A projectile is

fired at the target. The probability that it hits the

bullโ€™s-eye is 0.10, the probability that it hits the inner

ring is 0.25, and the probability that it hits the outer

ring is 0.45.

1. What is the probability that the projectile hits the

target?

2. What is the probability that it misses the target?

14

Page 8: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

8

Example 3.4

An extrusion die is used to produce aluminum rods.

Specifications are given for the length and diameter of the

rods. For each rod, the length is classified as too short, too

long, or OK, and the diameters is classified as too thin, too

thick, or OK. In a population of 1000 rods, the number of

rods in each class are as follows:

Diameter

Length Too Thin OK Too Thick

Too Short 10 3 5

OK 38 900 4

Too Long 2 25 13

15

Example 3.4 (cont.)

1. What is the probability that a randomly chosen

rod is too short?

2. If a rod is sampled at random, what is the

probability that it is neither too short or too thick?

16

Page 9: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

9

Section 3.2: Conditional

Probability and Independence

Definition: A probability that is based on part of the

sample space is called a conditional probability.

Let A and B be events with ๐‘ƒ(๐ต) โ‰  0. The

conditional probability of A given B is

๐‘ƒ ๐ด ๐ต =๐‘ƒ(๐ด โˆฉ ๐ต)

๐‘ƒ(๐ต)

17

(3.5)

Conditional Probability

18

Venn Diagram

Page 10: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

10

Example 3.6

What is the probability that a rod will have a

diameter that is OK, given that the length is

too long?

19

Diameter

Length Too Thin OK Too Thick

Too Short 10 3 5

OK 38 900 4

Too Long 2 25 13

Independence

Definition: Two events A and B are independent if the probability of each event remains the same whether or not the other occurs.

If ๐‘ƒ(๐ด) โ‰  0 and ๐‘ƒ(๐ต) โ‰  0, then A and B are independent if ๐‘ƒ(๐ต|๐ด) = ๐‘ƒ(๐ต) or, equivalently, ๐‘ƒ(๐ด|๐ต) = ๐‘ƒ(๐ด).

If either ๐‘ƒ(๐ด) = 0 or ๐‘ƒ(๐ต) = 0, then A and B are independent.

These concepts can be extended to more than two events.

20

Page 11: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

11

Example 3.7

If an aluminum rod is sampled from the sample

space of 1000 rods, find the P(too long) and

P(too long | too thin). Are these probabilities

different? Why or why not?

21

Diameter

Length Too Thin OK Too Thick

Too Short 10 3 5

OK 38 900 4

Too Long 2 25 13

The Multiplication Rule

If A and B are two events and ๐‘ƒ(๐ต) โ‰  0, then ๐‘ƒ ๐ด โˆฉ ๐ต = ๐‘ƒ ๐ต ๐‘ƒ(๐ด|๐ต)

If A and B are two events and ๐‘ƒ(๐ด) โ‰  0, then ๐‘ƒ ๐ด โˆฉ ๐ต = ๐‘ƒ ๐ด ๐‘ƒ(๐ต|๐ด)

If ๐‘ƒ(๐ด) โ‰  0, and ๐‘ƒ(๐ต) โ‰  0, then both of the above hold.

If A and B are two independent events, then ๐‘ƒ ๐ด โˆฉ ๐ต = ๐‘ƒ ๐ด ๐‘ƒ(๐ต)

If ๐ด1, ๐ด2, โ€ฆ , ๐ด๐‘› are independent events, then ๐‘ƒ ๐ด1 โˆฉ ๐ด2 โˆฉ โ‹ฏ โˆฉ ๐ด๐‘› = ๐‘ƒ ๐ด1 ๐‘ƒ ๐ด2 โ€ฆ๐‘ƒ(๐ด๐‘›)

22

(3.8)

(3.9)

(3.10)

(3.12)

Page 12: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

12

Example 3.8

It is known that 5% of the cars and 10% of the light

trucks produced by a certain manufacturer require

warranty service. If someone purchases both a car

and a light truck from this manufacturer, then,

assuming the vehicles function independently, what

is the probability that both will require warranty

service?

23

Example 3.9

A system contains two components, A and B,

connected in series. The system will function only

if both components function. The probability that A

functions is 0.98 and the probability that B

functions is 0.95. Assume A and B function

independently. Find the probability that the system

functions.

24

Page 13: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

13

Example 3.10

A system contains two components, C and D,

connected in parallel. The system will function if

either C or D functions. The probability that C

functions is 0.90 and the probability that D

functions is 0.85. Assume C and D function

independently. Find the probability that the system

functions.

25

Example 3.11

๐‘ƒ(๐ด) = 0.995; ๐‘ƒ(๐ต) = 0.99๐‘ƒ(๐ถ) = ๐‘ƒ(๐ท) = ๐‘ƒ(๐ธ) = 0.95๐‘ƒ(๐น) = 0.90; ๐‘ƒ(๐บ) = 0.90, ๐‘ƒ(๐ป) = 0.98

26

Page 14: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

14

Section 3.3: Random Variables

Definition:A random variable assigns a numerical

value to each outcome in a sample space.

Definition:A random variable is discrete if its

possible values form a discrete set.

27

Example

The number of flaws in a 1-inch length of copper wire manufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced have no flaws, 39% have one flaw, 12% have two flaws, and 1% have three flaws. Let ๐‘‹ be the number of flaws in a randomly selected piece of wire. Write down the possible values of ๐‘‹ and the associated probabilities, providing a complete description of the population from which ๐‘‹ was drawn.

28

Page 15: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

15

Probability Mass Function

The description of the possible values of ๐‘‹ and the probabilities of each has a name: the probability mass function.

Definition:The probability mass function (pmf) of a discrete random variable ๐‘‹ is the function ๐‘(๐‘ฅ) = ๐‘ƒ(๐‘‹ = ๐‘ฅ).

The probability mass function is sometimes called the probability distribution.

29

Probability Mass Function

Example

30

Page 16: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

16

Cumulative Distribution Function

The probability mass function specifies the probability that a random variable is equal to a given value.

A function called the cumulative distribution function (cdf) specifies the probability that a random variable is less than or equal to a given value.

The cumulative distribution function of the random variable ๐‘‹ is the function ๐น(๐‘ฅ) = ๐‘ƒ(๐‘‹ โ‰ค ๐‘ฅ).

31

More on a

Discrete Random Variable

Let ๐‘‹ be a discrete random variable. Then

The probability mass function of ๐‘‹ is the function ๐‘(๐‘ฅ) = ๐‘ƒ(๐‘‹ = ๐‘ฅ).

The cumulative distribution function of ๐‘‹ is the function ๐น(๐‘ฅ) = ๐‘ƒ(๐‘‹ โ‰ค ๐‘ฅ).

๐น ๐‘ฅ = ๐‘กโ‰ค๐‘ฅ ๐‘ ๐‘ก = ๐‘กโ‰ค๐‘ฅ ๐‘ƒ(๐‘‹ = ๐‘ก)

๐‘ฅ ๐‘ ๐‘ฅ = ๐‘ฅ ๐‘ƒ ๐‘‹ = ๐‘ฅ = 1, where the sum is over

all the possible values of ๐‘‹.

32

Page 17: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

17

Example 3.16

Recall the example of the number of flaws in a

randomly chosen piece of wire. The following is

the pmf: ๐‘ƒ(๐‘‹ = 0) = 0.48, ๐‘ƒ(๐‘‹ = 1) = 0.39, ๐‘ƒ(๐‘‹ =2) = 0.12, and ๐‘ƒ(๐‘‹ = 3) = 0.01. Compute the cdf

of the random variable ๐‘‹ that represents the

number of flaws in a randomly chosen wire.

33

Cumulative Distribution Function

Example 3.16

34

Page 18: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

18

Mean and Variance for Discrete

Random Variables

The mean (or expected value) of ๐‘‹ is given by

๐œ‡๐‘‹ =

๐‘ฅ

๐‘ฅ๐‘ƒ(๐‘‹ = ๐‘ฅ)

where the sum is over all possible values of ๐‘‹.

The variance of ๐‘‹ is given by

๐œŽ๐‘‹2 =

๐‘ฅ

(๐‘ฅ โˆ’ ๐œ‡๐‘‹)2๐‘ƒ ๐‘‹ = ๐‘ฅ =

๐‘ฅ

๐‘ฅ2๐‘ƒ ๐‘‹ = ๐‘ฅ โˆ’ ๐œ‡๐‘‹2

The standard deviation is the square root of the

variance.

35

(3.13)

(3.14) (3.15)

Example 3.17

A certain industrial process is brought down for

recalibration whenever the quality of the items

produced falls below specifications. Let ๐‘‹represent the number of times the process is

recalibrated during a week, and assume that ๐‘‹ has

the following probability mass function.

Find the mean and variance of ๐‘‹.

x 0 1 2 3 4

p(x) 0.35 0.25 0.20 0.15 0.05

36

Page 19: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

19

Example 3.17

37

Probability mass function

will balance if supported at

the population mean

The Probability Histogram

When the possible values of a discrete random variable are evenly spaced, the probability mass function can be represented by a histogram, with rectangles centered at the possible values of the random variable.

The area of the rectangle centered at a value ๐‘ฅ is equal to ๐‘ƒ(๐‘‹ = ๐‘ฅ).

Such a histogram is called a probability histogram, because the areas represent probabilities.

38

Page 20: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

20

Probability Histogram for the

Number of Flaws in a Wire

The pmf is: ๐‘ƒ(๐‘‹ = 0) = 0.48, ๐‘ƒ(๐‘‹ = 1) = 0.39,

๐‘ƒ(๐‘‹ = 2) = 0.12, and ๐‘ƒ(๐‘‹ = 3) = 0.01.

39

Probability Mass Function

Example

40

Page 21: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

21

Continuous Random Variables

A random variable is continuous if its probabilities are given by areas under a curve.

The curve is called a probability density function(pdf) for the random variable. Sometimes the pdfis called the probability distribution.

The function ๐‘“(๐‘ฅ) is the probability density function of ๐‘‹.

Let ๐‘‹ be a continuous random variable with probability density function ๐‘“(๐‘ฅ). Then

โˆ’โˆž

โˆž๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ = 1

41

Continuous Random Variables:

Example

42

Page 22: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

22

Computing Probabilities

Let ๐‘‹ be a continuous random variable with probability

density function ๐‘“(๐‘ฅ). Let ๐‘Ž and ๐‘ be any two numbers,

with ๐‘Ž < ๐‘. Then ๐‘ƒ ๐‘Ž โ‰ค ๐‘‹ โ‰ค ๐‘ = ๐‘ƒ ๐‘Ž โ‰ค ๐‘‹ < ๐‘ =

๐‘ƒ ๐‘Ž < ๐‘‹ โ‰ค ๐‘ = ๐‘Ž๐‘๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ

In addition,

๐‘ƒ ๐‘‹ โ‰ค ๐‘Ž = ๐‘ƒ ๐‘‹ < ๐‘Ž = โˆ’โˆž

๐‘Ž

๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ

๐‘ƒ ๐‘‹ โ‰ฅ ๐‘Ž = ๐‘ƒ ๐‘‹ > ๐‘Ž = ๐‘Ž

โˆž

๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ

43

(3.16)

(3.17)

More on

Continuous Random Variables

Let ๐‘‹ be a continuous random variable with probability

density function ๐‘“(๐‘ฅ). The cumulative distribution

function of ๐‘‹ is the function

๐น ๐‘ฅ = ๐‘ƒ ๐‘‹ โ‰ค ๐‘ฅ = โˆ’โˆž

๐‘ฅ

๐‘“ ๐‘ก ๐‘‘๐‘ก

The mean of ๐‘‹ is given by

๐œ‡๐‘‹ = โˆ’โˆž

โˆž

๐‘ฅ๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ

The variance of ๐‘‹ is given by

๐œŽ๐‘‹2 =

โˆ’โˆž

โˆž

(๐‘ฅ โˆ’ ๐œ‡๐‘‹)2๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ = โˆ’โˆž

โˆž

๐‘ฅ2๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ โˆ’ ๐œ‡๐‘‹2

44

(3.18)

(3.19)

(3.20)

(3.21)

Page 23: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

23

Example 3.21

A hole is drilled in a sheet-metal component, and then a shaft is inserted through the hole. The shaft clearance is equal to the difference between the radius of the hole and the radius of the shaft. Let the random variable ๐‘‹denote the clearance, in millimeters. The probability density function of X is

๐‘“ ๐‘ฅ = 1.25 1 โˆ’ ๐‘ฅ4 , 0 < ๐‘ฅ < 10, ๐‘œ๐‘กโ„Ž๐‘’๐‘Ÿ๐‘ค๐‘–๐‘ ๐‘’

Components with clearances larger than 0.8 mm must be scraped. What proportion of components are scrapped?

45

Example 3.21

46

๐‘ƒ ๐‘‹ > 0.8 = 0.8

โˆž

๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ

= 0.8

1

1.25 1 โˆ’ ๐‘ฅ4 ๐‘‘๐‘ฅ

= 1.25 ๐‘ฅ โˆ’๐‘ฅ5

5

1

0.8= 0.0819

Page 24: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

24

Example 3.22

Find the cumulative distribution function ๐น(๐‘ฅ) .

If ๐‘ฅ < 0: ๐น ๐‘ฅ = โˆ’โˆž

๐‘ฅ๐‘“ ๐‘ก ๐‘‘๐‘ก = โˆ’โˆž

๐‘ฅ0๐‘‘๐‘ก = 0

If 0 < ๐‘ฅ < 1:

๐น ๐‘ฅ = โˆ’โˆž

๐‘ฅ๐‘“ ๐‘ก ๐‘‘๐‘ก

= โˆ’โˆž

0

๐‘“ ๐‘ก ๐‘‘๐‘ก + 0

๐‘ฅ

๐‘“ ๐‘ก ๐‘‘๐‘ก

= 0 + 0

๐‘ฅ

1.25 1 โˆ’ ๐‘ก4 ๐‘‘๐‘ก

= 1.25 ๐‘ก โˆ’๐‘ก5

5 ๐‘ฅ0

= 1.25(๐‘ฅ โˆ’๐‘ฅ5

5)

47

Example 3.22

Find the cumulative distribution function F(x) .

If ๐‘ฅ > 1:

๐น ๐‘ฅ = โˆ’โˆž

๐‘ฅ๐‘“ ๐‘ก ๐‘‘๐‘ก

= โˆ’โˆž

0

๐‘“ ๐‘ก ๐‘‘๐‘ก + 0

1

๐‘“ ๐‘ก ๐‘‘๐‘ก + 1

๐‘ฅ

๐‘“ ๐‘ก ๐‘‘๐‘ก

= 0 + 1.25 ๐‘ก โˆ’๐‘ก5

5 10

+ 0

48

Page 25: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

25

Example 3.24

Find the mean and variance of the clearance.

49

๐œ‡๐‘ฅ = โˆ’โˆž

โˆž

๐‘ฅ๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ = 0

1

๐‘ฅ 1.25 1 โˆ’ ๐‘ฅ4 ๐‘‘๐‘ฅ = 1.25๐‘ฅ2

2โˆ’

๐‘ฅ6

6 10

= 0.4167

๐œŽ๐‘ฅ2 =

โˆ’โˆž

โˆž

๐‘ฅ2๐‘“ ๐‘ฅ ๐‘‘๐‘ฅ โˆ’ ๐œ‡๐‘ฅ2 =

0

1

๐‘ฅ2 1.25 1 โˆ’ ๐‘ฅ4 ๐‘‘๐‘ฅ โˆ’ (0.4167)2

= 1.25๐‘ฅ3

3โˆ’

๐‘ฅ7

7 10

โˆ’ (0.4167)2 = 0.0645

Section 3.4: Linear Functions of

Random Variables

If X is a random variable, and ๐‘Ž and ๐‘ are constants,

then

โ€“๐œ‡๐‘Ž๐‘‹+๐‘ = ๐‘Ž๐œ‡๐‘‹ + ๐‘

โ€“๐œŽ๐‘Ž๐‘‹+๐‘2 = ๐‘Ž2๐œŽ๐‘‹

2

โ€“๐œŽ๐‘Ž๐‘‹+๐‘ = |๐‘Ž|๐œŽ๐‘‹

50

(3.27)

(3.28)

(3.29)

Page 26: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

26

๐‘ฅ = 18; ๐‘ฅ = 0.1; ๐‘Œ = 0.25๐‘‹; ๐‘Œ =? ๐‘Œ =?

๐œ‡๐‘Œ = ๐œ‡0.25๐‘‹ = 0.25๐œ‡๐‘‹ = 4.5๐œŽ๐‘Œ = ๐œŽ0.25๐‘‹ = 025๐œŽ๐‘‹ = 0.025

51

Example 3.25

More Linear Functions

If ๐‘‹ and ๐‘Œ are random variables, and a and b are

constants, then

๐œ‡๐‘Ž๐‘‹+๐‘๐‘Œ = ๐œ‡๐‘Ž๐‘‹ + ๐œ‡๐‘๐‘Œ = ๐‘Ž๐œ‡๐‘‹ + ๐‘๐œ‡๐‘Œ

More generally, if ๐‘‹1, โ€ฆ , ๐‘‹๐‘› are random variables

and ๐‘1, โ€ฆ , ๐‘๐‘› are constants, then the mean of the

linear combination ๐‘1๐‘‹1 + โ‹ฏ+ ๐‘๐‘› ๐‘‹๐‘› is given by

๐œ‡๐‘1๐‘‹1+๐‘2๐‘‹2+โ‹ฏ+๐‘๐‘›๐‘‹๐‘›= ๐‘1๐œ‡๐‘‹1

+ ๐‘2๐œ‡๐‘‹2+ โ‹ฏ + ๐‘๐‘›๐œ‡๐‘‹๐‘›

52

(3.31)

(3.32)

Page 27: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

27

Two Independent Random

Variables

If ๐‘‹ and ๐‘Œ are independent random variables, and ๐‘†and ๐‘‡ are sets of numbers, then

๐‘ƒ(๐‘‹ โˆˆ ๐‘† ๐‘Ž๐‘›๐‘‘ ๐‘Œ โˆˆ ๐‘‡) = ๐‘ƒ(๐‘‹ โˆˆ ๐‘†)P(๐‘Œ โˆˆ ๐‘‡)

More generally, if ๐‘‹1, โ€ฆ , ๐‘‹๐‘› are independent random

variables, and ๐‘†1, โ€ฆ , ๐‘†๐‘› are sets, then

๐‘ƒ(๐‘‹1 โˆˆ ๐‘†1, ๐‘‹2 โˆˆ ๐‘†2,โ€ฆ, ๐‘‹๐‘› โˆˆ ๐‘†๐‘›)= ๐‘ƒ(๐‘‹1 โˆˆ ๐‘†1)P(๐‘‹2 โˆˆ ๐‘†2) โ€ฆ๐‘ƒ(๐‘‹๐‘› โˆˆ ๐‘†๐‘›)

53

(3.33)

(3.34)

Example 3.26

Cylindrical cans have specifications regarding their height and radius. Let ๐ป be the length and ๐‘… be the radius, in mm, of a randomly sampled can. The probability mass function of ๐ป is given by ๐‘ƒ(๐ป = 119) = 0.2, ๐‘ƒ(๐ป =120) = 0.7, and ๐‘ƒ(๐ป = 121) = 0.1. The probability mass function of ๐‘… is given by ๐‘ƒ(๐‘… = 30) = 0.6 and ๐‘ƒ(๐‘… =31) = 0.4. The volume of a can is given by ๐‘‰ = ๐œ‹๐‘…2๐ป. Assume ๐‘… and ๐ป are independent. Find the probability that the volume is 108,000 mm3.๐‘ƒ(๐‘‰ = 108,000) = ๐‘ƒ(๐ป = 120 ๐‘Ž๐‘›๐‘‘ ๐‘… = 30)

= ๐‘ƒ(๐ป = 120)๐‘ƒ(๐‘… = 30)= (0.7)(0.6) = 0.42

54

Page 28: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

28

Variance Properties

If ๐‘‹1, โ€ฆ , ๐‘‹๐‘› are independent random variables,

then the variance of the sum ๐‘‹1 + โ€ฆ+ ๐‘‹๐‘› is given

by ๐œŽ๐‘‹1+๐‘‹2+โ‹ฏ+๐‘‹๐‘›2 = ๐œŽ๐‘‹1

2 + ๐œŽ๐‘‹22 + โ‹ฏ+ ๐œŽ๐‘‹๐‘›

2

If ๐‘‹1, โ€ฆ , ๐‘‹๐‘› are independent random variables

and ๐‘1, โ€ฆ , ๐‘๐‘› are constants, then the variance of

the linear combination ๐‘1 ๐‘‹1 + โ‹ฏ+ ๐‘๐‘› ๐‘‹๐‘› is given

by๐œŽ๐‘1๐‘‹1+๐‘2๐‘‹2+โ‹ฏ+๐‘๐‘›๐‘‹๐‘›

2 = ๐‘12๐œŽ๐‘‹1

2 + ๐‘22๐œŽ๐‘‹2

2 + โ‹ฏ+ ๐‘๐‘›2๐œŽ๐‘‹๐‘›

2

55

(3.35)

(3.36)

More Variance Properties

If ๐‘‹ and ๐‘Œ are independent random variables

with variances ๐œŽ๐‘‹2 and ๐œŽ๐‘Œ

2, then the variance of

the sum ๐‘‹ + ๐‘Œ is ๐œŽ๐‘‹+๐‘Œ2 = ๐œŽ๐‘‹

2 + ๐œŽ๐‘Œ2

The variance of the difference ๐‘‹โ€“๐‘Œ is ๐œŽ๐‘‹โˆ’๐‘Œ2 =

๐œŽ๐‘‹2 + ๐œŽ๐‘Œ

2

56

(3.37)

(3.38)

Page 29: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

29

Example 3.27

An object with initial temperature ๐‘‡0 is placed in an environment with ambient temperature ๐‘‡๐‘Ž. According to Newtonโ€™s law of cooling, the temperature T of the object is given by ๐‘‡ = ๐‘๐‘‡0 + (1 โ€“ ๐‘)๐‘‡๐‘Ž, where ๐‘ is a constant that depends on the physical properties of the object and the elapsed time. Assuming that ๐‘‡0 has mean 25oC and standard deviation of 2oC, and ๐‘‡๐‘Ž has mean 5oC and standard deviation of 1oC. Find the mean of ๐‘‡ when ๐‘ =0.25. Assuming that ๐‘‡0 and ๐‘‡๐‘Ž are independent, find the standard deviation of ๐‘‡ at that time.

57

Example 3.27

58

๐œ‡๐‘‡ = ๐œ‡0.25๐‘‡0+.075๐‘‡๐‘Ž

= 0.25๐œ‡๐‘‡0+ 0.75๐œ‡๐‘‡๐‘Ž

= 6.25 + 3.75 = 10

๐œŽ๐‘‡ = ๐œŽ20.25๐‘‡0+.075๐‘‡๐‘Ž

= 0.25 2๐œŽ2๐‘‡0

+ 0.75 2๐œŽ2๐‘‡๐‘Ž

= 0.25 2(2)2 + 0.75 2(1)2

= 0.9014

Page 30: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

30

Independence and Simple

Random Samples

Definition: If ๐‘‹1, โ€ฆ , ๐‘‹๐‘› is a simple random

sample, then ๐‘‹1, โ€ฆ , ๐‘‹๐‘› may be treated as

independent random variables, all from the

same population.

59

Properties of

If ๐‘‹1, โ€ฆ , ๐‘‹๐‘› is a simple random sample from a

population with mean and variance 2, then the

sample mean ๐‘‹ is a random variable with

๐œ‡ ๐‘‹ = ๐œ‡

๐œŽ ๐‘‹2 =

๐œŽ2

๐‘›The standard deviation of ๐‘‹ is

๐œŽ ๐‘‹ =๐œŽ

๐‘›

60

(3.39)

(3.40)

(3.41)

Page 31: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

31

Example 3.28

The lifetime of a light bulb in a certain application has

mean 700 hours and standard deviation 20 hours.

The light bulbs are packaged 12 to a box. Assuming

that light bulbs in a box are a simple random sample of

light bulbs, find the mean and standard deviation of the

average lifetime of the light bulbs in a box.

61

๐‘‡= (T1 + T1 +โ€ฆ+ T1 )/12

๐œ‡ ๐‘‡ = ๐œ‡ = 700

๐œŽ ๐‘‡ =๐œŽ

๐‘›=

20

12= 5.77

Standard Deviations of

Nonlinear Functions of Random Variables

If ๐‘‹ is a random variable with (small) standard deviation ๐‘‹, and if ๐‘ˆ is a function of ๐‘‹, then

62

(3.42)๐œŽ๐‘ˆ โ‰ˆ๐‘‘๐‘ˆ

๐‘‘๐‘‹๐œŽ๐‘‹

Page 32: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

32

Example 3.29

The radius ๐‘… of a circle is measured to be 5.43 cm, with a standard deviation of 0.01 cm. Estimate the area of the circle, and find the standard deviation of this estimate.

Area = ๐ด = ๐‘…2 = (5.43)2

63

๐œŽ๐ด โ‰ˆ๐‘‘๐ด

๐‘‘๐‘…๐œŽ๐‘…

= (2R)(0.01)

Standard Deviations of

Nonlinear Functions of Random Variables

If ๐‘‹1, โ€ฆ , ๐‘‹๐‘› are independent random variables with standard deviations 1, โ€ฆ ,๐‘› (small), and if

๐‘ˆ = ๐‘ˆ(๐‘‹1, โ€ฆ , ๐‘‹๐‘›) is a function of ๐‘‹1, โ€ฆ , ๐‘‹๐‘› , then

64

(3.43)

๐œŽ๐‘ˆ โ‰ˆ๐œ•๐‘ˆ

๐œ•๐‘‹1

2

๐œŽ๐‘ฅ12 +

๐œ•๐‘ˆ

๐œ•๐‘‹2

2

๐œŽ๐‘ฅ22 + โ‹ฏ+

๐œ•๐‘ˆ

๐œ•๐‘‹๐‘›

2

๐œŽ๐‘ฅ๐‘›2

Page 33: Probability - Florida International Universityweb.eng.fiu.edu/leet/Eng_Data/chapt03_2014.pdfmanufactured by a certain process varies from wire to wire. Overall, 48% of the wires produced

1/30/2014

33

Example 3.30

Assume the mass of a rock is measured to be m=674.01.0g, and the volume of the rock is measured to be V=261.00.1 mL. The density of the rock (D) is given by m/V. Estimate the density and find the standard deviation of the estimate.

Density = ๐ท = ๐‘š/๐‘‰ = 674.0/261.0 = 2.582 ๐‘”/๐‘š๐ฟ

65

๐œŽ๐ท โ‰ˆ๐œ•๐ท

๐œ•๐‘š

2๐œŽ๐‘š

2 +๐œ•๐ท

๐œ•๐‘‰

2๐œŽ๐‘‰

2 =

1

๐‘‰

2๐œŽ๐‘š

2 +โˆ’๐‘š

๐‘‰2

2๐œŽ๐‘‰

2

Summary

Probability and rules

Conditional probability

Independence

Random variables: discrete and continuous

Probability mass functions

Probability density functions

Cumulative distribution functions

Means and variances for random variables

Linear functions of random variables

Mean and variance of a sample mean

66