20.03.2013 Views

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10.13. OTHER CONFIDENCE LEVELS 217<br />

indica<strong>to</strong>r variable ms signifying that the worker has a Master’s degree (but not a PhD). Let’s see<br />

the difference between CS and EE on this variable:<br />

> t . t e s t ( cs$ms , ee$ms )<br />

Welch Two Sample t−t e s t<br />

data : cs$ms and ee$ms<br />

t = 2 . 4 8 9 5 , df = 1878.108 , p−value = 0.01288<br />

a l t e r n a t i v e h y p o t h e s i s : true d i f f e r e n c e in means i s not equal <strong>to</strong> 0<br />

95 percent c o n f i d e n c e i n t e r v a l :<br />

0.01073580 0.09045689<br />

sample e s t i m a t e s :<br />

mean o f x mean o f y<br />

0.3560551 0.3054588<br />

So, in our sample, 35.6% and 30.5% <strong>of</strong> the two groups had Master’s degrees, and we are 95%<br />

confident that the true population difference in proportions <strong>of</strong> Master’s degrees in the two groups<br />

is between 0.01 and 0.09.<br />

10.13 Other Confidence Levels<br />

We have been using 95% as our confidence level. This is common, but <strong>of</strong> course not unique. We<br />

can for instance use 90%, which gives us a narrower interval (in (10.22),we multiply by 1.65 instead<br />

<strong>of</strong> by 1.96, which the reader should check), at the expense <strong>of</strong> lower confidence.<br />

A confidence interval’s error rate is usually denoted by 1−α, so a 95% confidence level has α = 0.05.<br />

10.14 One More Time: Why Do We Use Confidence Intervals?<br />

After all the variations on a theme in the very long Section 10.2, it is easy <strong>to</strong> lose sight <strong>of</strong> the goal,<br />

so let’s review:<br />

Almost everyone is familiar with the term “margin <strong>of</strong> error,” given in every TV news report during<br />

elections. The report will say something like, “In our poll, 62% stated that they plan <strong>to</strong> vote for Ms.<br />

X. The margin <strong>of</strong> error is 3%.” Those two numbers, 62% and 3%, form the essence <strong>of</strong> confidence<br />

intervals:<br />

• The 62% figure is our estimate <strong>of</strong> p, the true population fraction <strong>of</strong> people who plan <strong>to</strong> vote<br />

for Ms. X.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!