Docsity

Statistics for Scientists and Engineers: Understanding Probability and Event Combinations , Study notes of Statistics

Partial preview of the text

Download Statistics for Scientists and Engineers: Understanding Probability and Event Combinations and more Study notes Statistics in PDF only on Docsity!

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

I. Basic Probability

An

experiment

is any exercise whose outcome is unknown in

advance.A

sample space

S

represents all possible outcomes for the

experiment.

Example I.A

Experiment: Flip a fair coin.

S

= {H,T}.

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Example I.B

Experiment: Select an individual from a population and observegender and smoking status.

S

= {female smoker, female

nonsmoker, male smoker, male nonsmoker}.

Example I.C

We select an individual from this class and inquire about theirbirthday. What is the sample space for this experiment?

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Example I.D

Experiment: flip a fair coin, with

S

= {H,T}. Note that

P

(H) =

P

(T) = ½.

Hence, each probability lies between 0 and 1, inclusive, and

P

( S

) = 1.

Example I.E

Suppose we sample an individual from the U.S. population, and categorize themaccording to race, so that

S

= {White, Black, Hispanic, Asian, Native American,

Other}. If

P

(White) = 0.75,

P

(Black) = 0.12,

P

(Hispanic) = 0.06,

P

(Asian) =

0.04, what are the possible values of

P

(Native American)?

If

P

(Other) = 0.02, then what is

P

(Native American)?

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Regarding Our Choice of Examples

It is sometimes easiest to illustrate concepts of basic probability byusing games of chance, such as flipping coins, rolling dice, ordrawing face cards. These experiments are relatively wellunderstood with probabilities that are easy to verify.In addition, the study of modern probability began as peoplebecame interested in better understanding the randomness in gamesof chance.

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Events

An

event

is a subset of outcomes from a given experiment. We

usually denote an event by a capital letter, such as

A

,^ B

, or

C

, for

example.An event

A

consists of all outcomes in an experiment’s sample

space

S

such that

A

is observed to occur if any one of those

outcomes is observed to occur.The probability of an event

A

  • denoted by

P

( A

) – is the sum of the

probabilities of all of the outcomes belonging to

A

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Example I.F

We roll two fair six-sided dice. The sample space is given by:

} ) 6 , 6 (

), 3 , 6 ( ), 2 , 6 ( ), (^1) , (^6) (

), 6 , 3 (

), 3 , 3 ( ), 2 , 3 ( ), (^1) , (^3) (

), 6 , 2 (

), 3 , 2 ( ), 2 , 2 ( ), (^1) , (^2) (

), 6 , 1 (

), 3 , 1 ( ), 2 , 1 ( ), (^1) , (^1) ( {

L

M

O

M

M

M

L L L

= S

Let

A

= {The sum of the two dice is prime}.

What outcomes belong to

A

What is

P

( A

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Combinations of Events

In research, we are often interest in how two or more events relate to oneanother. For example, suppose that a naturalist wants to assess how a particularmicrobe is associated with something like chronic wasting disease in elk. Shemight pose questions such as:•

What is the chance that a sampled elk will have both the microbe

and

the

disease?

-^

What proportion of elk have the disease? The microbe? Either one or theother?

-^

Given that an elk has the microbe, what’s the probability that it has thedisease?

-^

Do these proportions depend further on other factors, such as the size orhabitat of the elk?

All of these questions involve probabilities of combinations of two or moreevents.

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Definitions

Given two events

A

and

B

in a sample space

S

, we are interested

in the following combinations:

Event intersection (“

A

and

B

”), denoted by

with probability denoted by

Event union (“

A

and/or

B

”), denoted by

with probability denoted by

B

A

B

A

(^

B

A

P

(^

B

A

P

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Probabilities of Event Combinations

The Venn diagram below makes it easy to see that

(^

B A P B P A P B A P

Use a Venn diagram to show, for example, that

(^

B

A

B

A

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Example I.H

Continuing with

Example I.F

, let

A

= {The sum of the two dice is prime}, and B

= {The sum of the two dice is odd}.

What is

? What is

What is

? What is

B

A

(^

B

A

P

B

A

(^

B

A

P

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Conditional Probability

Some of the most compelling questions in research follow thispattern: “If X, then what of Y?” For example,

(^

B

P

B A P B A P

•^

If a patient with cancer is given this drug, what is hisprobability of recovery?

-^

Given that a survey participant is female, how will she likelyrespond?

Such questions can be assessed using

conditional probability

Given two events

A

and

B

, the conditional probability of

A

given

B

is defined as

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Conditional Probability

Note that

“A

| B”

is not a set of outcomes – in other words,

A

| B

is

not

a combination of events, like an intersection or union. Hence, it only makes sense to discuss

conditional probabilities

  • not

conditional events. What we are asking is: “Does knowledge that B

occurred give us additional information about the likelihood of A

Example I.I

Consider again

Example I.H

. Without doing any computation,

does knowing that the sum of two dice is odd change thelikelihood that the sum is also prime?

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Conditional Probability and Event Intersections

Using simple algebra, you can see thatThis can be extended

ad infinitum

:

Example I.J

A deck of face cards has 4 suits (hearts, diamonds, clubs, and spades) and 13denominations per suit (2, 3,…, 10, J, Q, K, A). Hearts and diamonds are red suits, andclubs and spades are black suits. Hence, there are 52 total cards – 26 red and 26 black.What is the probability that I draw three consecutive red cards (without replacement)from a shuffled deck?Note that there are two ways of approaching this solution: we can either enumerate theentire sample space and count up the number of ways of drawing three reds, or we canapply the relationship shown above.

). | ( ) ( )

(^

A B P A P B A

P^

=

∩

etc. ),

| ( ) | ( ) ( )

(^

B A C P A B P A P C B A

P^

∩

=

∩ ∩

Stat 3000 – Statistics for Scientists and EngineersDr. Corcoran, Summer 2009

Independence

Two events

A

and

B

are said to by

independent

if

P

( A

| B

P

( A

In other words, knowledge about

B

does not change the likelihood

of

A

. In

Example I.I

,^ A

and

B

are therefore said to be

dependent

By virtue of the formula shown above, if

A

and

B

are independent,

then Important: “mutually exclusive”

and

“independent”

are not

synonymous! On the contrary, they are nearly antithetic. Why?

(^

B P A P B A P