22
Economics 5550/6550 Statistical Tools 2014

Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Embed Size (px)

Citation preview

Page 1: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Economics 5550/6550

Statistical Tools

2014

Page 2: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Statistics and Hypotheses

• If you are following the health care system, you see a lot of discussion. Let's consider health care costs. Most simply:

• How fast are they rising?• Are ours higher than Canada's, UK, or others; if so how

much?• Does managed care reduce costs; if so, how much?• Are patients in managed care settings sicker, healthier;

if so how much?

Page 3: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Most of the time, such assertions are made with certainty. Yet, they are almost certainly not certain. These involve testing hypotheses.

Many of you have had some passing experience with experimental laboratory work. Most often the work is a demonstration, rather than an experiment (i.e. mix up these 2 chemicals and you'll blow up the lab).

Let's see what we have in mind with empirical work.

Statistics and Hypotheses

Page 4: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Toggle to Country Data

• Pct GDP Spent Over Time (EXCEL SS)

• Look at the Data

Page 5: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Percent of GDP Spent on Health Care, 1960-2010

0.0

2.0

4.0

6.0

8.0

10.0

12.0

14.0

16.0

18.0

1960 1965 1970 1975 1980 1985 1990 1995 2000 2005 2010

Year

Per

cen

t

Canada

France

Germany

Japan

United Kingdom

United States

What does this look like to you?

Page 6: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

How do we formulate hypotheses?

The style is to use the "null" hypothesis; then contrast it to the "alternative" hypothesis. Null means “nothing is happening.”

Let's look at several countries. Are the health expenditure shares equal?

H0 : sUS = sUK.

H1 : sUS sUK.

Page 7: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

H0 : sUS = sUK.

H1 : sUS sUK.

So, if sUS seems to be about the same as sUK, we'll accept the null hypothesis. If it seems to be different, we'll reject the null hypothesis. This type of hypothesis is called a "simple hypothesis."

Simple Hypotheses

Page 8: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Composite Hypotheses

Often we want to consider more than simply equality. Suppose we are examining the health expenditures of rich people, Er, as opposed to poor people, Ep. We could certainly compare equalities. We might also wish to test the received wisdom that the rich spend more, or:

H0: Er = Ep

H1: Er > Ep

Page 9: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Composite Hypotheses

H0: Er = Ep

H1: Er > Ep

As opposed to a "simple hypothesis" above, this called a "composite hypothesis." Note that this is not the same as above. If somehow, we discovered that Ep > Er, it would not validate this hypothesis.

So what? Well, let's go back to the health care system, for example. What costs more? What is more effective? Ultimately, statistical analysis is how the linkages between smoking and cancer were discovered. Tobacco industry fought this for years!

Page 10: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

So, how do we test hypotheses?

• Let’s look at the US v. the UK• Is the share different?• It was in 1960.• That’s only one data point. Let’s look at

some others.• It looks like most of the time US > UK.

Page 11: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Measure of central tendency• There is an enormous body of statistical literature

that suggests that if we take the average, or arithmetic mean, of a group of people, we will have a better measure of "central tendency." Think GPA.

• The intuition is straightforward. While any single observation may be suspect, the premise is that a measure taken from a larger number of observations may be less suspect.

• What other measures are sometimes used?• Median, mode. Why?

Page 12: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Hypothesis testing

• Here (Spreadsheet):

10.6; 6.0US UKs s

Page 13: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Hypothesis testing

• Well, they look different. Hard to imagine that they would be identical. Are they different?

• d = 10.6 – 6.0 = 4.6. Is that little or big, compared to 0?

10.6; 6.0US UKs s

Page 14: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Testing Differences

• Let's see if we can do things a bit more rigorously, looking at the "spread" of the data.

• So:

US UKd s s

Page 15: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Testing Differences

• We'd like to determine whether the difference d could have been generated randomly; that is, what is the possibility that in truth sUS = sUK, and somehow we just managed to find 2 samples that generated these separate means?

• We want to compare the difference to the spread. If the difference is large (relative to the spread), it would seem to be unlikely that it was caused at random. If it is small, it might have been caused at random.

US UKd s s

Page 16: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Testing Differences

• A useful way, and by far the most frequent way, that we calculate the "spread" is to subtract each value from the mean, square the term, add the squared terms, and divide by the number of observations.

2 2 21 2( ) ( ) ...( )nx x x x x x

VN

Page 17: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Testing Differences

• If the spread is large, then this measure is large. If the spread is small, then this measure will be small. We often take the square root of this difference to get the standard error for the US. We can do the same for the UK, as well.

• Our EXCEL worksheet helps us out.

Page 18: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Testing Differences

• It turns out that we can calculate a standard error of the difference which equals:

• sdd = (sdUS2 + sdUK

2)1/2

• sdd = (.20382 + .52072)1/2 = 0.5592.

• Let's compare the spread, or standard error, of the difference to the difference. The difference of 4.6 is about 8.3 times as big as the standard error. Clearly, if the difference was 0, we'd accept the fact that sUS = sUK.

Page 19: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

t statistic

The ratio of the difference to the standard error is called a Student’s t statistic.

You used to have to look these up with tables, but now we can actually use a spreadsheet.

Let’s take a look.

Page 20: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

What I learned on this summer on vacation

• “Student” was William Sealy Gossett, a statistician for Guiness.

• Gosset applied his statistical knowledge – both in the brewery and on the farm – to the selection of the best yielding varieties of barley. 

Page 21: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

• Another researcher at Guinness had previously published a paper containing trade secrets of the Guinness brewery.

• To prevent further disclosure of confidential information, Guinness prohibited its employees from publishing any papers regardless of the contained information.

• However, after pleading with the brewery and explaining that his mathematical and philosophical conclusions were of no possible practical use to competing brewers, he was allowed to publish them, but under a pseudonym ("Student"), to avoid difficulties with the rest of the staff. Thus his most noteworthy achievement is now called Student's, rather than Gosset's, t-distribution.

Page 22: Economics 5550/6550 Statistical Tools 2014. Statistics and Hypotheses If you are following the health care system, you see a lot of discussion. Let's

Key points for hypothesis testing:

State hypotheses clearly

Choose suitable sample

Calculate appropriate measures of central tendency and dispersion

Draw appropriate inferences