Confidence Intervals and Hypothesis Testing Using and.

Slides:



Advertisements
Similar presentations
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)
Advertisements

ENGR 4296 – Senior Design II Question: How do you establish your “product” is better or your experiment was a success? Objectives: Sources of Variability.
Inferential Statistics & Hypothesis Testing
Probability & Statistical Inference Lecture 6
EPIDEMIOLOGY AND BIOSTATISTICS DEPT Esimating Population Value with Hypothesis Testing.
Lecture 2: Thu, Jan 16 Hypothesis Testing – Introduction (Ch 11)
8 - 10: Intro to Statistical Inference
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Stat 217 – Day 15 Statistical Inference (Topics 17 and 18)
Chapter 9 Hypothesis Testing.
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Hypothesis Testing Methodology Z Test for the Mean (  Known) p-Value Approach to Hypothesis Testing.
Warm-up Day of 8.1 and 8.2 Quiz and Types of Errors Notes.
Overview Definition Hypothesis
Confidence Intervals and Hypothesis Testing - II
1/2555 สมศักดิ์ ศิวดำรงพงศ์
STA Lecture 261 STA 291 Lecture 26 Two types of errors in testing hypothesis. Connection between testing hypothesis and confidence intervals.
More About Significance Tests
Introduction to Statistical Inferences Inference means making a statement about a population based on an analysis of a random sample taken from the population.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Confidence Intervals and Hypothesis tests with Proportions.
M33 Confidence intervals 1  Department of ISM, University of Alabama, Confidence Intervals Estimation.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
Essential Statistics Chapter 131 Introduction to Inference.
CHAPTER 14 Introduction to Inference BPS - 5TH ED.CHAPTER 14 1.
10.2 Tests of Significance Use confidence intervals when the goal is to estimate the population parameter If the goal is to.
Statistical Inference
Hypothesis Testing Hypothesis Testing Topic 11. Hypothesis Testing Another way of looking at statistical inference in which we want to ask a question.
1 Chapter 10: Introduction to Inference. 2 Inference Inference is the statistical process by which we use information collected from a sample to infer.
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.
M33 Confidence intervals 1  Department of ISM, University of Alabama, Confidence Interval Estimation.
Introduction to Inferece BPS chapter 14 © 2010 W.H. Freeman and Company.
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:
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Lecture 9 Chap 9-1 Chapter 2b Fundamentals of Hypothesis Testing: One-Sample Tests.
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.
Introduction to Inference: Confidence Intervals and Hypothesis Testing Presentation 8 First Part.
Introduction to Inference: Confidence Intervals and Hypothesis Testing Presentation 4 First Part.
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.
BPS - 3rd Ed. Chapter 141 Tests of significance: the basics.
Fall 2002Biostat Statistical Inference - Confidence Intervals General (1 -  ) Confidence Intervals: a random interval that will include a fixed.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Ex St 801 Statistical Methods Inference about a Single Population Mean.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
AP Statistics Section 11.1 B More on Significance Tests.
Introduction Suppose that a pharmaceutical company is concerned that the mean potency  of an antibiotic meet the minimum government potency standards.
BPS - 5th Ed. Chapter 151 Thinking about Inference.
Statistical Inference Drawing conclusions (“to infer”) about a population based upon data from a sample. Drawing conclusions (“to infer”) about a population.
Confidence Interval Estimation For statistical inference in decision making: Chapter 9.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Understanding Basic Statistics Fourth Edition By Brase and Brase Prepared by: Lynn Smith Gloucester County College Chapter Nine Hypothesis Testing.
1 Probability and Statistics Confidence Intervals.
1 Section 8.2 Basics of Hypothesis Testing Objective For a population parameter (p, µ, σ) we wish to test whether a predicted value is close to the actual.
10.1 – Estimating with Confidence. Recall: The Law of Large Numbers says the sample mean from a large SRS will be close to the unknown population mean.
Hypothesis Testing Steps for the Rejection Region Method State H 1 and State H 0 State the Test Statistic and its sampling distribution (normal or t) Determine.
Hypothesis Tests Hypothesis Tests Large Sample 1- Proportion z-test.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 7 Inferences Concerning Means.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
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.
Introduction to Inference Tests of Significance Proof
Chapter Nine Hypothesis Testing.
Unit 5 – Chapters 10 and 12 What happens if we don’t know the values of population parameters like and ? Can we estimate their values somehow?
Section Testing a Proportion
When we free ourselves of desire,
P-value Approach for Test Conclusion
Problems: Q&A chapter 6, problems Chapter 6:
Essential Statistics Introduction to Inference
Confidence Intervals.
STA 291 Spring 2008 Lecture 17 Dustin Lueker.
Presentation transcript:

Confidence Intervals and Hypothesis Testing Using and.

Two Statistical Procedures Confidence Intervals “which is an interval of values that the researcher is fairly “confident” covers the true value of the population.” Hypothesis Testing (or significance testing) “uses sample data to reject the notion that chance alone can explain the sample results.”

Remember Empirical Rule Going out 1·2.5, 2·2.5, 3·2.5 standard deviations from the mean, 69, gives us information regarding the amount of data contained in the range (interval).

Confidence Level P(-z* < Z < z*) =.90  z* = P(-z* < Z < z*) =.95  z* = P(-z* < Z < z*) =.99  z* = Confidence Level can vary. Since we want to be fairly sure about our confidence intervals, we usually use confidence levels in the 90+% range.

What is a Confidence Interval? It is a range of values calculated from a sample(s), based on the sample mean or proportion, sample standard deviation, sample size, and level of confidence. We use it to infer possible (plausible) values for the true population parameter (  or  ). Example: 95% CI for  is to Example: 90% CI for  is to 0.265

How is a Confidence Interval constructed? __%Confidence Interval = statistic  (critical value)(standard error of statistic) Example for Sample Proportion: Example for Sample Mean:

Margin of Error

95% CI of # of Tails/10 flips Sample Prop SE Prop 95.0 % C.I. T% ( , ) Interpretation: Based on this sample, we are 95% confident that the true population proportion (  ) of number of tails in 10 flips is between and

95% CI of My Age N MEAN STDEV SE MEAN 95 % C.I. Age (34.726, ) Interpretation: Based on this sample, we are 95% confident that the true population mean (µ) of my age is between 34.7 and 37.5.

Revisit CLT The first graph represents X (number of G’s in story). The second graph represents (average number of G’s in 3 attempts). What 3 important facts must you remember about CLT?

Properties of CI 1) Sample statistic is the center of CI for it is our best (and sometimes our only) estimate of the unknown population parameter of interest. 2) Larger the level of confidence, the wider the confidence interval. 3) The larger the sample size, the narrower the confidence interval. 4) Sampling distribution must be normally distributed (CLT, n and n(1- )  10).

How Many G’s? N MEAN STDEV SEMEAN AvgG % C.I. = = ± 1.997(1.02) = (59.423, )

95% CI of Brown M&Ms % Suppose you sampled a bag of 50 M&M’s and found 23 brown candies. Construct a 95% confidence interval. CI 95% = (0.322,.598)

95% CI of Brown M&Ms % 20 bags of M&M’s were used to calculate a sample proportion of brown candies per bag. Each sample proportion was used to construct a 95% CI which was graphed. How many CI do NOT contain 30%?

Various CI’s w/90% Conf. Level

Example Exam Questions Which of the following BEST describes what 95% confidence means in a 95% CI for  of (7.8, 9.4)? A.There is a 95% probability that  is between 7.8 and 9.4. B.In repeated sampling,  will fall between 7.8 and 9.4 about 95% of the time. C.In repeated sampling, 95% of the confidence intervals fall between 7.8 and 9.4. D.In repeated sampling, the confidence intervals will contain  about 95% of the time.

Hypothesis Testing Use hypothesis testing when you can state a hypothesis based on an assumption about the population parameter. Null hypothesis, H o, states that the population parameter is equal to an assumed true value. Alternative hypothesis, H a, states that the population parameter is, or  to an assumed true value. H o :  = 35 H a :  < 35

Example of Hypothesis Testing Is there a statistical difference between my age and students’ sample mean of my age? H o :  = 35 H a :  > 35 TEST OF MU = VS MU G.T N MEAN STDEV SEMEAN T P VALUE Age

What exactly is a p-value? 1. Bias in sampling 2. Luck of the draw—misrepresentative sample 3. Significant difference Indication of significance!

What exactly is a p-value? Is the probability, assuming H o is true, of getting data like this or ‘worse’ (more like the alternative hypothesis). Is the probability of obtaining extreme statistics or more when H o is true. You compare the p-value to alpha, . If p-value < , reject H o. If p-value > , fail to reject H o.

What exactly is a p-value in context of problem? Is the probability, assuming H o (my age is 35) is true, of getting data like this or ‘worse’ (more like the alternative hypothesis—claiming I am older than 35). Is the probability of obtaining extreme statistics (sample mean of from sample size of 69 students) or more when H o (my age is 35) is true. If alpha is 0.05 and p-value (probability) is 0.056, since p-value > alpha we will fail to reject that H o (my age is 35) is true.

Example of Hypothesis Testing Determine if the coin flipped was fair or not? H o : p =.5 H a : p .5 1PropZTest(not equal) = 356/690 =.5159 z =.8375 p-value =.4023 n = 690

Power, , and  Let confidence level be represented by L. Then 1 – L =  (OR 1 -  = L).  is called a Type I error.  is known as the Type II error. Power is equal to 1 - . All 3 of these have probability values (likelihood's of occurrence.).

Hypothesis Testing like a court case Assume innocent Null hypothesis is true—when person is actually innocent Null hypothesis is false—when person is actually guilty Fail to reject null hypothesis— found innocent Confidence Level (1-  )— found innocent, when innocent Type II Error  - -found innocent, when guilty Reject null hypothesis— found guilty Type I Error  - -found guilty, when innocent Power (1-  )— found guilty, when guilty

What are the Type I and II Errors? Your boss asked you to test a new marketing scheme to potentially increase profits for the company. But the new scheme also increases the expense of marketing the product. What are the two potential ERRORs in the context of this problem?

P-Value Question Which of the following statements is correct? A.A large p-value indicates that the data is consistent with the alternative hypothesis. B.The smaller the p-value, the weaker the evidence against the null hypothesis. C.The p-value measures the probability of making a Type II error. D.The p-value measures the probability that the hypothesis is true. E.An extremely small p-value indicates that the actual data differs from the expected if the null hypothesis were true.

Power Question Power in this situation refers to A.the ability to detect a difference when in fact there is no difference. B.the ability to not detect a difference when in fact there is no difference. C.the ability to detect a difference when in fact there is a difference. D.the ability to not detect a difference when in fact there is a difference. E.the ability to make a correct decision regardless if there is a difference or not.

Sample Question The government requires that water be sampled and tested for safety every day. If the worker responsible for these testing uses a null hypothesis that means the water is safe, which of the following statements correctly describes a Type I and Type II error? A.A Type I error would mean that the citizens were not warned of contaminated water, but a Type II error would mean that the citizens would panic although the water is ok. B.A Type II error would mean that the citizens were not warned of contaminated water, but a Type I error would mean that the citizens would panic although the water was ok. C.A Type II error would mean that the citizens were not warned of contaminated water, but a Type I error would mean that the citizens would not panic although the water is ok. D.A Type I error would mean that the citizens were not warned of contaminated water, but a Type II error would mean that the citizens would panic although the water is not ok. E.Both errors would cause unnecessary panic since a mistake means something went wrong but everything would work out.