Top Banner
Hypothesis Testing
69

Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Dec 26, 2015

Download

Documents

Natalie Andrews
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Hypothesis Testing

Page 2: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Central Limit Theorem

Hypotheses and statistics are dependent upon this theorem

Page 3: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Central Limit Theorem

To understand the Central Limit Theoremwe must understand the difference between

three types of distributions…..

Page 4: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

A distribution is a type of graph showing the frequencyof outcomes:

Page 5: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.
Page 6: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Of particular interest is the “normal distribution”

Page 7: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Different populations will create differing frequencydistributions, even for the same variable…

Page 8: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

There are three fundamental types of distributions:1. Population distributions

Page 9: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

There are three types of distributions:1. Population distributions

Page 10: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

There are three types of distributions:1. Population distributions

Page 11: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

There are three types of distributions:1. Population distributions

Page 12: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

There are three types of distributions:1. Population distributions

Page 13: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

There are three types of distributions:1. Population distributions2. Sample distributions

Page 14: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

There are three types of distributions:1. Population distributions2. Sample distributions

Page 15: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

There are three types of distributions:1. Population distributions2. Sample distributions

3. Sampling distributions

Page 16: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

1. Population distributionsThe frequency distributions of a population.

Page 17: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

2. Sample distributionsThe frequency distributions of samples.

The sample distribution should look likethe population distribution…..

Why?

Page 18: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

2. Sample distributionsThe frequency distributions of samples.

Page 19: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

3. Sampling distributionsThe frequency distributions of statistics.

Page 20: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

2. Sample distributionsThe frequency distributions of samples.

The sampling distribution should NOT look likethe population distribution…..

Why?

Page 21: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.
Page 22: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Suppose we had population distributions that looked like these:

Page 23: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Say the mean was equal to 40, if we tooka random sample from this population of a certainsize n… over and over again and calculated themean each time……

Page 24: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

We could make a distribution of nothing butthose means. This would be a samplingdistribution of means.

Page 25: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Some questions about this sampling distribution:

Page 26: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

1. What would be the mean of all those means?

Page 27: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

2. If the population mean was 40, how manyof the sample means would be larger than 40,and how many would be less than 40?

Page 28: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Regardless of the shape of the distributionbelow, the sampling distribution would be symmetrical around the population mean of 40.

Page 29: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

3. What will be the variance of the sampling distribution?

Page 30: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

The means of all the samples will be closertogether (have less variance) if the variance of

the population is smaller.

Page 31: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

The means of all the samples will be closertogether (have less variance) if the size of

each sample (n) gets larger.

Page 32: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Sample

n = number of samples

Page 33: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.
Page 34: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

So the sampling distribution will have a mean equal to the population mean, and a varianceinversely proportional to the size of the sample (n), and proportional to the variance of the population.

http://www.khanacademy.org/math/statistics/v/central-limit-theorem

http://www.khanacademy.org/math/statistics/v/sampling-distribution-of-the-sample-mean

Page 35: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Central Limit Theorem

Page 36: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Central Limit Theorem

If samples are large, thenthe sampling distribution created by those

samples will have a mean equal to thepopulation mean and a standard deviation

equal to the standard error.

Page 37: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Sampling Error = Standard Error

Page 38: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

The sampling distribution will be a normal curve with:

x o and Snxo

Page 39: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

This makes inferential statistics possiblebecause all the characteristics of a normal curveare known.

Page 40: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.
Page 41: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

http://www.statisticalengineering.com/central_limit_theorem.htm

A great example of the theorem in action….

Page 42: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

https://www.khanacademy.org/math/probability/statistics-inferential/sampling_distribution/v/sampling-distribution-example-problem

Another great example of the theorem in action….

Page 43: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Hypothesis Testing:

A statistic tests a hypothesis: H0

100:0 H

Page 44: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Hypothesis Testing:

A statistic tests a hypothesis: H0

The alternative or default hypothesis is: HA

100: AH

Page 45: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Hypothesis Testing:

A statistic tests a hypothesis: H0

The alternative or default hypothesis is: HA

A probability is established to test the “null” hypothesis.

Page 46: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Hypothesis Testing:

95% confidence: would mean that therewould need to be 5% or less probability ofgetting the null hypothesis; the nullhypothesis would then be dropped infavor of the “alternative” hypothesis.

Page 47: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Hypothesis Testing:

95% confidence: would mean that therewould need to be 5% or less probability ofgetting the null hypothesis; the nullhypothesis would then be dropped infavor of the “alternative” hypothesis.

1 - confidence level (.95) = alpha

Page 48: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Alpha

Page 49: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Errors:

Page 50: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Errors:

Type I Error: saying nothing ishappening when something is: p = alpha

Page 51: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Errors:

Type I Error: saying something ishappening when nothing is: p = alpha

Type II Error: saying nothing is happening when something is: p = beta

Page 52: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.
Page 53: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.
Page 54: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

http://www.intuitor.com/statistics/T1T2Errors.html

An example from court cases:

http://www.youtube.com/watch?v=taEmnrTxuzo

Page 55: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Care must be taken when using hypothesis testing…

PROBLEMS

I hypothesize that a barking dog is hungry.

Page 56: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

The dog barks, is the dog therefore hungry?

Page 57: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

To answer that questions, I would have to have someprior information.

For example, how often does the dog bark when it is not hungry.

Page 58: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Suppose we flipped a coina hundred times….

It came up heads 60 times.Is it a fair coin?

Page 59: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

No….

Because of the Z-test finds that the probability of doingthat is equal to 0.0228.

We would reject the Null Hypothesis!

Page 60: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Suppose we flipped the samecoin a hundred times again…

It came up tails 60 times.Is it a fair coin?

Page 61: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

But we have now thrown thecoin two hundred times, and…

It came up tails 100 times.

Is it a fair coin?

Page 62: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Perfectly fair

The probability of rejecting the null hypothesis is now ZERO!!

Page 63: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Suppose we project aPoggendorf figure to one sideof the brain or to the other….

and measure error.

Page 64: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Paired Samples Statistics

Mean N Std. Error MeanPair 1 Right 5.4167 12 .70128 Left 4.9167 12 .62107

t(11) = 2.17, p = 0.053

What do you conclude?

Page 65: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Paired Samples Statistics

Mean N Std. Error MeanPair 1 Right 5.4167 12 .70128 Left 4.9167 12 .62107

t(11) = 2.17, p = 0.053

Now suppose you did this againwith another sample of 12 people.

t(11) = 2.10, p = 0.057

Page 66: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

But the probability of independent events is:p(A) X p(B) so that:

The Null hypothesis probability for both studies was:0.053 X 0.057 = 0.003

What do you conclude now?

Page 67: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

But if the brainhemispheres are truly

independent….Then...

Page 68: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Paired Samples Statistics

Mean N Std. Error MeanPair 1 Right 5.4167 12 .70128 Left 4.9167 12 .62107

t(22) = 0.53, p = 0.60

What do you conclude now?

Page 69: Hypothesis Testing. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.

Read the following article….

http://commonsenseatheism.com/wp-content/uploads/2011/01/Siegfried-Odds-Are-Its-Wrong.pdf