STA 291 - Lecture 251 STA 291 Lecture 25 Testing the hypothesis about Population Mean Inference about a Population Mean, or compare two population means.

Slides:



Advertisements
Similar presentations
Testing Hypotheses About Proportions Chapter 20. Hypotheses Hypotheses are working models that we adopt temporarily. Our starting hypothesis is called.
Advertisements

Significance Testing Chapter 13 Victor Katch Kinesiology.
Statistical Significance What is Statistical Significance? What is Statistical Significance? How Do We Know Whether a Result is Statistically Significant?
HYPOTHESIS TESTING Four Steps Statistical Significance Outcomes Sampling Distributions.
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.
Sample size computations Petter Mostad
Statistical Significance What is Statistical Significance? How Do We Know Whether a Result is Statistically Significant? How Do We Know Whether a Result.
Chapter 9 Hypothesis Testing.
BCOR 1020 Business Statistics
Inference about Population Parameters: Hypothesis Testing
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 8 Tests of Hypotheses Based on a Single Sample.
The problem of sampling error in psychological research We previously noted that sampling error is problematic in psychological research because differences.
INFERENTIAL STATISTICS – Samples are only estimates of the population – Sample statistics will be slightly off from the true values of its population’s.
Statistics 11 Hypothesis Testing Discover the relationships that exist between events/things Accomplished by: Asking questions Getting answers In accord.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Overview Definition Hypothesis
Chapter 8 Hypothesis testing 1. ▪Along with estimation, hypothesis testing is one of the major fields of statistical inference ▪In estimation, we: –don’t.
Fundamentals of Hypothesis Testing: One-Sample Tests
1/2555 สมศักดิ์ ศิวดำรงพงศ์
STT 315 This lecture is based on Chapter 6. Acknowledgement: Author is thankful to Dr. Ashok Sinha, Dr. Jennifer Kaplan and Dr. Parthanil Roy for allowing.
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
LECTURE 21 THURS, 23 April STA 291 Spring
Lecture 20 Dustin Lueker.  The p-value for testing H 1 : µ≠100 is p=.001. This indicates that… 1.There is strong evidence that μ=100 2.There is strong.
Introduction to Hypothesis Testing: One Population Value Chapter 8 Handout.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
Significance Tests: THE BASICS Could it happen by chance alone?
LECTURE 19 THURSDAY, 14 April STA 291 Spring
10.2 Tests of Significance Use confidence intervals when the goal is to estimate the population parameter If the goal is to.
Hypothesis Testing Hypothesis Testing Topic 11. Hypothesis Testing Another way of looking at statistical inference in which we want to ask a question.
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.
Chapter 20 Testing hypotheses about proportions
Testing of Hypothesis Fundamentals of Hypothesis.
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.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 20 Testing Hypotheses About Proportions.
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.
Lecture 16 Section 8.1 Objectives: Testing Statistical Hypotheses − Stating hypotheses statements − Type I and II errors − Conducting a hypothesis test.
Essential Statistics Chapter 141 Thinking about Inference.
1 Chapter 9 Hypothesis Testing. 2 Chapter Outline  Developing Null and Alternative Hypothesis  Type I and Type II Errors  Population Mean: Known 
Copyright © 2010, 2007, 2004 Pearson Education, Inc Section 8-2 Basics of Hypothesis Testing.
Statistics 101 Chapter 10 Section 2. How to run a significance test Step 1: Identify the population of interest and the parameter you want to draw conclusions.
Chapter 20 Testing Hypothesis about proportions
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 15: Tests of Significance The Basics ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture Presentation.
CHAPTER 9 Testing a Claim
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.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
AP Statistics Section 11.1 B More on Significance Tests.
BPS - 5th Ed. Chapter 151 Thinking about Inference.
Business Statistics for Managerial Decision Farideh Dehkordi-Vakil.
STA Lecture 221 !! DRAFT !! STA 291 Lecture 22 Chapter 11 Testing Hypothesis – Concepts of Hypothesis Testing.
Applied Quantitative Analysis and Practices LECTURE#14 By Dr. Osman Sadiq Paracha.
What is a Hypothesis? A hypothesis is a claim (assumption) about the population parameter Examples of parameters are population mean or proportion The.
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,
Testing a Single Mean Module 16. Tests of Significance Confidence intervals are used to estimate a population parameter. Tests of Significance or Hypothesis.
Lecture 19 Dustin Lueker.  The p-value for testing H 1 : µ≠100 is p=.001. This indicates that… 1.There is strong evidence that μ=100 2.There is strong.
STA Lecture 231 STA 291 Lecture 23 Testing hypothesis about population proportion(s) Examples.
If we fail to reject the null when the null is false what type of error was made? Type II.
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.
Slide 20-1 Copyright © 2004 Pearson Education, Inc.
A.P. STATISTICS EXAM REVIEW TOPIC #2 Tests of Significance and Confidence Intervals for Means and Proportions Chapters
STA 291 Spring 2010 Lecture 19 Dustin Lueker.
STA 291 Spring 2008 Lecture 19 Dustin Lueker.
STA 291 Spring 2008 Lecture 17 Dustin Lueker.
Presentation transcript:

STA Lecture 251 STA 291 Lecture 25 Testing the hypothesis about Population Mean Inference about a Population Mean, or compare two population means

STA Lecture 252 Which test? Tests about a population proportion (or 2 proportions) for population(s) with YES/NO type outcome. Tests about a population mean (or 2 means) for population(s) with continuous outcome. (normal or otherwise). If non-normal, we need large sample size

STA Lecture 253 Different tests mean or proportion? 1 or 2 samples? Type of Ha ? Mean or Proportion? 1 or 2 sample? Type of Ha 1 or 2 sample? Type of Ha

STA Lecture 254 One or two samples Compare the (equality of) two proportions/two means ? Or compare one proportion against a fixed number? (one mean against a fixed number?)

STA Lecture 255 One-Sided Versus Two-Sided alternative hypothesis Two-sided hypothesis are more common Look for formulations like –“test whether the mean has changed” –“test whether the mean has increased” –“test whether the 2 means are the same” –“test whether the mean has decreased” Recall: Alternative hypothesis = research hypothesis

STA Lecture Alternatives about one population mean One-Sided Tests Two-Sided Test Research Hypothesis Test Statistic p-value

STA Lecture 247 Example The mean age at first marriage for married men in a New England community was 28 years in For a random sample of 406 married men in that community in 1990, the sample mean and standard deviation of age at first marriage were 26 and 9, respectively Q: Has the mean changed significantly?

STA Lecture 248 Example –cont. Hypotheses The null hypothesis i.e. here The alternative hypothesis is (recall the word changed?)

STA Lecture 249 Example – cont. Test Statistic But this uses population SD, we do not have that and only have sample SD, s=9. When you use sample SD, you need to do student t-adjustment.

Example –cont. The test statistic should be STA Lecture 2510

STA Lecture 2411 This is by using software……. (2-sided) P-value Without a t-table software, we may use Z table as the df here is 405 (pretty big), the two tables are almost the same.

If I were using the Z table, 2P(Z > )= 2x(1 –1.0000) = ? (at least to 4 digits correct) A p-value of ? Or p-value of will lead to the same conclusion: since it is way smaller than alpha=0.01, we reject the null hypothesis of “mean age = 28” STA Lecture 2512

Example – cont. In the exam we will say: use a significant level of 5% to make a decision. Etc That is alpha STA Lecture 2513

Example – cont. If t-table is not available (like in an exam), and sample size/df is over 100, use normal table (Z-table) to improvise. (with some small error) The p-value obtained is slightly smaller. STA Lecture 2514

Test the swimming/skiing/running etc timing after some equipment improvement. Usually the athlete is asked to try the new and old gears both and we shall record the differences. 0.5, 1.2, -0.06, ……0.66. Not a YES/NO outcome but a continuous one STA Lecture 2515

Seems to be a two sample? But if we look at the differences, there is only one difference STA Lecture 2516

STA Lecture 2517 Test about mean, one sample, two sided alternative hypothesis (population SD known) a)Suppose z = Find the p-value. Does this provide strong, or weak, evidence against the null hypothesis? Use table or applet to find p-value. If sample SD were used we shall denote t = -2.7 etc

STA Lecture 2518 p-Value The p-value is the probability, assuming that H 0 is true, that the test statistic, z, takes values at least as contradictory to H 0 as the value actually observed The p-value is not the probability that the hypothesis is true

STA Lecture 2519 Small Sample Hypothesis Test for a Mean Assumptions –Quantitative variable, random sampling, population distribution is normal, any sample size Hypotheses –Same as in the large sample test for the mean

STA Lecture 2520 Hypothesis Test for a Mean Test statistic –Exactly the same as for the large sample test p-Value –Same as for the large sample test (one-or two-sided), but using the web/applet for the t distribution –Table only provides very few values, almost un- useable. Conclusion –Report p-value and make formal decision

Not going to exam on “computing p-value by using t-table when sample size/df is small. Either df > 100 so use the Z table instead. Or sigma is known so still use Z-table. Or the p-value will be given. So, the computation of p-value for us ….is always from Z table. (in reality could from t- table or other) STA Lecture 2521

STA Lecture 2522 Hypothesis Test for a Mean: Example A study was conducted of the effects of a special class designed to improve children’s verbal skills Each child took a verbal skills test twice, before and after a three-week period in the class X=2 nd exam score – 1 st exam score If the population mean for X, E(X)=mu equals 0, then the class has no effect Test the null hypothesis of no effect against the alternative hypothesis that the effect is positive Sample (n=8): 3,7,3,3.5, 0, -1, 2, 1

STA Lecture 2523 Normality Assumption An assumption for the t-test is that the population distribution is normal In practice, it is impossible to be 100% sure if the population distribution is normal It is useful to look at histogram or stem- and-leaf plot (or normal probability plot) to check whether the normality assumption is reasonable

STA Lecture 2524 Normality Assumption Good news: The t-test is relatively robust against violations of the assumption that the population distribution is normal Unless the population distribution is highly skewed, the p-values und confidence intervals are fairly accurate However: The random sampling assumption must never be violated, otherwise the test results are completely invalid

STA Lecture 2525 Decisions and Types of Errors in Tests of Hypotheses Terminology: –The alpha-level (significance level) is a number such that one rejects the null hypothesis if the p-value is less than or equal to it. The most common alpha-levels are.05 and.01 –The choice of the alpha-level reflects how cautious the researcher wants to be

STA Lecture 2526 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.

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

STA Lecture 2528 Type I and Type II Errors Terminology: –Alpha = Probability of a Type I error –Beta = Probability of a Type II error –Power = 1 – Probability of a Type II error For a given data, the smaller the probability of Type I error, the larger the probability of Type II error and the smaller the power If you need a very strong evidence to reject the null hypothesis (set alpha small), it is more likely that you fail to detect a real difference (larger Beta).

STA Lecture 2529 Type I and Type II Errors In practice, alpha is specified, and the probability of Type II error could be calculated, but the calculations are usually difficult ( sample size calculation ) How to choose alpha? If the consequences of a Type I error are very serious, then chose a smaller alpha, like For example, you want to find evidence that someone is guilty of a crime. In exploratory research, often a larger probability of Type I error is acceptable (like 0.05 or even 0.1)

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

STA Lecture 2531 Multiple Choice Question example The P-value for testing the null hypothesis mu=100 (two-sided) is P-value=.001. Suppose that in addition you know that the z score of the test statistic was z=3.29. Then a)There is strong evidence that mu = 100 b)There is strong evidence that mu > 100 c)There is strong evidence that mu < 100

If the conclusion of a testing hypothesis result in “reject the null hypothesis”. Suppose the alpha level used is What would be the conclusion if we set the alpha = 0.05 instead? (everything else remain the same) STA Lecture 2532

STA Lecture 2533 Attendance Survey Question 25 On a 4”x6” index card –Please write down your name and section number –Today’s Question: –If we change the alpha level from 0.05 to 0.01, then the previous conclusion of “reject the null hypothesis” a. may change b. Remains un-changed

STA Lecture 2534 Multiple Choice Question exampleI 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