Title: Elementary Statistics
 1Elementary Statistics 
- Statistical Decision Making
2Review
- Scientific Method 
- Formulate a theory 
- Collect data to test the theory 
- Analyze the results 
- Interpret the results and make a decision 
- A theory is rejected if it can be shown 
 statistically that the data we observed would be
 very unlikely to occur if the theory were in fact
 true. A theory is accepted if it is not rejected
 by the data.
3Null Hypotheses, Alternative Hypotheses
- Definitions 
- The null hypothesis, denoted by H0, is a status 
 quo or prevailing viewpoint about a population.
- The alternative hypothesis, denoted by H1, is an 
 alternative to the null hypothesis -- the change
 in the population that the researcher hopes is
 true.
- Tip 
- The null and alternative hypotheses should both 
 be statements about the same population.
4Lets do it 1.2
- Excerpts from the article Stress can cause 
 sneezes (The New York Times, January 21, 1997)
 are shown at the right. Studies suggest that
 stress doubles a persons risk of getting a cold.
 Acute stress, lasting maybe only a few minutes,
 can lead to colds. One mystery that is still
 prevalent in cold research is that while many
 individuals are infected with the cold virus,
 very few actually get the cold. On average, up
 to 90 percent of people exposed to a cold virus
 become infected, meaning the virus multiplies in
 the body, but only 40 percent actually become
 sick. One researcher thinks that the
 accumulation of stress tips the infected person
 over into illness.
- The percentage of people exposed to a cold virus 
 who actually get a cold is 40. The researcher
 would like to assess if stress increases this
 percentage. So, the population of interest is
 people who are under (acute) stress. State the
 appropriate hypotheses for assessing the
 researchers theory.
5How to make decision? 
- Assume the null hypothesis is true 
- Assess whether or not the observed result is 
 extreme or very unlikely.
- unlikely, rare --- reject the null hypothesis 
-  not unusual  favor or accept null hypothesis
6Example 1.2
- Suppose that you are shown a closed package 
 containing five balls. The package is on sale
 because the label, which describes the colors of
 the balls in the package, is missing. The
 salesperson states that most of the packages of
 balls sold in this store contain one yellow ball
 and four blue balls, for a portion of yellow
 balls of 1/5.
- You wish to test the following hypotheses about 
 the contents of the package that is missing its
 label.
- H0  The proportion of yellow balls in the 
 package is 1/5.
- H1  The proportion of yellow balls in the 
 package is more than 1/5.
7Very unlikely or not
- Scenario 1 Suppose that the data are as follows 
 The first ball is yellow, the second ball is
 yellow, the third ball is yellow, the fourth ball
 is yellow, and the fifth ball is yellow.
- Q Do you accept or reject the null hypothesis 
 that the contents of the package are one yellow
 ball and four blue balls? Why?
- Scenario 2 Suppose that the data are as follows 
 The first ball is blue, the second ball is blue,
 the third ball is blue, the fourth ball is blue,
 and the fifth ball is blue.
- Q Do you accept or reject the null hypothesis 
 that the contents of the package are one yellow
 ball and four blue balls? Why?
8Statistically significant
- Definition The data collected are said to be 
 statistically significant if they are very
 unlikely to be observed under the assumption that
 is true. If the data are statistically
 significant, then our decision would be to reject
 .
9Lets do it 1.3
- Last month, a large supermarket chain received 
 many customer complaints about the quantity of
 chips in 16-ounce bags of a particular brand of
 potato chips. Wanting to assure its customers
 they were getting their money's worth, the chain
 decided to test the following hypotheses
 concerning the true average weight (in ounces) of
 a bag of such potato chips in the next shipment
 received from their supplier
- H0  Average weight is at least 16 ounces 
- H1  Average weight is less than 16 ounces 
- If there is evidence in favor of the alternative 
 hypothesis, the shipment would be refused and a
 complaint registered with the supplier.
- Some bags of chips were selected from the next 
 shipment and the weight of each selected bag was
 measured. The researcher for the supermarket
 chain stated that the data were statistically
 significant.
- What hypothesis was rejected? 
- Was a complaint registered with the supplier? 
- Could there have been a mistake? If so, describe 
 it.
10Type of Errors
- Definition 
- Rejecting the null hypothesis H0 when in fact it 
 is true, is called Type I error.
- Accepting the null hypothesis H0 when in fact it 
 is not true, is called a Type II error.
- Note 
- a Type I error can only be made if the null 
 hypothesis is true.
- a Type II error can only be made if the 
 alternative hypothesis is true.
11Example 1.4
- Problem 
-  You plan to walk to a party this evening. 
 Are you going to carry an umbrella with you? You
 dont want to get wet if it should rain. So you
 wish to test the following hypotheses
-  H0  Tonight it is going to rain. 
-  H1  Tonight it is not going to rain. 
- (a) Describe the two types of error that you 
 could make when deciding between these two
 hypotheses.
- (b) What are the consequences of making each type 
 of error?
- (c) You learn from the noon weather report that 
 there is a 70 chance of rain tonight, what
 should you understand from this information?
12Understand Errors 
 13Lets do it! 1.5 Which Error is Worse?
- (a) 
-  H0  The water is contaminated. 
- H1  The water is not contaminated. 
- A ____________ error would be more serious 
 because
- (c) 
- H0  The ship is unsinkable. 
- H1  The ship is sinkable. 
- A ____________ error would be more serious 
 because
14Lets Do It! 1.6 -- Testing a New Drug 
- H0  The new drug is as effective as the standard 
 drug.
- H1  The new drug is more effective than the 
 standard drug.
- What are the two types of errors that you could 
 make when deciding between these two hypotheses?
- Type I error  
- Type II error  
- What are the consequences of a Type I error? 
- What are the consequences of a Type II error? 
- Which error might be considered more severe from 
 an ethical
- point of view?
15A little review before we go on
- Population  Sample  Statistical inference 
- null hypothesis H0 
- alternative hypothesis H1 
- statistically significant 
16?? Chance of Error
-  Think about it 
- If the Type I error is considered very serious, 
 why not set the chance of making a Type I error
 to zero?
17Significance level
- The significance level number ? is the chance of 
 committing a Type I error, that is, the chance of
 rejecting the null hypothesis when it is in fact
 true.
- In general, the level of ? is fixed in advance 
 because it depends on the consequences of
 committing the type I error.
18Power of Test
- The power of the test is defined as 1 - ?. The 
 power of the test is the chance of rejecting the
 null hypothesis when the alternative hypothesis
 is true.
- How ? is related to ? ? 
- What is a better test?
19Level of significance 
 20How to make decision? 
- Assume the null hypothesis is true 
- Assess whether or not the observed result is 
 extreme or very unlikely.
-  ------ What is extreme? 
- unlikely, rare --- reject the null hypothesis 
-  not unusual  favor or accept null hypothesis 
- Note  we want chance of making an error to be 
 small !
21How to set up our decision rule? 
 22Frequency Plot
- Bag A has a total value  -  560, while Bag B 
 has a total value  1,890.
23Hypotheses
- Collect data --- Observation 
- Definition The number n of observations in a 
 sample is called the sample size.
- N1 
24How will you decide?
- Think about it 
- What if the voucher you select is 60? 
- Would this observation lead you to think the 
 shown bag is Bag A or Bag B?
- Why?  
- How would you answer these questions if the 
 voucher you select is 10?
25Decision Rule 
 26Calculate the chance
-  Chance if Chance if 
- Face Value Bag A Bag B 
- -1,000 1/20 0 
-  10 7/20 1/20 
-  20 6/20 1/20 
-  30 2/20 2/20 
-  40 2/20 2/20 
-  50 1/20 6/20 
-  60 1/20 7/20 
-  1,000 0 1/20
27What is rare (unlikely) scenario? 
 28Decision Rule 1 
 29Rejection Region 
 30Chance of errors? 
 31Chance of error ? 
 32What can we do? --- Change rule 
 33Chance of error with rule 2 
 34Need better result 
 35Summary from this example 
 36(No Transcript) 
 37How to make decision?  Classic Approach
- State Null and Alternate Hypothesis 
- Write your decision rule 
- Calculate ? , ?-- check your decision rule 
- Look at your observed value 
- Apply your decision rule to your observed value 
 and make a decision on which hypothesis you want
 to support
38More on the Direction of Extreme 
 39More Example--- One-sided Rejection Region to the 
Left 
 40Decision and chance of error 
 41(No Transcript) 
 42Summary
- Type of Error 
- Significance Level 
- How to make decision? 
- Direction of extreme 
- Rejection Region 
- Relationship between the decision rule and 
 significance level
- Please work on practice questions of section 1.3