14
STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Embed Size (px)

DESCRIPTION

Observational Study vs. Experimental Design Collects information from individuals making no attempt to influence the responses Various ways to collect information Simple random sampling, stratified random sampling Imposes an intervention on individuals in order to observe their responses 3 principles Control Randomization Repetition Observational Study Experimental Design

Citation preview

Page 1: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

STAT 104: Section 4

18 Oct, 2007TF: Daniel Moon

Page 2: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Agenda of Today Observational Study vs. Experimental of

Design Probability Rules Bayes’ Rule Random Variables

Page 3: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Observational Study vs. Experimental Design

Collects information from individuals making no attempt to influence the responses

Various ways to collect information Simple random

sampling, stratified random sampling

Imposes an intervention on individuals in order to observe their responses

3 principles Control Randomization Repetition

Observational StudyObservational Study Experimental DesignExperimental Design

Page 4: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Probability Rules

Page 5: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Basic Formulas

P(A and B) = P(A) X P(B|A) Independence

Page 6: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Example of Conditional Probability

Let’s use random variables next time!

Page 7: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Find the iPod!!!

What is the probability you picked up friend A’s iPod given the first song you listened was Rock?

• Friend A listens to, 30% Rock, 70% Ballads

• Friend B listens to, 80% Rock, 20% Ballads

• Given a 50% chance you picked up friend A or friend B’s ipods

Page 8: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Examples The clumsy jewel thief. A jewel thief and his partner planned to steal 2 identical

diamonds from a jewelry store. They had 2 similar, but fake diamonds prepared.

The plan was for the thief’s accomplice to faint and, while the store’s staff were distracted, for the thief to grab the two real diamonds from the viewing pad and replace them with the two fake diamonds.

On the day of the robbery all was going according to plan up to the point when the thief’s accomplice fainted and the staff rushed to her assistance. The thief grabbed the two real diamonds from the viewing pad and put them in his pocket, but then to his horror realized that the two fake diamonds were already in that same pocket.

The thief had to quickly grab two stones at random from the four (two real and two fake) in his pocket and leave them on the viewing pad after which he left the store with his accomplice.

Page 9: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Examples Give the sample space S that

corresponds to the two stones in the thief’s pocket as he leaves the store [(D1,F1), etc.] and assign probabilities to the elements of that sample space.

Page 10: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Examples Let X be the number of real diamonds the

thief had in his pocket as he left the store. Give the probability distribution of X.

What is the probability that at least one of the two stones in the thief’s pocket is real?

Page 11: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Examples What is the expected number of real diamonds in

the thief’s pocket (show your work).

The thief takes the 2 stones to an appraiser to find out how many real stones he has. The thief hands a stone to the appraiser and after looking at the stone under a magnifying lens, the appraiser says it is a real diamond. Knowing that at least one of the stones is a real diamond, what is the probability that the second stone, still in the thief’s pocket, is also real?

Page 12: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Binomial Probability

Page 13: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Examples 2. Nationwide it is known that 20% of Dell laptop

computers will fail in the first year (failure of the power supply or disk drive, etc.).

Three Harvard Freshmen men are roommates and have each (by chance) purchased a new Dell laptop computer. What is the probability that at least one of these three Dell laptops will fail during the year?

Page 14: STAT 104: Section 4 18 Oct, 2007 TF: Daniel Moon

Examples 2. One thousand Harvard students purchased a

new Dell laptop this year. What is the probability that more than 220 of these 1,000 Dell laptops will fail in the first year?