197
Hypothesis Testing

Hypothesis Testing

Embed Size (px)

DESCRIPTION

Hypothesis Testing

Citation preview

Page 1: Hypothesis Testing

Hypothesis Testing

Page 2: Hypothesis Testing

The logic of statistical hypothesis testing follows the logic of judicial decision making.

Page 3: Hypothesis Testing

A jury is asked to decide whether a defendant is guilty or not guilty.

Page 4: Hypothesis Testing

A jury is asked to decide whether a defendant is guilty or not guilty. It is a dicho-tomous decision, guilty or not guilty.

Page 5: Hypothesis Testing

A jury is asked to decide whether a defendant is guilty or not guilty. It is a dicho-tomous decision, guilty or not guilty. There is no in-between or partial decision.

???

Page 6: Hypothesis Testing

A jury is asked to decide whether a defendant is guilty or not guilty. It is a dicho-tomous decision, guilty or not guilty. There is no in-between or partial decision.The jury does not begin its decision-making process in a neutral position.

Page 7: Hypothesis Testing

A jury is asked to decide whether a defendant is guilty or not guilty. It is a dicho-tomous decision, guilty or not guilty. There is no in-between or partial decision.The jury does not begin its decision-making process in a neutral position.

The default position is “not guilty.”

Page 8: Hypothesis Testing

A jury is asked to decide whether a defendant is guilty or not guilty. It is a dicho-tomous decision, guilty or not guilty. There is no in-between or partial decision.The jury does not begin its decision-making process in a neutral position.

The default position is “not guilty.”

The prosecution must mount enough evidence to convince the jury to move from its default position of not guilty to a verdict of guilty.

Page 9: Hypothesis Testing

The jury will make a decision which may or may not coincide with reality.

Page 10: Hypothesis Testing

When the jury decides “not guilty” and the defendant is, in reality, not guilty,

It is true because the not guilty (negative) decision aligns with the not guilty (negative) reality.

Page 11: Hypothesis Testing

When the jury decides “not guilty” and the defendant is, in reality, not guilty, they have made a correct decision called a “true negative decision.”

It is true because the not guilty (negative) decision aligns with the not guilty (negative) reality.

Page 12: Hypothesis Testing

When the jury decides “not guilty” and the defendant is, in reality, not guilty, they have made a correct decision called a “true negative decision.”

It is true because the not guilty (negative) decision aligns with the not guilty (negative) reality.

not guilty

and I reallywasn’t guilty!

true negative

Page 13: Hypothesis Testing

When the jury decides “guilty” and the defendant is, in reality, guilty,

It is true because the guilty (positive) decision aligns with the guilty (positive) reality.

Page 14: Hypothesis Testing

When the jury decides “guilty” and the defendant is, in reality, guilty, they have made a correct decision called a “true positive” decision.

It is true because the guilty (positive) decision aligns with the guilty (positive) reality.

Page 15: Hypothesis Testing

When the jury decides “guilty” and the defendant is, in reality, guilty, they have made a correct decision called a “true positive” decision.

It is true because the guilty (positive) decision aligns with the guilty (positive) reality.

guilty

and I reallyWAS guilty!

true positive

Page 16: Hypothesis Testing

When the jury decides “not guilty” and the defendant is, in reality, guilty,

Page 17: Hypothesis Testing

When the jury decides “not guilty” and the defendant is, in reality, guilty, they have made an incorrect decision called a “false negative error” which is also called a Type II or beta error.

Page 18: Hypothesis Testing

When the jury decides “not guilty” and the defendant is, in reality, guilty, they have made an incorrect decision called a “false negative error” which is also called a Type II or beta error. It is false because the “not guilty” (negative) decision does not align with the guilty (positive) reality.

not guilty

and I reallyWAS guilty!

false negative

Page 19: Hypothesis Testing

When a jury decides “guilty” and the defendant is, in reality, not guilty,

Page 20: Hypothesis Testing

When a jury decides “guilty” and the defendant is, in reality, not guilty, they have made an incorrect decision called a “false positive error”

Page 21: Hypothesis Testing

When a jury decides “guilty” and the defendant is, in reality, not guilty, they have made an incorrect decision called a “false positive error” which is also called a Type I or alpha error.

Page 22: Hypothesis Testing

When a jury decides “guilty” and the defendant is, in reality, not guilty, they have made an incorrect decision called a “false positive error” which is also called a Type I or alpha error. It is false because the “guilty” (positive) decision is not aligned with the not guilty (negative) reality.

guilty

but I reallyWASN’T guilty!

false positive

Page 23: Hypothesis Testing

Although we prefer correct decisions, if we cannot be correct, we prefer the false negative error over the false positive error.

In other words you’d rather render a “NOT GUILTY” verdict when there is GUILT.

Than a “GUILTY” verdict where there is NO GUILT.

Page 24: Hypothesis Testing

Although we prefer correct decisions, if we cannot be correct, we prefer the false negative error over the false positive error.

In other words you’d rather render a “NOT GUILTY” verdict when there is GUILT.

Than a “GUILTY” verdict where there is NO GUILT.

not guilty

and I reallyWAS guilty!

Page 25: Hypothesis Testing

Although we prefer correct decisions, if we cannot be correct, we prefer the false negative error over the false positive error.

In other words you’d rather render a “NOT GUILTY” verdict when there is GUILT.

Than a “GUILTY” verdict where there is NO GUILT.

not guilty

and I reallyWAS guilty!

guilty

but I reallyWASN’T guilty!

Page 26: Hypothesis Testing

In judicial decisions we would rather let a guilty defendant go free . . .

than convict and imprison an innocent defendant.

Our default position of “not guilty” supports this

preference and protects against the least favorable condition.

Page 27: Hypothesis Testing

In judicial decisions we would rather let a guilty defendant go free . . .

than convict and imprison an innocent defendant.

Our default position of “not guilty” supports this

preference and protects against the least favorable condition.

Page 28: Hypothesis Testing

In judicial decisions we would rather let a guilty defendant go free . . .

than convict and imprison an innocent defendant.

Our default position of “not guilty” supports this

preference and protects against the least favorable condition.

Page 29: Hypothesis Testing

Review the following slide and answer the questions that follow:

Page 30: Hypothesis Testing

Review the following slide and answer the questions that follow:

What type of decision is made when a guilty (+) verdict is rendered and the person is guilty (+)?

Page 31: Hypothesis Testing

Review the following slide and answer the questions that follow:

What type of decision is made when a guilty (+) verdict is rendered and the person is guilty (+)?

Page 32: Hypothesis Testing

Review the following slide and answer the questions that follow:

What type of decision is made when a not guilty (-) verdict is rendered and the person is not guilty (-)?

Page 33: Hypothesis Testing

Review the following slide and answer the questions that follow:

What type of decision is made when a not guilty (-) verdict is rendered and the person is not guilty (-)?

Page 34: Hypothesis Testing

Review the following slide and answer the questions that follow:

What type of decision is made when a guilty (+) verdict is rendered and the person is not guilty (-)?

Page 35: Hypothesis Testing

Review the following slide and answer the questions that follow:

What type of decision is made when a guilty (+) verdict is rendered and the person is not guilty (-)?

Page 36: Hypothesis Testing

Review the following slide and answer the questions that follow:

What type of decision is made when a not guilty (-)verdict is rendered and the person is guilty (+) ?

Page 37: Hypothesis Testing

Review the following slide and answer the questions that follow:

What type of decision is made when a not guilty (-)verdict is rendered and the person is guilty (+) ?

Page 38: Hypothesis Testing

Each conviction protects against Type I error at a different stringency according to the gravity of the punishment to be imposed.

Page 39: Hypothesis Testing

The haunting reality is that we really never know the reality of the guilt or innocence of defendants.

We make our best decisions knowing that there is a probability that we have made an error.

Page 40: Hypothesis Testing

The haunting reality is that we really never know the reality of the guilt or innocence of defendants.

We make our best decisions knowing that there is a probability that we have made an error.

Page 41: Hypothesis Testing

Judicial Decisions

Statistical hypothesis testing and decision-making are directly analogous to judicial decision making.

Statistical Decisions

Page 42: Hypothesis Testing

Let’s consider an example:

A statistician is asked to decide whether a difference exists between two groups of people in terms of some attribute (e.g., excitability). It is a dichotomous decision (meaning only two options), different or not different. There is no in-between or partial decision.

Page 43: Hypothesis Testing

Let’s consider an example:

A statistician is asked to decide whether a difference exists between two groups of people in terms of some attribute (e.g., excitability). It is a dichotomous decision (meaning only two options), different or not different. There is no in-between or partial decision.

Page 44: Hypothesis Testing

Let’s consider an example:

A statistician is asked to decide whether a difference exists between two groups of people in terms of some attribute (e.g., excitability).

It is a dichotomous decision (meaning only two options), different or not different. There is no in-between or partial decision. ?x

Page 45: Hypothesis Testing

The statistician does not begin her decision-making in a neutral position. The default position is “not different.” This is also called the “null hypothesis.”

Page 46: Hypothesis Testing

The statistician does not begin her decision-making in a neutral position. The default position is “not different.” This is also called the “null hypothesis.”

Page 47: Hypothesis Testing

The statistician does not begin her decision-making in a neutral position. The default position is “not different.” This is also called the “null hypothesis.”

Page 48: Hypothesis Testing

The research findings must present sufficient evidence to convince the statistician to move from her default position of no difference to a conclusion that the groups are different in terms of the attribute.

Page 49: Hypothesis Testing

The statistician will make a decision which may or may not coincide with reality.

The apparent differences may be due to chance or may be real.

Page 50: Hypothesis Testing

The statistician will make a decision which may or may not coincide with reality.

The apparent differences may be due to chance or may be real.

OR Something that is really happening

Page 51: Hypothesis Testing

When the statistician decides “not different” (fails to reject the null hypothesis, maintains the default position) and the groups are, in reality, not different, she has made a correct decision called a “true negative decision.”

true negative

Page 52: Hypothesis Testing

It is true because the “no difference” (negative) decision aligns with “no difference” reality.

not guilty

and I reallyWASN’T guilty!

true negative

Page 53: Hypothesis Testing

When the statistician decides that there is a difference (rejects the null hypothesis, moves off of the default position) and the groups are, in reality, different, she has made a correct decision called a true positive decision.

true positive

Page 54: Hypothesis Testing

It is true because the “different” (positive) decision aligns with the “different” (positive) reality.

guilty

and I reallyWAS guilty!

true positive

Page 55: Hypothesis Testing

When the statistician decides “not different” (fails to reject the null hypothesis, maintains the default position) and the group are, in reality different, she has made a false negative error.

false negative

Page 56: Hypothesis Testing

It is false because the decision of no difference (negative) does not align with difference (positive) reality.

false negative

not guilty

Ha ha! and I really

WAS guilty!

Page 57: Hypothesis Testing

Although we prefer correct decisions, if we cannot be correct, we then prefer false negative error over the alternative error.

Page 58: Hypothesis Testing

When a statistician decides that there is a difference (positive) between the groups and rejects the null hypothesis of no difference and, in reality, there is no difference, she has made a false positive error (also called Type I error or alpha error.)

false positive

Page 59: Hypothesis Testing

It is false because the “difference” (positive) decision does not align with the “no difference” (negative) reality.

guilty

but I reallyWASN’T guilty!

false positive

Page 60: Hypothesis Testing

Our hypothesis testing conventions protect against false positive, Type I error by holding a default position of the null hypothesis.

αBeware of

Type I Error

Page 61: Hypothesis Testing

We set a standard of evidence that is required before rejecting the default null hypothesis.

Page 62: Hypothesis Testing

The standard of evidence is based on the probability density of the sampling distribution.

Page 63: Hypothesis Testing

Using probability density we can estimate the probability of Type I error.

If the mean of the sample is here, then we

have a .0001 or .01% chance that we made a

Type I error.

Page 64: Hypothesis Testing

Or in other words, we have a .01% chance of rejecting the null hypothesis that the group scores come from two different populations (claiming guilty) and being wrong when both groups were really part of the same population (not guilty)

Page 65: Hypothesis Testing

When the probability of Type I error is at a low enough level, we reject the default, null hypothesis. Like in our previous example.

Page 66: Hypothesis Testing

The conventional level of tolerable Type I error is .05.

95%

.05 or 5% chance that we selected a sample from this population and claimed it was a sample from another

population = false positive

Page 67: Hypothesis Testing

This means that out of 100 similar decisions based on these data …

05 06 07 08 09 10 11 12 13 14 15 16

06 07 08 09 10 11 12 13 14 15

07 08 09 10 11 12 13 14

08 09 10 11 12 13

09 10 11 12

10 11

10 155

Page 68: Hypothesis Testing

… we will be wrong (make a Type I error) less than 5 times.

05 06 07 08 09 10 11 12 13 14 15 16

06 07 08 09 10 11 12 13 14 15

07 08 09 10 11 12 13 14

08 09 10 11 12 13

09 10 11 12

10 11

10 155

Page 69: Hypothesis Testing

One advantage that statisticians have over juries is that we can estimate the probability of Type I error while they cannot.

I can estimate the probability

of being right or wrong

Not sure of the probability of being right or

wrong

Page 70: Hypothesis Testing

(Or, at least it is easier for us to do so than for them. There is some recent research in rape cases that has estimated how frequently juries make Type I errors in such cases.)

Page 71: Hypothesis Testing

Even so, we do not get to make the similar decision 100 times.

Page 72: Hypothesis Testing

We tend to make the decision once. The haunting reality is that we never know in this one decision whether it is one of the probably occurring Type I errors.

Page 73: Hypothesis Testing

In other words, we take a sample of 30 persons and get a score of 7.

05 06 07 08 09 10 11 12 13 15 16

06 07 08 09 10 11 12 13 15

07 08 09 10 11 12 13 14

08 09 10 11 12 13

09 10 11 12

10 11

10 155

14

14

Page 74: Hypothesis Testing

In other words, we take a sample of 30 persons and get a score of 7. And then another sample and get a score of 12, and another with a score of 11, and so on and so on until the distribution below emerges.

05 06 07 08 09 10 11 12 13 15 16

06 07 08 09 10 11 12 13 15

07 08 09 10 11 12 13 14

08 09 10 11 12 13

09 10 11 12

10 11

10 155

14

14

Page 75: Hypothesis Testing

But since, in real life, we usually only take one sample of 30 for our research purposes,

05 06 07 08 09 10 11 12 13 14 15 16

06 07 08 09 10 11 12 13 14 15

07 08 09 10 11 12 13 14

08 09 10 11 12 13

09 10 11 12

10 11

10 155

14

14

Page 76: Hypothesis Testing

But since, in real life, we usually only take one sample of 30 for our research purposes,

05 06 07 08 09 10 11 12 13 14 15 16

06 07 08 09 10 11 12 13 14 15

07 08 09 10 11 12 13 14

08 09 10 11 12 13

09 10 11 12

10 11

10 155

14

14

10

Page 77: Hypothesis Testing

But since, in real life, we usually only take one sample of 30 for our research purposes, we don’t know if the sample was selected from the far left of the distribution below

05 06 07 08 09 10 11 12 13 14 15 16

06 07 08 09 10 11 12 13 14 15

07 08 09 10 11 12 13 14

08 09 10 11 12 13

09 10 11 12

10 11

10 155

14

14

06

Page 78: Hypothesis Testing

But since, in real life, we usually only take one sample of 30 for our research purposes, we don’t know if the sample was selected from the far left of the distribution below or the far right

05 06 07 08 09 10 11 12 13 14 15 16

06 07 08 09 10 11 12 13 14 15

07 08 09 10 11 12 13 14

08 09 10 11 12 13

09 10 11 12

10 11

10 155

14

14

16

Page 79: Hypothesis Testing

But since, in real life, we usually only take one sample of 30 for our research purposes, we don’t know if the sample was selected from the far left of the distribution below or the far right or the middle.

05 06 07 08 09 10 11 12 13 14 15 16

06 07 08 09 10 11 12 13 14 15

07 08 09 10 11 12 13 14

08 09 10 11 12 13

09 10 11 12

10 11

10 155

14

14

11

Page 80: Hypothesis Testing

But since, in real life, we usually only take one sample of 30 for our research purposes, we don’t know if the sample was selected from the far left of the distribution below or the far right or the middle. So, we examine the probability that the sample did or did not come from the far left or the far right.

05 06 07 08 09 10 11 12 13 14 15 16

06 07 08 09 10 11 12 13 14 15

07 08 09 10 11 12 13 14

08 09 10 11 12 13

09 10 11 12

10 11

10 155

14

14

Page 81: Hypothesis Testing

But since, in real life, we usually only take one sample of 30 for our research purposes, we don’t know if the sample was selected from the far left of the distribution below or the far right or the middle. So, we examine the probability that the sample did or did not come from the far left or the far right.

05 06 07 08 09 10 11 12 13 14 15 16

06 07 08 09 10 11 12 13 14 15

07 08 09 10 11 12 13 14

08 09 10 11 12 13

09 10 11 12

10 11

10 155

14

14

Hmm. . . What are

the chances

the sample came from

the far right or left

of the Distri-

bution?

Page 82: Hypothesis Testing

So let’s say we want to know if the students who go to a college party are more excited to be there than little girls at a birthday party.

Page 83: Hypothesis Testing

Here are the sampling distributions of the excitability of young girls at a birthday party.

Page 84: Hypothesis Testing

Let’s say we don’t have the same kind of distribution for college student excitability at a party.

?

Page 85: Hypothesis Testing

We want to know if there is a statistical difference between the girls at the birthday party and the excitability of college students at a Friday night party.

Page 86: Hypothesis Testing

We randomly select a group of college students at a party and measure their levels of excitability.

Page 87: Hypothesis Testing

Our random selection is “13”.

13

Page 88: Hypothesis Testing

Our random selection is “13”. Since this number does not lie in the extreme ends we would reject the null hypothesis or render a judgment of “not guilty”.

13

Page 89: Hypothesis Testing

Our random selection is “13”. Since this number does not lie in the extreme ends we would reject the null hypothesis or render a judgment of “not guilty”. College Students and little girls show no difference.

13

Page 90: Hypothesis Testing

However, what if we randomly selected a college student sample with an average excitability value of “05”.

05

Page 91: Hypothesis Testing

However, what if we randomly selected a college student sample with an average excitability value of “05”. Wow! This is a rare occurrence.

05

Page 92: Hypothesis Testing

Because the chance of that happening is so rare we would reject the null hypothesis.

05

Page 93: Hypothesis Testing

Because the chance of that happening is so rare we would reject the null hypothesis. We would say “guilty!”

05

Page 94: Hypothesis Testing

Because the chance of that happening is so rare we would reject the null hypothesis. We would say “guilty!” But if in reality there is no difference,

05

Page 95: Hypothesis Testing

Because the chance of that happening is so rare we would reject the null hypothesis. We would say “guilty!” But if in reality there is no difference, then we have made a type I error.

05

Page 96: Hypothesis Testing

Because the chance of that happening is so rare we would reject the null hypothesis. We would say “guilty!” But if in reality there is no difference, then we have made a type I error.

05

Researchers are willing to take that chance.

Page 97: Hypothesis Testing

In conclusion, hypothesis testing, is a way of determining the probability of our default position (not guilty or no difference) being correct or incorrect.

Page 98: Hypothesis Testing

In conclusion, hypothesis testing, is a way of determining the probability of our default position (not guilty or no difference) being correct or incorrect.

We determine the likelihood of being right or wrong based on the results.

Page 99: Hypothesis Testing

In conclusion, hypothesis testing, is a way of determining the probability of our default position (not guilty or no difference) being correct or incorrect.

We determine the likelihood of being right or wrong based on the results. Then we decide if we are willing to maintain our default position (no difference) or go out on a limb and change our default position (yes there is a difference).

Page 100: Hypothesis Testing

What follows are exercises to help you check your understanding.

Page 101: Hypothesis Testing

Go as far as you feel you need to until you have a good feel for what you know.

Page 102: Hypothesis Testing

First Set of Questions

Page 103: Hypothesis Testing

1. Which expression below from the world of judicial decision-making best describes the “Null-hypothesis”?

Page 104: Hypothesis Testing

1. Which expression below from the world of judicial decision-making best describes the “Null-hypothesis”?A. “Guilty as charged”B. “Not guilty until proven innocent”C. “Pleading no contest”

Page 105: Hypothesis Testing

1. Which expression below from the world of judicial decision-making best describes the “Null-hypothesis”?A. “Guilty as charged”B. “Not guilty until proven innocent”C. “Pleading no contest”

Page 106: Hypothesis Testing

1. Which expression below from the world of judicial decision-making best describes the “Null-hypothesis”?A. “Guilty as charged”B. “Not guilty until proven innocent”C. “Pleading no contest”

2. What is another way to say “Null-hypothesis”?

Page 107: Hypothesis Testing

1. Which expression below from the world of judicial decision-making best describes the “Null-hypothesis”?A. “Guilty as charged”B. “Not guilty until proven innocent”C. “Pleading no contest”

2. What is another way to say “Null-hypothesis”?A. Not clearB. Not differentC. Not important

Page 108: Hypothesis Testing

1. Which expression below from the world of judicial decision-making best describes the “Null-hypothesis”?A. “Guilty as charged”B. “Not guilty until proven innocent”C. “Pleading no contest”

2. What is another way to say “Null-hypothesis”?A. Not clearB. Not differentC. Not important

Page 109: Hypothesis Testing

With hypothesis testing we are attempting to set up a default position of not guilty. We stay in that position unless we have enough evidence to overturn it.

Page 110: Hypothesis Testing

With hypothesis testing we are attempting to set up a default position of not guilty. We stay in that position unless we have enough evidence to overturn it. Let’s say our null-hypothesis is the following:

Page 111: Hypothesis Testing

With hypothesis testing we are attempting to set up a default position of not guilty. We stay in that position unless we have enough evidence to overturn it. Let’s say our null-hypothesis is the following:

There is no difference in IQ between children who are exposed to classical music between the ages of 0 and 3 and those who were not.

Page 112: Hypothesis Testing

With hypothesis testing we are attempting to set up a default position of not guilty. We stay in that position unless we have enough evidence to overturn it. Let’s say our null-hypothesis is the following:

There is no difference in IQ between children who are exposed to classical music between the ages of 0 and 3 and those who were not.

This is our default position. We are not neutral, we are claiming at the outset that there is no difference.

Page 113: Hypothesis Testing

But then along comes some evidence that over turns that position. So we reject the null hypothesis and claim there is a probable difference.

Page 114: Hypothesis Testing

But then along comes some evidence that over turns that position. So we reject the null hypothesis and claim there is a probable difference.

Notice how we don’t say “there is a difference”. We say there is a probable or statistical difference. This just means that with statistics we are never 100% certain. We just say that the probability that we are wrong is a certain percent. Usually that percent needs to be pretty low.

Page 115: Hypothesis Testing

If we have estimated that there is a 60% chance that we are wrong, that is a risk not worth taking. If you were told that you had a 60% chance of losing a lot of money and a 40% chance of making a lot of money, would you take that chance?

Probably not. But if you were told that you had only a 5% chance of losing a lot of money and a 95% of earning a lot, that might be a chance you would be willing to take. The same holds true with hypothesis testing.

Page 116: Hypothesis Testing

If we have estimated that there is a 60% chance that we are wrong, that is a risk not worth taking. If you were told that you had a 60% chance of losing a lot of money and a 40% chance of making a lot of money, would you take that chance?

Probably not. But if you were told that you had only a 5% chance of losing a lot of money and a 95% of earning a lot, that might be a chance you would be willing to take. The same holds true with hypothesis testing.

Page 117: Hypothesis Testing

Based on that instruction, consider your answer to these questions again and explain the correct answer in your own words.

Page 118: Hypothesis Testing

Based on that instruction, consider your answer to these questions again and explain the correct answer in your own words.

1. Which expression below from the world of judicial decision-making best describes the “Null-hypothesis”?A. “Guilty as charged”B. “Not guilty until proven innocent”C. “Pleading no contest”

2. What is another way to say “Null-hypothesis”?A. Not clearB. Not differentC. Not important

Page 119: Hypothesis Testing

Second Set of Questions – see if you can answer these questions, if not go to the instruction that follows and you’ll be given an opportunity to respond to the questions armed with the instruction.

Page 120: Hypothesis Testing

3. When the jury decides “not guilty” and the defendant really is “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

Page 121: Hypothesis Testing

3. When the jury decides “not guilty” and the defendant really is “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

Page 122: Hypothesis Testing

3. When the jury decides “not guilty” and the defendant really is “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

Page 123: Hypothesis Testing

3. When the jury decides “not guilty” and the defendant really is “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

Page 124: Hypothesis Testing

3. When the jury decides “not guilty” and the defendant really is “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

4. When the jury decides “guilty” and the defendant actually was “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

Page 125: Hypothesis Testing

4. When the jury decides “guilty” and the defendant actually was “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

3. When the jury decides “not guilty” and the defendant really is “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

Page 126: Hypothesis Testing

4. When the jury decides “guilty” and the defendant actually was “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

3. When the jury decides “not guilty” and the defendant really is “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

Page 127: Hypothesis Testing

3. When the jury decides “not guilty” and the defendant really is “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

4. When the jury decides “guilty” and the defendant actually was “not guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

Page 128: Hypothesis Testing

5. When the jury decides “not guilty” and the defendant actually was “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

Page 129: Hypothesis Testing

5. When the jury decides “not guilty” and the defendant actually was “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

Page 130: Hypothesis Testing

5. When the jury decides “not guilty” and the defendant actually was “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

Page 131: Hypothesis Testing

5. When the jury decides “not guilty” and the defendant actually was “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

Page 132: Hypothesis Testing

5. When the jury decides “not guilty” and the defendant actually was “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

6. When the jury decides “guilty” and the defendant really is “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

Page 133: Hypothesis Testing

5. When the jury decides “not guilty” and the defendant actually was “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

6. When the jury decides “guilty” and the defendant really is “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

Page 134: Hypothesis Testing

5. When the jury decides “not guilty” and the defendant actually was “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

6. When the jury decides “guilty” and the defendant really is “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

Page 135: Hypothesis Testing

5. When the jury decides “not guilty” and the defendant actually was “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were wrong to do so.

B. REJECT the null hypothesis and it turns out - - - you were wrong to do so.

6. When the jury decides “guilty” and the defendant really is “guilty”, in statistics that is the same as saying:

A. ACCEPT the null hypothesis and it turns out - - - you were right to do so.

B. REJECT the null hypothesis and it turns out - - - you were right to do so.

Page 136: Hypothesis Testing

Accepting the null-hypothesis is essentially like saying “not guilty” or that we accept the default position of innocence or no difference.Rejecting the null-hypothesis is essentially like saying “guilty” or that we reject the default position of innocence or there is enough evidence to suggest there is a difference.

Page 137: Hypothesis Testing

Here is a visual:

Page 138: Hypothesis Testing

Here is a visual:

Null-hypothesis ACCEPTED!

Page 139: Hypothesis Testing

Here is a visual:

Null-hypothesis ACCEPTED!

I was found NOT

GUILTY!

Page 140: Hypothesis Testing

Here is a visual:

Null-hypothesis ACCEPTED!

I was found NOT

GUILTY!

Na, na, . . . nanana! There is NOT enough statistical evidence to convict or reject the null-hypothesis!

Page 141: Hypothesis Testing

Here is a visual:

Null-hypothesis ACCEPTED!

I was found NOT

GUILTY!

Na, na, . . . nanana! There is NOT enough statistical evidence to convict or reject the null-hypothesis!

Not Guilty = Accept the Null

Page 142: Hypothesis Testing

Here is a visual:

Null-hypothesis REJECTED!

Page 143: Hypothesis Testing

Here is a visual:

Null-hypothesis REJECTED!

I was found

GUILTY!

Page 144: Hypothesis Testing

Here is a visual:

Null-hypothesis REJECTED!

I was found

GUILTY!

Wa, Wa! There IS enough statistical evidence to convict or reject the null-Hypothesis!

Page 145: Hypothesis Testing

Here is a visual:

Null-hypothesis REJECTED!

I was found

GUILTY!

Wa, Wa! There IS enough statistical evidence to convict or reject the null-Hypothesis!

Guilty = Reject the Null

Page 146: Hypothesis Testing

Third Set of Questions - see if you can answer these questions, if not go to the instruction that follows and you’ll be given an opportunity to respond to the questions armed with the instruction.

Page 147: Hypothesis Testing

7. When the jury decides “guilty” (reject the null) and the defendant actually was “not guilty” (shouldn’t have rejected the null), what type of error has been committed?

A. Type I errorB. Type II error

Page 148: Hypothesis Testing

7. When the jury decides “guilty” (reject the null) and the defendant actually was “not guilty” (shouldn’t have rejected the null), what type of error has been committed?

A. Type I errorB. Type II error

8. When the jury decides “not guilty” (accept the null) and the defendant actually was “guilty” (reject the null), what type of error has been committed?

A. Type I errorB. Type II error

Page 149: Hypothesis Testing

9. Which type of error is preferable?A. Type I errorB. Type II error

Page 150: Hypothesis Testing

9. Which type of error is preferable?A. Type I errorB. Type II error

10. Question: What is the haunting reality? Answer: We actually never know for sure if we have committed a type I or II error. All we are doing is determining the probability that we . . .have committed an error. are correct in our hypothesis.

Page 151: Hypothesis Testing

9. Which type of error is preferable?A. Type I errorB. Type II error

10. Question: What is the haunting reality? Answer: We actually never know for sure if we have committed a type I or II error. All we are doing is determining the probability that we . . .have committed an error. are correct in our hypothesis.

Page 152: Hypothesis Testing

9. Which type of error is preferable?A. Type I errorB. Type II error

10. Question: What is the haunting reality? Answer: We actually never know for sure if we have committed a type I or II error. All we are doing is determining the probability that we . . .

A. have committed an error. B. are correct in our hypothesis.

Page 153: Hypothesis Testing

Let’s consider each type of error

Page 154: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence,3. Determine if the evidence merits accepting or rejecting

the null-hypothesis,4. You accept the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is a difference between men and women sports-car color preference and you should have rejected the null.

6. This is a type I error

Page 155: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence3. Determine if the evidence merits accepting or rejecting

the null-hypothesis,4. You accept the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is a difference between men and women sports-car color preference and you should have rejected the null.

6. This is a type I error

Page 156: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence3. Determine if the evidence merits accepting or rejecting

the null-hypothesis4. You accept the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is a difference between men and women sports-car color preference and you should have rejected the null.

6. This is a type I error

Page 157: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence3. Determine if the evidence merits accepting or rejecting

the null-hypothesis4. You accept the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is a difference between men and women sports-car color preference and you should have rejected the null.

6. This is a type I error

Page 158: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence3. Determine if the evidence merits accepting or rejecting

the null-hypothesis4. You accept the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is a difference between men and women sports-car color preference and you should have rejected the null.

6. This is a type I error

Page 159: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence3. Determine if the evidence merits accepting or rejecting

the null-hypothesis4. You accept the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is a difference between men and women sports-car color preference and you should have rejected the null.

This is a type I error

Page 160: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence3. Determine if the evidence merits accepting or rejecting

the null-hypothesis4. You reject the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is NO difference between men and women sports-car color preference and you should have accepted the null

This is a type II error

Page 161: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence3. Determine if the evidence merits accepting or rejecting

the null-hypothesis4. You reject the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is NO difference between men and women sports-car color preference and you should have accepted the null

This is a type II error

Page 162: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence3. Determine if the evidence merits accepting or rejecting

the null-hypothesis4. You reject the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is NO difference between men and women sports-car color preference and you should have accepted the null

This is a type II error

Page 163: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence3. Determine if the evidence merits accepting or rejecting

the null-hypothesis4. You reject the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is NO difference between men and women sports-car color preference and you should have accepted the null

This is a type II error

Page 164: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence3. Determine if the evidence merits accepting or rejecting

the null-hypothesis4. You reject the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is NO difference between men and women sports-car color preference and you should have accepted the null

This is a type II error

Page 165: Hypothesis Testing

1. State your null-hypothesis; There is no significant difference between females and males in terms of their preference of certain sports-car colors

2. Collect your evidence3. Determine if the evidence merits accepting or rejecting

the null-hypothesis4. You reject the null5. In reality (and you could never know this for sure) you

were wrong. In actuality there is NO difference between men and women sports-car color preference and you should have accepted the null

This is a type II error

Page 166: Hypothesis Testing

You’ll never know if you committed a type I or II error.

You can only estimate the probability that you did!

Page 167: Hypothesis Testing

That’s because with statistics we deal in

probability, not certainty.

Page 168: Hypothesis Testing

Based on the instruction you just received, respond to these questions again. Explain your reasoning for selecting the options you did.

Page 169: Hypothesis Testing

7. When the jury decides “guilty” (reject the null) and the defendant actually was “not guilty” (shouldn’t have rejected the null), what type of error has been committed?

A. Type I errorB. Type II error

Page 170: Hypothesis Testing

7. When the jury decides “guilty” (reject the null) and the defendant actually was “not guilty” (shouldn’t have rejected the null), what type of error has been committed?

A. Type I errorB. Type II error

Page 171: Hypothesis Testing

7. When the jury decides “guilty” (reject the null) and the defendant actually was “not guilty” (shouldn’t have rejected the null), what type of error has been committed?

A. Type I errorB. Type II error

8. When the jury decides “not guilty” (accept the null) and the defendant actually was “guilty” (reject the null), what type of error has been committed?

A. Type I errorB. Type II error

Page 172: Hypothesis Testing

7. When the jury decides “guilty” (reject the null) and the defendant actually was “not guilty” (shouldn’t have rejected the null), what type of error has been committed?

A. Type I errorB. Type II error

8. When the jury decides “not guilty” (accept the null) and the defendant actually was “guilty” (reject the null), what type of error has been committed?

A. Type I errorB. Type II error

Page 173: Hypothesis Testing

9. Which type of error is preferable?A. Type I errorB. Type II error

Page 174: Hypothesis Testing

9. Which type of error is preferable?A. Type I errorB. Type II error

Page 175: Hypothesis Testing

9. Which type of error is preferable?A. Type I errorB. Type II error

10. Question: What is the haunting reality? Answer: We actually never know for sure if we have committed a type I or II error. All we are doing is determining the probability that we . . .have committed an error. are correct in our hypothesis.

Page 176: Hypothesis Testing

9. Which type of error is preferable?A. Type I errorB. Type II error

10. Question: What is the haunting reality? Answer: We actually never know for sure if we have committed a type I or II error. All we are doing is determining the probability that we . . .have committed an error. are correct in our hypothesis.

Page 177: Hypothesis Testing

9. Which type of error is preferable?A. Type I errorB. Type II error

10. Question: What is the haunting reality? Answer: We actually never know for sure if we have committed a type I or II error. All we are doing is determining the probability that we . . .

A. have committed an error. B. are correct in our hypothesis.

Answers: 7-A, 8-B, 9-B, 10-A

Page 178: Hypothesis Testing

9. Which type of error is preferable?A. Type I errorB. Type II error

10. Question: What is the haunting reality? Answer: We actually never know for sure if we have committed a type I or II error. All we are doing is determining the probability that we . . .

A. have committed an error. B. are correct in our hypothesis.

Answers: 7-A, 8-B, 9-B, 10-A

Page 179: Hypothesis Testing

Fourth Set of Questions - see if you can answer these questions, if not go to the instruction that follows and you’ll be given an opportunity to respond to the questions armed with the instruction.

Page 180: Hypothesis Testing

11. Question: How do we decide how much evidence is required before we will reject the null hypothesis?

Answer: We estimate the probability of being ______ a certain percent of the time (e.g., .05 or 5% of the time).

a. rightb. wrong

Page 181: Hypothesis Testing

11. Question: How do we decide how much evidence is required before we will reject the null hypothesis?

Answer: We estimate the probability of being ______ a certain percent of the time (e.g., .05 or 5% of the time).

a. rightb. wrong

Page 182: Hypothesis Testing

11. Question: How do we decide how much evidence is required before we will reject the null hypothesis?

Answer: We estimate the probability of being ______ a certain percent of the time (e.g., .05 or 5% of the time).

a. rightb. wrong12. Question: What does a .05 rejection level mean?

Answer: If we were to take the same small sample 100 times from a population, we would be willing to _____________________ .05 or 5% of the time

a. . . . take the chance of being wrong . . . b. . . . reject the null hypothesis . . .

Page 183: Hypothesis Testing

11. Question: How do we decide how much evidence is required before we will reject the null hypothesis?

Answer: We estimate the probability of being ______ a certain percent of the time (e.g., .05 or 5% of the time).

a. rightb. wrong12. Question: What does a .05 rejection level mean?

Answer: If we were to take the same small sample 100 times from a population, we would be willing to _____________________ .05 or 5% of the time

a. . . . take the chance of being wrong . . . b. . . . reject the null hypothesis . . .

Page 184: Hypothesis Testing

In statistics we generally ask ourselves, “What is the probability that we have made a type I error?”

Page 185: Hypothesis Testing

In statistics we generally ask ourselves, “What is the probability that we have made a Type I Error?”

Type I errors are considered a bigger issue because if we are wrong, than we might waste a lot of money or impact people negatively (e.g., spend millions of dollars on a new drug that doesn’t work).

Page 186: Hypothesis Testing

In statistics we generally ask ourselves, “What is the probability that we have made a Type I Error?”

Type I errors are considered a bigger issue because if we are wrong, than we might waste a lot of money or impact people negatively (e.g., spend millions of dollars on a new drug that doesn’t work).

Type II errors are considered less of an issue because if we are wrong, than we may stop or continue researching.

Page 187: Hypothesis Testing

We have to have determine a cut-off point as to when we will reject the null-hypothesis. No matter what cut-off point we could have chosen, the decision would always have been somewhat arbitrary.

Page 188: Hypothesis Testing

We have to have determine a cut-off point as to when we will reject the null-hypothesis. No matter what cut-off point we could have chosen, the decision would always have been somewhat arbitrary.

Would we be satisfied with a 75% chance of committing a type I error? Probably not. That means out of 100 experiments we would live with being wrong about our conclusions 75 times.

Page 189: Hypothesis Testing

Would we be satisfied with a .01% chance of committing a type I error? Probably not. That means out of 10,000 experiments we would live with being wrong about our conclusions only once. If that were the case, then almost no null-hypothesis could ever be rejected.

Page 190: Hypothesis Testing

In the discipline of statistics .05 or 5% of a chance of committing a type I error has been deemed an acceptable arbitrary cut-off point. This means that out of 100 experiments we will live with being wrong five times.

Would we be satisfied with a .01% chance of committing a type I error? Probably not. That means out of 10,000 experiments we would live with being wrong about our conclusions only once. If that were the case, then almost no null-hypothesis could ever be rejected.

Page 191: Hypothesis Testing

Based on the instruction you just received, respond to these questions again. Explain your reasoning for selecting the options you did.

Page 192: Hypothesis Testing

11. Question: How do we decide how much evidence is required before we will reject the null hypothesis?

Answer: We estimate the probability of being ______ a certain percent of the time (e.g., .05 or 5% of the time).

a. rightb. wrong

Page 193: Hypothesis Testing

11. Question: How do we decide how much evidence is required before we will reject the null hypothesis?

Answer: We estimate the probability of being ______ a certain percent of the time (e.g., .05 or 5% of the time).

a. rightb. wrong

Page 194: Hypothesis Testing

11. Question: How do we decide how much evidence is required before we will reject the null hypothesis?

Answer: We estimate the probability of being ______ a certain percent of the time (e.g., .05 or 5% of the time).

a. rightb. wrong

Page 195: Hypothesis Testing

11. Question: How do we decide how much evidence is required before we will reject the null hypothesis?

Answer: We estimate the probability of being ______ a certain percent of the time (e.g., .05 or 5% of the time).

a. rightb. wrong12. Question: What does a .05 rejection level mean?

Answer: If we were to take the same small sample 100 times from a population, we would be willing to _____________________ .05 or 5% of the time

a. . . . take the chance of being wrong . . . b. . . . reject the null hypothesis . . .

Page 196: Hypothesis Testing

11. Question: How do we decide how much evidence is required before we will reject the null hypothesis?

Answer: We estimate the probability of being ______ a certain percent of the time (e.g., .05 or 5% of the time).

a. rightb. wrong12. Question: What does a .05 rejection level mean?

Answer: If we were to take the same small sample 100 times from a population, we would be willing to _____________________ .05 or 5% of the time

a. . . . take the chance of being wrong . . . b. . . . reject the null hypothesis . . . Answers: 11-B, 12-A

Page 197: Hypothesis Testing

11. Question: How do we decide how much evidence is required before we will reject the null hypothesis?

Answer: We estimate the probability of being ______ a certain percent of the time (e.g., .05 or 5% of the time).

a. rightb. wrong12. Question: What does a .05 rejection level mean?

Answer: If we were to take the same small sample 100 times from a population, we would be willing to _____________________ .05 or 5% of the time

a. . . . take the chance of being wrong . . . b. . . . reject the null hypothesis . . . Answers: 11-B, 12-A