Revision of basic statistics Hypothesis testing Principles Testing a proportion Testing a mean Testing the difference between two means Estimation.

Slides:



Advertisements
Similar presentations
Testing a Claim about a Proportion Assumptions 1.The sample was a simple random sample 2.The conditions for a binomial distribution are satisfied 3.Both.
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)
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
The Multiple Regression Model Prepared by Vera Tabakova, East Carolina University.
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
Chapter 9: Inferences Involving One Population Student’s t, df = 5 Student’s t, df = 15 Student’s t, df = 25.
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Hypothesis Tests for Means The context “Statistical significance” Hypothesis tests and confidence intervals The steps Hypothesis Test statistic Distribution.
Chapter 9 Hypothesis Testing.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Hypothesis Testing Methodology Z Test for the Mean (  Known) p-Value Approach to Hypothesis Testing.
Statistics for Managers Using Microsoft® Excel 5th Edition
Statistics 03 Hypothesis Testing ( 假设检验 ). When we have two sets of data and we want to know whether there is any statistically significant difference.
Chapter 9 Hypothesis Testing II. Chapter Outline  Introduction  Hypothesis Testing with Sample Means (Large Samples)  Hypothesis Testing with Sample.
Statistical Inference Dr. Mona Hassan Ahmed Prof. of Biostatistics HIPH, Alexandria University.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Overview Definition Hypothesis
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Business Statistics,
Hypothesis Tests In statistics a hypothesis is a statement that something is true. Selecting the population parameter being tested (mean, proportion, variance,
Copyright © 2012 by Nelson Education Limited. Chapter 8 Hypothesis Testing II: The Two-Sample Case 8-1.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Section 10.1 ~ t Distribution for Inferences about a Mean Introduction to Probability and Statistics Ms. Young.
Week 8 Fundamentals of Hypothesis Testing: One-Sample Tests
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
The Probability of a Type II Error and the Power of the Test
Statistics and Quantitative Analysis U4320
Hypothesis Testing. Steps for Hypothesis Testing Fig Draw Marketing Research Conclusion Formulate H 0 and H 1 Select Appropriate Test Choose Level.
Week 8 Chapter 8 - Hypothesis Testing I: The One-Sample Case.
Chapter 9 Hypothesis Testing II: two samples Test of significance for sample means (large samples) The difference between “statistical significance” and.
Copyright © 2012 by Nelson Education Limited. Chapter 7 Hypothesis Testing I: The One-Sample Case 7-1.
Inferential Statistics 2 Maarten Buis January 11, 2006.
Statistical Inference
Hypothesis Tests In statistics a hypothesis is a statement that something is true. Selecting the population parameter being tested (mean, proportion, variance,
Testing of Hypothesis Fundamentals of Hypothesis.
Statistical Hypotheses & Hypothesis Testing. Statistical Hypotheses There are two types of statistical hypotheses. Null Hypothesis The null hypothesis,
Lecture 9 Chap 9-1 Chapter 2b Fundamentals of Hypothesis Testing: One-Sample Tests.
Week 8 October Three Mini-Lectures QMM 510 Fall 2014.
Physics 270 – Experimental Physics. Let say we are given a functional relationship between several measured variables Q(x, y, …) x ±  x and x ±  y What.
1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use.
Introduction to Statistical Inference Jianan Hui 10/22/2014.
Monday, October 22 Hypothesis testing using the normal Z-distribution. Student’s t distribution. Confidence intervals.
Math 4030 – 9a Introduction to Hypothesis Testing
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Hypothesis Testing. “Not Guilty” In criminal proceedings in U.S. courts the defendant is presumed innocent until proven guilty and the prosecutor must.
Introduction to hypothesis testing Hypothesis testing is about making decisions Is a hypothesis true or false? Ex. Are women paid less, on average, than.
What is a Hypothesis? A hypothesis is a claim (assumption) about the population parameter Examples of parameters are population mean or proportion The.
Inference for Proportions Section Starter Do dogs who are house pets have higher cholesterol than dogs who live in a research clinic? A.
Monday, October 21 Hypothesis testing using the normal Z-distribution. Student’s t distribution. Confidence intervals.
Hypothesis Testing. Steps for Hypothesis Testing Fig Draw Marketing Research Conclusion Formulate H 0 and H 1 Select Appropriate Test Choose Level.
4-1 Statistical Inference Statistical inference is to make decisions or draw conclusions about a population using the information contained in a sample.
Hypothesis Testing. Steps for Hypothesis Testing Fig Draw Marketing Research Conclusion Formulate H 0 and H 1 Select Appropriate Test Choose Level.
Chapter Nine Hypothesis Testing.
Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests
Chapter 9 Hypothesis Testing.
Hypothesis Testing for Proportions
Hypothesis Testing: One Sample Cases
Math 4030 – 9b Introduction to Hypothesis Testing
Business Statistics Topic 7
Math 4030 – 10a Tests for Population Mean(s)
Hypothesis Tests for 1-Sample Proportion
Hypothesis Testing: Two Sample Test for Means and Proportions
Hypothesis Testing: Hypotheses
Testing a Claim About a Mean:  Known
اختبار الفرضيات اختبارالفرضيات المتعلقة بالوسط
Hypothesis Tests for a Population Mean in Practice
Chapter 9 Hypothesis Testing.
Monday, October 19 Hypothesis testing using the normal Z-distribution.
Interval Estimation and Hypothesis Testing
Hypothesis Testing A hypothesis is a claim or statement about the value of either a single population parameter or about the values of several population.
Presentation transcript:

Revision of basic statistics Hypothesis testing Principles Testing a proportion Testing a mean Testing the difference between two means Estimation

Principles of hypothesis testing Null vs alternative hypothesis The null as assumed true until proven otherwise If the evidence is inconsistent with the null, reject it in favour of the alternative. E.g. H 0 : a coin is fair vs H 1 : a coin is biased towards heads Evidence (data): 20 heads in 25 tosses Evidence seems unlikely if H 0 were true, hence reject H 0 Probability of such extreme evidence is actually 0.2%. We usually reject if the probability is < 5% (the significance level of the test.)

Testing a proportion H 0 : 10% of people are left handed H 0 :  = 0.1 H 1 : the proportion is not 10% H 1 :   0.1 The sample proportion p is a random variable and should be somewhere near to the true value. Its probability distribution is p ~ N( ,  n) under H 0 Hence the test statistic is This is, in general,

Using data to calculate the test statistic If 7 out of a group of 50 are left handed, the test statistic is This is less than z* = 1.96, the critical value which cuts off 5% in the two tails of the Normal distribution. Hence we cannot reject H 0.

Testing a mean A firm selling franchises claims that the average weekly income of a franchise is at least £2000. A sample of 40 such franchises finds an average weekly income of £1770 with s.d. £450. Is the claim justified? H 0 :  = 2000 vs H 1 :  < 2000 Significance level for test: 1% (we want to avoid a false accusation) Critical value: z*= 2.33 Since z < -z* we reject H 0.

The Prob-value approach Instead of comparing the test statistic to the critical value, we could compare the prob-value to the significance level (1% in this case) The prob-value is the area in the tail of the distribution beyond the value of the test statistic. In this case (z = -3.23) the prob-value is (0.13%, found from the standard Normal table) Since 0.13% < 1% we reject H % in tail of distribution 0.13% in tail

How to reject the null hypothesis Method 1 Test statistic > critical value (in absolute value) 3.23 > 2.33 Method 2 (prob-value) Prob value < significance level 0.13% < 1% Note the different direction of the inequality!!! Both reject the null If in doubt, draw the diagram! Watch out for: Choice of significance level (5% or 1%) One vs two tail test. If we had a two tail test, the prob-value would be 0.26% (and compare this to 1%).

Testing the difference of two means A sample of 40 students five years ago found an average expenditure on text books per annum of £87 (at today's prices) with s.d. £21. A current survey of 50 students found average expenditure of £77 with s.d. £30. Has expenditure declined? H 0 :  1 -  2 = 0 vs H 1 :  1 -  2 > 0 Random variable: Significance level: 5%. Critical value z = Test statistic: Decision: z > z* hence reject H 0. Or, prob-value associated with 1.86 is 3.14% < 5% hence reject.

The t distribution When testing a mean with small samples, we use the t distribution instead of the Normal. (But note that regression coefficients follow the t distribution whatever the sample size.) A sample of 12 National Lottery outlets finds an average sale of 800 tickets per week, with s.d Does this suggest the original target of 700 has been exceeded? H 0 :  =700  H 1 :  > 700 Significance level: 5%. Critical value t* = (d.f. = 11) Test statistic: 2.47 > hence reject H 0. Alternatively, prob-value associated with 2.47 is 1.6%.

Estimation An alternative approach than hypothesis testing The sample mean or proportion is a point estimate Around this we build a confidence interval For the Normal distribution, the 95% CI is given by Point estimate  1.96 standard errors For the franchising example above, we have The interval has a width of about 170, expressing our uncertainty. For the t distribution, the interval is given by Point estimate  t* standard errors where t* is obtained from tables, using the appropriate degrees of freedom (d.f. = n – 1 for the mean).