Sei sulla pagina 1di 39

Highlight the last lecture

After obtained the numerical result from a sample, we can not say that the population mean falls between 65.071g and 79.129g with 95% chance.

If many repeated samples with the same sample size were taken from the same population and the confidence intervals were constructed, the proportion of intervals containing the population mean would be approximately 0.95.

11 October, 2011

STAT 101 -- Part VII

Flow Chart for determining the distributions no Is sample size Is population distribution normal? sufficiently large (n >=30), such that CLT yes applied? Is population standard deviation yes no given?
yes no

Use other methods


Large sample size (>120)

Normal tables
11 October, 2011

t-distribution tables

Normal tables
2

STAT 101 -- Part VII

Highlight the last lecture

11 October, 2011

STAT 101 -- Part VII

11 October, 2011

STAT 101 -- Part VII

11 October, 2011

STAT 101 -- Part VII

Number of Students made a mistake in each question


Question 13 Question 11 Question 9 Question 7 Question 5 Question 3

Question 1
0 10 20 30 40 50 60 70

11 October, 2011

STAT 101 -- Part VII

11 October, 2011

STAT 101 -- Part VII

VIII. Hypothesis Testing: One-Sample Inference


Understanding

the principles of hypothesis testing Hypothesis testing of the population mean Hypothesis testing of the binomial population

11 October, 2011

STAT 101 -- Part VIII

Overview

In Statistics, a hypothesis is a claim or statement about one specific property of a population, e.g. Population mean Population proportion A hypothesis test (or test of significance) is a standard procedure for testing such claim and is also a formal objective decision-making procedure. Under the given assumption, if the probability of a particular observed event or more extreme is exceptionally small, we conclude that the assumption is probably not correct.
STAT 101 -- Part VIII 9

11 October, 2011

Null and alternative hypotheses


Two mutually exclusive hypotheses, called null and alternative hypotheses, are defined. Null hypothesis is denoted as while alternative hypothesis is Thus when one hypothesis is true the other is false, and vice versa. The null hypothesis is the presumed condition that will be accepted unless there is strong evidence against it. The alternative hypothesis is the claim that the researcher would like to establish based on the data, sometimes called a research hypothesis. The researcher would like to prove the claim under by rejecting However, the decision of not rejecting does not prove that is true
STAT 101 -- Part VIII 10

11 October, 2011

Forming your own claims

If you are conducting a study and want to use a hypothesis testing to support your claim, the claim must be worded so that it becomes the alternative hypothesis.

16 March, 2005, Today


11 October, 2011 STAT 101 -- Part VIII 11

Four possible outcomes in hypothesis test


Decision Do not reject null hypothesis Reject null hypothesis

Null hypothesis is true Correct conclusion Type I error

Alternative hypothesis is true Type II error Correct conclusion

There are two possible decisions: reject null hypothesis and do not reject null hypothesis There are two possible truths: null hypothesis is true and alternative hypothesis is true Therefore, there are four possible outcomes in hypothesis testing Two of the possible outcomes are correct: do not reject null hypothesis when null hypothesis is true or reject null hypothesis when alternative hypothesis is true If we reject null hypothesis when null hypothesis is true, we have committed a Type I error If we do not reject null hypothesis when alternative hypothesis is true, we have committed a Type II error
STAT 101 -- Part VIII 12

11 October, 2011

Errors and power of the test

11 October, 2011

STAT 101 -- Part VIII

13

Comments on setting error rates

A general aim in hypothesis testing is to use statistical tests that make and as small as possible. As increases, will decrease or vice versa The general strategy is to control at some specific level (for example, 0.10, 0.05, 0.01, .) and use the test that minimizes , or equivalently, maximizes the power.

11 October, 2011

STAT 101 -- Part VIII

14

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

Legal analogy of hypothesis testing


In Singapore court of law, the fundamental principle is that a defendant is presumed innocent until proven guilty. Because innocence is the initial assumption, we have The defendant is innocent The defendant is guilty The job of the prosecutor (analogous to researcher) is to present evidence (analogous to the sample data) so compelling that the judge is persuaded to reject the null hypothesis. In Singapore legal system, defendants are found to be either guilty or not guilty, but they are never found to be innocent. A verdict of not guilty means the evidence is not sufficient to establish guilt, but it does not prove innocence. By controlling the probability of making type I error, Singapore legal system tries to control the probability that an innocent person is convicted.
11 October, 2011 STAT 101 -- Part VIII 15

One-sample test for the mean of a normal distribution

11 October, 2011

STAT 101 -- Part VIII

16

Two-sided alternatives

11 October, 2011

STAT 101 -- Part VIII

17

Critical value method

11 October, 2011

STAT 101 -- Part VIII

18

11 October, 2011

STAT 101 -- Part VIII

19

Graphical explanation of critical-value method

Test statistic t Rejection Regions

Do not reject null hypothesis Reject null hypothesis

11 October, 2011

STAT 101 -- Part VIII

20

p-value method

11 October, 2011

STAT 101 -- Part VIII

21

11 October, 2011

STAT 101 -- Part VIII

22

Graphical explanation of p-value method

p-value

Test statistic t
11 October, 2011 STAT 101 -- Part VIII 23

Equivalence of critical method and p-value method

11 October, 2011

STAT 101 -- Part VIII

24

Accept versus do not accept

11 October, 2011

STAT 101 -- Part VIII

25

Six elements of conducting hypothesis testing

1.
2. 3. 4. 5. 6.

Assumptions of population distribution if necessary State null and alternative hypotheses Calculate test statistic Rejection rule: based on critical value or pvalue approaches Decision of the test: reject null hypothesis or do not reject null hypothesis Conclusion statement in terms of alternative hypothesis
STAT 101 -- Part VIII 26

11 October, 2011

Example: pollution

The Public Health Service (US) publishes the Annual Data Tabulation, Continuous Air Monitoring Projects, which recently indicated that a large mid-western city had an annual mean level of sulfur dioxide of 0.12 (concentration per parts per million). To change this concentration, many steel mills and other manufacturers installed antipollution equipment. Plans are to make about 36 random checks during the year to determine if there has been a change in the sulfur dioxide level. The 0.05 significance level is used. Thirty-six random checks were made throughout the year. It was found that sample mean was 0.10 and sample standard deviation is 0.03. It is assumed that the level of sulfur dioxide is normally distributed. This assumption is not necessary!
11 October, 2011 STAT 101 -- Part VIII 27

In fact, the mean sulfur dioxide level is lower.


11 October, 2011 STAT 101 -- Part VIII 28

11 October, 2011

STAT 101 -- Part VIII

29

The normal assumption of population distribution is needed here

11 October, 2011

STAT 101 -- Part VIII

30

Other cases

11 October, 2011

STAT 101 -- Part VIII

31

Example

In a recent article (USA Today, June 19, 2002) it was claimed that the average supermarket trip takes 22 minutes. Suppose that, in an effort to test this claim, a sample of 50 shoppers at a local supermarket were studied. The mean shopping time for the sample of 50 shoppers was 25.36 minutes with a standard deviation of 7.24 minutes. Using the 0.05 level of significance, is there evidence that the mean shopping time at the local supermarket is different from the claimed value of 22 minutes?

11 October, 2011

STAT 101 -- Part VIII

32

11 October, 2011

STAT 101 -- Part VIII

33

Flow Chart for determining the distributions


no Is population distribution normal? Is sample size sufficiently large (n >=30), such that CLT applied? yes no Use other methods

yes
Is population standard deviation given? yes no

Large sample size (>120)


Normal tables
11 October, 2011

t-distribution tables
STAT 101 -- Part VIII

Normal tables
34

The power of a test

11 October, 2011

STAT 101 -- Part VIII

35

11 October, 2011

STAT 101 -- Part VIII

36

Useful and interesting websites


http://www.intuitor.com/statistics/T1T2Error s.html Explanation of Type I and Type II errors

http://bcs.whfreeman.com/pbs/cat_050/pbs /pvalue_pbs.html

P-value calculation

http://www.causeweb.org/repository/statjav a/Hypothesis.html Power study http://wise.cgu.edu/powermod/power_appl et.asp


11 October, 2011 STAT 101 -- Part VIII 37

Recommended questions from the textbook 6th edition


Question 9.14 9.24; 9.26 9.28 9.76 Page 337 342 343 357

11 October, 2011

STAT 101 -- Part VIII

38

Mid-term Test Result 2010 Stem-and-Leaf Display Stem unit: Statistics Sample Size Mean Median Std. Deviation Minimum Maximum 99 74.41414 80 17.82741 29 99 10 2 9 3 11223357 4 5 223445668 6 113344556688 7 1113334455566677779 8 0000112233333444445566677778889 9 0001113333455566789

11 October, 2011

STAT 101 -- Part VIII

39

Potrebbero piacerti anche