STA 291 - Lecture 261 STA 291 Lecture 26 Two types of errors in testing hypothesis. Connection between testing hypothesis and confidence intervals.

Slides:



Advertisements
Similar presentations
Statistics.  Statistically significant– When the P-value falls below the alpha level, we say that the tests is “statistically significant” at the alpha.
Advertisements

Hypothesis Testing A hypothesis is a claim or statement about a property of a population (in our case, about the mean or a proportion of the population)
Hypothesis Testing An introduction. Big picture Use a random sample to learn something about a larger population.
Ch. 21 Practice.
Decision Errors and Power
AP Statistics – Chapter 9 Test Review
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Inferences About Process Quality
Chapter 9 Hypothesis Testing.
BCOR 1020 Business Statistics
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 8 Tests of Hypotheses Based on a Single Sample.
INFERENTIAL STATISTICS – Samples are only estimates of the population – Sample statistics will be slightly off from the true values of its population’s.
AM Recitation 2/10/11.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Overview Definition Hypothesis
Statistical Techniques I
Section 9.1 Introduction to Statistical Tests 9.1 / 1 Hypothesis testing is used to make decisions concerning the value of a parameter.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
4-1 Statistical Inference The field of statistical inference consists of those methods used to make decisions or draw conclusions about a population.
Adapted by Peter Au, George Brown College McGraw-Hill Ryerson Copyright © 2011 McGraw-Hill Ryerson Limited.
+ Chapter 9 Summary. + Section 9.1 Significance Tests: The Basics After this section, you should be able to… STATE correct hypotheses for a significance.
LECTURE 19 THURSDAY, 14 April STA 291 Spring
Significance Toolbox 1) Identify the population of interest (What is the topic of discussion?) and parameter (mean, standard deviation, probability) you.
STA Lecture 291 STA 291 Lecture 29 Review. STA Lecture 292 Final Exam, Thursday, May 6 When: 6:00pm-8:00pm Where: CB 106 Make-up exam: Friday.
Chapter 11 Testing Hypotheses about Proportions © 2010 Pearson Education 1.
Confidence intervals are one of the two most common types of statistical inference. Use a confidence interval when your goal is to estimate a population.
HYPOTHESIS TESTING. Statistical Methods Estimation Hypothesis Testing Inferential Statistics Descriptive Statistics Statistical Methods.
Lecture 16 Dustin Lueker.  Charlie claims that the average commute of his coworkers is 15 miles. Stu believes it is greater than that so he decides to.
CHAPTER 17: Tests of Significance: The Basics
Copyright © 2012 Pearson Education. Chapter 13 Testing Hypotheses.
1 Chapter 10: Introduction to Inference. 2 Inference Inference is the statistical process by which we use information collected from a sample to infer.
CHAPTER 9 Testing a Claim
STA Lecture 251 STA 291 Lecture 25 Testing the hypothesis about Population Mean Inference about a Population Mean, or compare two population means.
Lecture 17 Dustin Lueker.  A way of statistically testing a hypothesis by comparing the data to values predicted by the hypothesis ◦ Data that fall far.
Lecture 16 Section 8.1 Objectives: Testing Statistical Hypotheses − Stating hypotheses statements − Type I and II errors − Conducting a hypothesis test.
10.1: Confidence Intervals Falls under the topic of “Inference.” Inference means we are attempting to answer the question, “How good is our answer?” Mathematically:
1 Chapter 9 Hypothesis Testing. 2 Chapter Outline  Developing Null and Alternative Hypothesis  Type I and Type II Errors  Population Mean: Known 
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Lecture 18 Dustin Lueker.  A way of statistically testing a hypothesis by comparing the data to values predicted by the hypothesis ◦ Data that fall far.
Lecture 17 Dustin Lueker.  A way of statistically testing a hypothesis by comparing the data to values predicted by the hypothesis ◦ Data that fall far.
CHAPTER 9 Testing a Claim
BPS - 3rd Ed. Chapter 141 Tests of significance: the basics.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
AP Statistics Section 11.1 B More on Significance Tests.
Business Statistics for Managerial Decision Farideh Dehkordi-Vakil.
Confidence Intervals and Hypothesis Testing Using and.
© Copyright McGraw-Hill 2004
STA Lecture 221 !! DRAFT !! STA 291 Lecture 22 Chapter 11 Testing Hypothesis – Concepts of Hypothesis Testing.
AP Statistics Chapter 11 Notes. Significance Test & Hypothesis Significance test: a formal procedure for comparing observed data with a hypothesis whose.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
A significance test or hypothesis test is a procedure for comparing our data with a hypothesis whose truth we want to assess. The hypothesis is usually.
+ Unit 6: Comparing Two Populations or Groups Section 10.2 Comparing Two Means.
Testing a Single Mean Module 16. Tests of Significance Confidence intervals are used to estimate a population parameter. Tests of Significance or Hypothesis.
STA Lecture 231 STA 291 Lecture 23 Testing hypothesis about population proportion(s) Examples.
Uncertainty and confidence Although the sample mean,, is a unique number for any particular sample, if you pick a different sample you will probably get.
Hypothesis Tests u Structure of hypothesis tests 1. choose the appropriate test »based on: data characteristics, study objectives »parametric or nonparametric.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.1 Significance Tests:
CHAPTER 15: Tests of Significance The Basics ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture Presentation.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 7 Inferences Concerning Means.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. 1 FINAL EXAMINATION STUDY MATERIAL III A ADDITIONAL READING MATERIAL – INTRO STATS 3 RD EDITION.
Statistical Decision Making. Almost all problems in statistics can be formulated as a problem of making a decision. That is given some data observed from.
4-1 Statistical Inference Statistical inference is to make decisions or draw conclusions about a population using the information contained in a sample.
+ Homework 9.1:1-8, 21 & 22 Reading Guide 9.2 Section 9.1 Significance Tests: The Basics.
Tests of Significance The reasoning of significance tests
Chapter 9 Hypothesis Testing.
Decision Errors and Power
Significance Tests: The Basics
STA 291 Spring 2008 Lecture 17 Dustin Lueker.
Presentation transcript:

STA Lecture 261 STA 291 Lecture 26 Two types of errors in testing hypothesis. Connection between testing hypothesis and confidence intervals

A p-value that is smaller than 0.01 must also be smaller than 0.05 A p-value that is smaller than 0.05 may or may not be smaller than 0.01 STA Lecture 262

In testing a hypothesis If our conclusion is to “reject the null hypothesis”…………then we either made a correct decision or we made a type ___ error. STA Lecture 263

If our conclusion is “do not reject the null hypothesis” …….. then we either made a correct decision or made a type ____ error. STA Lecture 264

5 Type I and Type II Errors Type I Error: The null hypothesis is rejected, even though it is true. Type II Error: The null hypothesis is not rejected, even though it is false. Setting the alpha-level (significance level) low protect us from type I Error. (the probability of making a type I error is less than alpha)

The chance of making a Type II error can be made small by increasing the sample size. (assume you use the correct testing procedure) STA Lecture 266

7 Decisions and Types of Errors in Tests of Hypotheses Terminology: –The alpha-level (significance level) is a threshold number such that one rejects the null hypothesis if the p-value falls below it. The most common alpha-levels are 0.05 and 0.01 –The choice of the alpha-level reflects how cautious the researcher wants to be (when it comes to reject null hypothesis)

STA Lecture 268 Type I and Type II Errors Decision Reject Do not reject the null hypothesis True Type I error Correct False Correct Type II error

STA Lecture 269 If after all the calculations and review the evidences you decide to reject the null hypothesis H 0, you may be right or you may made a type I error. If after all the calculations you decide not to reject the null hypothesis H 0, you may be right or you may made a type II error.

STA Lecture 2610 When sample size(s) increases, both error probabilities could be made to decrease. Strategy: keep type I error probability small by pick a small alpha. Increase sample size to force the probability of making type II error, Beta, small. (or increase Power)

STA Lecture 2611 A connection between confidence intervals and testing hypothesis of two sided H A Testing If the 95% confidence interval includes the value 3  (3 is a possible value)  the p-value of the test must be larger than 5% (not reject)  also true.

STA Lecture 2612 If the 95% confidence interval do not includes the value 3  the p-value of the test must be smaller than 5% (reject).  also holds True for other parameters. True for other confidence levels. Only works for two sided H A hypothesis.

STA Lecture 2613 Confidence interval for a parameter consist of those values that are plausible, not rejectable, in a testing setting (of two sided H A hypothesis)

So, the confidence interval consists of those values of parameters that are compatible with the observed data data. 95% confidence  5% error  p-value of 5% 90% confidence  10% error  p-value of 10% etc. STA Lecture 2614

STA Lecture 2615 suppose the 95% confidence interval computed from data for is [2.2, 4.1] any test of Would result a p-value larger than 5% (not reject) i.e. any value inside [2.2, 4.1] are plausible.

STA Lecture 2616 Now suppose 95% confidence interval computed from data for mu is [2.2, 4.1]. Any test of (based on the same data) Would result a p-value smaller than 5% ( reject null, using alpha=0.05)

Why not always confidence interval? In some cases, confidence interval is hard to obtain, Yet testing a specific hypothesis is easier. Confidence interval amounts to obtain all values that you cannot reject as H 0 STA Lecture 2617

Pair or not pair? If there is a possibility of pairing, then pair usually is better Some clue that things are not paired: -- there were different number of cases in two samples. -- The two samples are obtained at different times, with different experiments, STA Lecture 2618

STA Lecture 2619 Paired Experiment: focus on the differences One subject contribute two results, we often can focus on the difference of the two from the same subject. Sometimes not possible…… how long a mice live before cancer kill. Same mice cannot be used twice. Strength of the shipping packaging …… test of strength would destroy the package

STA Lecture randomly chosen subjects are given two bottles of shampoos: A and B. After a week, each subject state which one they prefer … Subject 1Subject 2Subject 3 Aprefer B

STA Lecture randomly chosen subjects are given two bottles of pills: A and B. After a month on each pill, report LDL cholesterol level … Subject 1Subject 2Subject 3 A B

STA Lecture 2622 After we take the difference for each subject, the problem becomes a one sample problem: If the preference has 50-50% chance? If the difference has mean zero?

STA Lecture 2623 Focus on the difference Prefer A; not prefer A; prefer A; …… For example 30 out of 65 prefer A In example two - 21; - 4; 19; …… For example

STA Lecture 2624 For the first problem P-value is 2P(Z >| |) =2P(Z>0.6202)=0.535

STA Lecture 2625 If you use the computer to do the problem, the p-value will be slightly different. Due to the fact that our calculation is only an approximation (use CLT). Computer is more accurate. For sample size very large the difference goes away. (For example 300 subjects out of 650 prefer A )

STA Lecture 2626 For the cholesterol problem P-value = 2P(Z>|16.34|) = ……

What would be a 95% confidence interval for the mu – the population mean of the difference of cholesterol, when using pill A/B? STA Lecture 2627

STA Lecture 2628 Actually I should be looking up the t-table with degrees of freedom = 124 (since I used s in place of sigma) Using t-table applet I get also a tiny p- value (with more than 30 zero’s after decimal point)

STA Lecture 2629 The formal conclusion: reject (overwhelmingly) the null hypothesis of difference = 0, imply the difference is not zero. Apparently the difference is positive – the average difference is This imply pill B has lower LDL values compared to pill A.

STA Lecture 2630 Multiple Choice Question II The P-value for testing the null hypothesis mu=100 (two-sided) is P= This indicates a)There is strong evidence that mu = 100 b)There is strong evidence that mu > 100 c)There is strong evidence that mu < 100 d)If mu were equal to 100, it would be unusual (probability ) to obtain data such as those observed

STA Lecture 2631 Multiple Choice Question A 95% confidence interval for mu is (96,110). Which of the following statements about significance tests for the same data are correct? a)In testing the null hypothesis mu=100 (two-sided), P>0.05 b)In testing the null hypothesis mu=100 (two-sided), P<0.05 c)In testing the null hypothesis mu=x (two-sided), P>0.05 if x is any of the numbers inside the confidence interval d)In testing the null hypothesis mu=x (two-sided), P<0.05 if x is any of the numbers outside the confidence interval

STA Lecture 2632 Attendance Survey Question 26 –your name and section number –Today’s Question: The online homework A. is helpful, since I know if I aced it right away B. not helped me, because of computer glitches C. no opinion

STA Lecture 2633 This p is not that p-value P-value of a test procedure. Any hypothesis testing should result a p-value. It summarizes the strength of the evidence in the sample against H 0 Proportion p or rate p or percentage p of success in the population: value specified in the null hypothesis to be tested. Only in the testing of the proportion, Bernoulli type populations Test H 0 : p=0.5 etc.