Diff of Means, Var known Null hypothesis: Test statistic:

Slides:



Advertisements
Similar presentations
CmpE 104 SOFTWARE STATISTICAL TOOLS & METHODS MEASURING & ESTIMATING SOFTWARE SIZE AND RESOURCE & SCHEDULE ESTIMATING.
Advertisements

10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
DATA ANALYSIS I MKT525. Plan of analysis What decision must be made? What are research objectives? What do you have to know to reach those objectives?
Sample size computations Petter Mostad
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
Hypothesis Tests for Means The context “Statistical significance” Hypothesis tests and confidence intervals The steps Hypothesis Test statistic Distribution.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Inferences About Process Quality
Chapter 9 Hypothesis Testing.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
5-3 Inference on the Means of Two Populations, Variances Unknown
Comparing Population Parameters (Z-test, t-tests and Chi-Square test) Dr. M. H. Rahbar Professor of Biostatistics Department of Epidemiology Director,
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
Statistical Inference for Two Samples
Lecture 8 1 Hypothesis tests Hypothesis H 0 : Null-hypothesis is an conjecture which we assume is true until we have too much evidence against it. H 1.
Hypothesis Tests In statistics a hypothesis is a statement that something is true. Selecting the population parameter being tested (mean, proportion, variance,
1/2555 สมศักดิ์ ศิวดำรงพงศ์
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
Today’s lesson Confidence intervals for the expected value of a random variable. Determining the sample size needed to have a specified probability of.
F OUNDATIONS OF S TATISTICAL I NFERENCE. D EFINITIONS Statistical inference is the process of reaching conclusions about characteristics of an entire.
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.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
1 10 Statistical Inference for Two Samples 10-1 Inference on the Difference in Means of Two Normal Distributions, Variances Known Hypothesis tests.
Chap 9-1 Two-Sample Tests. Chap 9-2 Two Sample Tests Population Means, Independent Samples Means, Related Samples Population Variances Group 1 vs. independent.
Statistical Hypotheses & Hypothesis Testing. Statistical Hypotheses There are two types of statistical hypotheses. Null Hypothesis The null hypothesis,
Large sample CI for μ Small sample CI for μ Large sample CI for p
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
Math 4030 – 9b Comparing Two Means 1 Dependent and independent samples Comparing two means.
T Test for Two Independent Samples. t test for two independent samples Basic Assumptions Independent samples are not paired with other observations Null.
Inferences Concerning Variances
Statistical Inference Drawing conclusions (“to infer”) about a population based upon data from a sample. Drawing conclusions (“to infer”) about a population.
1 Hypothesis Tests on the Mean H 0 :  =  0 H 1 :    0.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
AP Statistics. Chap 13-1 Chapter 13 Estimation and Hypothesis Testing for Two Population Parameters.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Name Mean of Sampling Distribution Standard Deviation/Error of Sampling Distribution 1 sample z-Interval for Proportions 1 sample z-interval for Means.
Chapter 8 Estimation ©. Estimator and Estimate estimator estimate An estimator of a population parameter is a random variable that depends on the sample.
Comparing 2 populations. Placebo go to see a doctor.
Virtual University of Pakistan
TESTING STATISTICAL HYPOTHESES
Lecture #23 Tuesday, November 8, 2016 Textbook: 13.1 through 13.4
Lecture #24 Thursday, November 10, 2016 Textbook: 13.1 through 13.6
Chapter 9 Hypothesis Testing.
ESTIMATION.
STA 291 Spring 2010 Lecture 21 Dustin Lueker.
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Estimation & Hypothesis Testing for Two Population Parameters
CHAPTER 10 Comparing Two Populations or Groups
Math 4030 – 10a Tests for Population Mean(s)
Comparing Means from Two Samples
AP STATISTICS REVIEW INFERENCE
Inference on Mean, Var Unknown
Hypothesis Theory PhD course.
Hypothesis Tests for a Population Mean in Practice
CONCEPTS OF ESTIMATION
Chapter 9 Hypothesis Testing.
LESSON 20: HYPOTHESIS TESTING
CHAPTER 10 Comparing Two Populations or Groups
Lecture 10/24/ Tests of Significance
CHAPTER 10 Comparing Two Populations or Groups
Chapter 8 Hypothesis Tests
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
Statistics PSY302 Quiz Chapters 16 & 17
Inference for Distributions
STA 291 Spring 2008 Lecture 21 Dustin Lueker.
Hypothesis Tests with Means of Samples
Presentation transcript:

Diff of Means, Var known Null hypothesis: Test statistic:

Example Hermione hypothesizes that the tulips in her garden are, on average, 2 inches taller than the crocuses. By taking some measurements, she knows that her 28 tulips have an average height of 8 inches (and standard deviation 1.5), while the 33 crocuses have an average height of 5 inches (and standard deviation 1).

Questions I Test the hypothesis at the 5% level. What is the P-value? Give the 95% confidence interval for the difference in the two means.

Confidence Intervals The 100(1–)% confidence interval on the difference of two means is:

Required Sample Size (a) For the two-sided alternate hypothesis with significance level , the sample size n1=n2=n required to detect a true difference in means of  with power at least 1– is:

Required Sample Size (b) If variances are known, and sample sizes are equal, the required sample size to guarantee an error no more than E at 100(1–) percent confidence is:

Questions II Suppose that if the true difference in height is 3 inches, we want to detect this with probability at least 0.9. Find the required sample size. Suppose we limit the sample sizes of both kinds of flowers to be the same. What is the required sample size so that the error in estimating the difference in the means will be less than 0.5 inches with 95% confidence?

Diff of Means, Var unknown Null hypothesis: Test statistic: Degrees of freedom

Diff of Means, Var unknown Null hypothesis: Test statistic: Degrees of freedom

M&M Example Guido purchases packets of M&Ms on a regular basis from two locations: Easton and Allentown. He wonders if, on average, he gets the same number of M&Ms in each packet from the Easton store as he does from the Allentown store. Over the next few months, Guido carefully counts the number of M&Ms in each packet he buys.

M&M Example cont… He finds from the 10 packets he bought from the Easton store that there was an average of 28 M&Ms per packet with a sample standard deviation of 2.5. From the 12 packets he bought from the Allentown store, there was an average of 30 M&Ms with a sample standard deviation of 2.0.

M&M Example cont… Guido has read somewhere that he number of M&Ms in each packet has the same standard deviation. Would you say there is a difference in the Easton vs. Allentown M&M packets? What if the standard deviation were different? Have your conclusions changed? Construct a 95% confidence interval for the difference in M&M counts in each of the above two cases.

Paired t-test Null hypothesis: Test statistic: Degrees of freedom = n–1

M&M Example Again Guido is a great fan of M&M chocolate, and has taken a special liking to the blue M&Ms. He wonders if there are as many blue M&Ms as there are red M&Ms in each packet. By sampling 12 packets of M&Ms, he finds that the difference in numbers between red and blue M&Ms has an average of 1.8 with a standard deviation of 1. Determine if there is any difference between the numbers.

Lehigh Mountain Hawk In November 1995, Lehigh University unveiled its new mascot, the Mountain Hawk. We want to compare the levels of support for the change from the “Engineer” to the “Mountain Hawk” for a mascot.

Mountain Hawk Questions Is there a difference in the support for the Mountain Hawk? Use =0.05. What is the P-value for this test? Give a 95% confidence interval for the difference in the proportions. What is the power of the test? Determine the sample size needed to detect the difference w.p. at least 0.9.

Two Population Proportions Null hypothesis: Test statistic:

Info for Confidence Interval

Calculating the -error (2-sided)

Calculating the -error (1-sided) If H0 : p1 > p2 If H0 : p1 < p2