errors: type 1 ( ) type 2 ( ) & power federal funds are to be allocated for financial aid to...

44
ERRORS: TYPE 1 () TYPE 2 () & POWER

Upload: moriah-etherton

Post on 30-Mar-2015

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

ERRORS: TYPE 1 () TYPE 2 () & POWER

Page 2: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

• Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost of books to a college student is $300. We are concerned that it is really higher. So what do we do? We perform a hypothesis test.

• Ho: μ = 300 the mean cost of books is $300

• Ha: μ > 300 the mean cost of books is > $300

Page 3: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

=325

Is the p-value < .01 ?

x

If the true mean is really higher then we will not be giving the students enough money to purchase books. So we take a random sample of 36 students who purchased books and the sample test data we collected has = 325

Let = .01

x

Page 4: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

=325

p-value = .0225

x

Lets assume the null is correct µ = 300 and the sample test data we collected of = 325 s gives a p-value = .0225 Let = .01. So what do we do?

x

Page 5: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

= 325

p-value = .0225

x

Since the p- value = .0225 not < we do not reject the null.

= .01

We can not say the mean cost of books is higher than $300

Page 6: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

p-value = ? p-value = .0225

325

But if the true cost is $335 then the distribution for it is below and the real p-value for 325 is a different value than .0186. The red region is the real p-value.

Page 7: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

=325

p-value = .2025

x

True mean

But, if null is wrong and the true mean is µ = $335 then the real p-value for = 325 is .2023. x

P-value for = 335 is

Page 8: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

=

p-value =

x

If null is wrong and the true mean is really µ = $335 So what is the probability to make a wrong decision? The red region below is known as β the probability of a type 2 error which depends on

Page 9: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

Ho:

p-value = ? Sig. level = .01

= ?x

So by overlapping the two graphs we can see what to do. We need to find the data value that corresponds to the alpha = .01 the significance level.

Page 10: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

Ho:

p-value = ?

Sig. level = .01

= 328x

The z score for alpha of .01 is 2.33

3672

30033.2

x Solving this equation for we

get a value of 328.x

Recall our 325 is to the left of 328 in the red region.

Page 11: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

Ho:

p-value = .28

Sig. level = .01

= 328

x

We now need to find the p-value for 328 with the true μ = 335. This value is known as type 2 error.

28.2810.335328

3672

zP So the p-value for 328

with a true mean of 335 is .28

x

True mean

Page 12: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

Ho:

p-value = .28 when = 335

α = .01

= 328

x

Below we see Alpha and Beta together.

Page 13: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

p-value = .28

p-value = .72

=328

POWER

x

Ho:

Now when the null is wrong then the area to the right of 328 is the probability of making the correct decision. This is called power. 1 -

Page 14: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

p-value = .72

=328

POWER

x

We really do not know what the power is because we do not know what is until you know the true value for

Page 15: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

p-value = .97

=328

POWER

x

Now notice if the true is even farther to the right of 300 then power gets even bigger.

Page 16: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

p-value = .97

= 328

POWER

x

Page 17: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

= 325

p-value = .0225

x

Now if .05 then we would have rejected a false null

Since the p- value = .0225 < reject the null.

Page 18: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

When is small then is big, if the null is false.

So the probability of a type1 error is small, rejecting a truthful null. But the probability of making a type 2 error is big, failing to reject a false null.

Page 19: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

When is big then is smaller.

So the probability of a type1 error is bigger, rejecting a truthful null. But we reduce the probability of making a type 2 error. This area is smaller, failing to reject a false null.

Truth

Page 20: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

= ?

Not knowing whether the null is true or false is what makes picking a correct alpha challenging.

So you need to determine which type of error you do not want to make an then choose accordingly.

Truth

Page 21: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

= ?

If you do not want to reject a truthful null pick a small (Type 1 error) But you stand the chance of making a type two error. Failing to reject the null when it is false.

Page 22: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

= ?

If you want to reject a false null, which decreases the type 2 error pick a big But you increase the chance of making a type one error. Rejecting the null when it is true.

Page 23: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

= ?

So looking at our problem what is the worse error?

Type 1 reject a truthful null. So we would give the students more money when we did not need to. Big alpha will do this.

Type 2 error. Failing to reject a false null. Not giving the students enough money. Small alpha will do this.So you need to determine which type of error you do not want to make an then choose accordingly.

Page 24: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

• A doctor thinks that a new diet will significantly increases the birth weight of babies. In 2002, the birth weight of full term babies were normally distributed with a mean of 7.53 pounds and a standard deviation of 1.15 pounds. The doctor randomly selects 50 recently pregnant mothers and persuades them to partake in the new diet. The mean weigh from these 50 babies 7.79 pounds. Is there sufficient evidence to support the claim the new diet will increase the birth weights of newborns? The significance level is 0.05.

• Write the null and alternative:

• Describe a type 1 and type 2 error.

• What is the probability for a type 1 error.

• We can not determine the probability of a type 2 error with out knowing the truth.

Page 25: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

If the true weight was 8lbs, what is the probability of the type 2 error?

Page 26: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

Go to Notebook

Page 27: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

We are done

Page 28: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

x

x

Page 29: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

ERRORS: TYPE 1 () TYPE 2 () & POWER

Page 30: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

1.578

Page 31: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

1.578

Page 32: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

1.578

Page 33: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost
Page 34: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

1.578

Power

Page 35: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

Power

1.578

Page 36: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

1.578

Power

Page 37: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost
Page 38: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

1.578

p-value = .01

Page 39: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

1.578

p-value = .255

Page 40: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

p-value = .255 p-value = .01

1.578

Page 41: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

p-value = .255

p-value = .745

1.578

POWER

Page 42: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

p-value = .745

1.578

POWER

Page 43: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

p-value = .985

1.578

POWER

Page 44: ERRORS: TYPE 1 ( ) TYPE 2 ( ) & POWER Federal funds are to be allocated for financial aid to students for the cost of books. It is believe the mean cost

p-value = .985

1.578

POWER