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.

Slides:



Advertisements
Similar presentations
Hypothesis Testing An introduction. Big picture Use a random sample to learn something about a larger population.
Advertisements

Chapter 12 Tests of Hypotheses Means 12.1 Tests of Hypotheses 12.2 Significance of Tests 12.3 Tests concerning Means 12.4 Tests concerning Means(unknown.
Inference Sampling distributions Hypothesis testing.
Last Time (Sampling &) Estimation Confidence Intervals Started Hypothesis Testing.
Our goal is to assess the evidence provided by the data in favor of some claim about the population. Section 6.2Tests of Significance.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
Probability & Statistical Inference Lecture 6
Confidence Interval and Hypothesis Testing for:
Chapter 7: Statistical Applications in Traffic Engineering
Section 7.1 Hypothesis Testing: Hypothesis: Null Hypothesis (H 0 ): Alternative Hypothesis (H 1 ): a statistical analysis used to decide which of two competing.
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
Tests of significance Confidence intervals are used when the goal of our analysis is to estimate an unknown parameter in the population. A second goal.
Stat Day 16 Observations (Topic 16 and Topic 14)
Hypothesis Testing After 2 hours of frustration trying to fill out an IRS form, you are skeptical about the IRS claim that the form takes 15 minutes on.
Hypothesis : Statement about a parameter Hypothesis testing : decision making procedure about the hypothesis Null hypothesis : the main hypothesis H 0.
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
Fall 2006 – Fundamentals of Business Statistics 1 Chapter 8 Introduction to Hypothesis Testing.
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.
Chapter 9 Hypothesis Testing.
Ch. 9 Fundamental of Hypothesis Testing
Chapter 8 Introduction to Hypothesis Testing
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Hypothesis Testing Methodology Z Test for the Mean (  Known) p-Value Approach to Hypothesis Testing.
Inference about Population Parameters: Hypothesis Testing
Statistical Inference Decision Making (Hypothesis Testing) Decision Making (Hypothesis Testing) A formal method for decision making in the presence of.
Lab 5 Hypothesis testing and Confidence Interval.
Confidence Intervals and Hypothesis Testing - II
Introduction to Biostatistics and Bioinformatics
Fundamentals of Hypothesis Testing: One-Sample Tests
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Hypothesis Testing (Statistical Significance). Hypothesis Testing Goal: Make statement(s) regarding unknown population parameter values based on sample.
Lecture 9 1 Reminder:Hypothesis tests Hypotheses H 0 : Null-hypothesis is an conjecture which we assume is true until we have too much evidence against.
1 Level of Significance α is a predetermined value by convention usually 0.05 α = 0.05 corresponds to the 95% confidence level We are accepting the risk.
Today’s lesson Confidence intervals for the expected value of a random variable. Determining the sample size needed to have a specified probability of.
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.
Statistical Inference Decision Making (Hypothesis Testing) Decision Making (Hypothesis Testing) A formal method for decision making in the presence of.
Statistics and Quantitative Analysis U4320
Introduction to Hypothesis Testing: One Population Value Chapter 8 Handout.
A Broad Overview of Key Statistical Concepts. An Overview of Our Review Populations and samples Parameters and statistics Confidence intervals Hypothesis.
Lesson Testing Claims about a Population Mean Assuming the Population Standard Deviation is Known.
Biostatistics Class 6 Hypothesis Testing: One-Sample Inference 2/29/2000.
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.
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.
Economics 173 Business Statistics Lecture 4 Fall, 2001 Professor J. Petry
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.
1 9 Tests of Hypotheses for a Single Sample. © John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger. 9-1.
Week 8 October Three Mini-Lectures QMM 510 Fall 2014.
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.
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.
MeanVariance Sample Population Size n N IME 301. b = is a random value = is probability means For example: IME 301 Also: For example means Then from standard.
Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Chapter 10 The t Test for Two Independent Samples
Hypothesis Testing. “Not Guilty” In criminal proceedings in U.S. courts the defendant is presumed innocent until proven guilty and the prosecutor must.
Formulating the Hypothesis null hypothesis 4 The null hypothesis is a statement about the population value that will be tested. null hypothesis 4 The null.
Chapter 10: One- and Two-Sample Tests of Hypotheses: Consider a population with some unknown parameter . We are interested in testing (confirming or denying)
What is a Hypothesis? A hypothesis is a claim (assumption) about the population parameter Examples of parameters are population mean or proportion The.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
ENGR 610 Applied Statistics Fall Week 7 Marshall University CITE Jack Smith.
Welcome to MM207 Unit 7 Seminar Dr. Bob Hypothesis Testing and Excel 1.
Chapter 12 Tests of Hypotheses Means 12.1 Tests of Hypotheses 12.2 Significance of Tests 12.3 Tests concerning Means 12.4 Tests concerning Means(unknown.
BIOL 582 Lecture Set 2 Inferential Statistics, Hypotheses, and Resampling.
Hypothesis Tests u Structure of hypothesis tests 1. choose the appropriate test »based on: data characteristics, study objectives »parametric or nonparametric.
Chapter 7 Inference Concerning Populations (Numeric Responses)
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
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: Hypotheses
Presentation transcript:

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 : The alternative hypothesis covers the alternative to H 0 Notice: We either reject or cannot reject the null-hypothesis – we never accept (or prove) the null-hypothesis. Legal analogy: H 0 : InnocentvsH 1 : Guilty Procedure: Defendant is assumed innocent (H 0 ) until enough evidence suggest he is guilty..

lecture 8 2 Hypothesis tests Examples of hypotheses The mean height of men is 1.80 cm: The mean age of when people leave home is higher than 18 years: The average price of milk in 7-11 is 2 kr higher than in Brugsen: Notice: H 0 always involves equality (≤,≥, or =)

lecture 8 3 Hypothesis tests One-sided and two-sided tests One-sided test: Two-sided test:

lecture 8 4 Hypothesis tests Test statistics Recall: A sample function is a function of data Test statistic: a sample function , which indicates if the null hypothesis should be rejected or not. Critical area: if  lies in the critical area then the null-hypothesis is rejected. Critical values: boundary points for the critical area.

lecture 8 5 Hypothesis tests Type I and type II errors Type I error:H 0 rejected, when H 0 is true. Type II error:H 0 not rejected, when H 0 is false. Significance level:  is the probability of committing a Type I error. One-sided testTwo-sided test

lecture 8 6 Test of mean Variance known (two-sided) Hypothesis: Critical values:Test statistics: Significance level: Decision: reject H 0 if z does not lie between the critical values, otherwise we cannot reject H 0.

lecture 8 7 Test of mean Variance known Problem: Anders claims that a flight to Paris on average costs 5000 kr. For a sample fo ten flights to Paris he finds a sample average of 4850kr. 1. Rephrase Anders’ claim as a statistical hypothesis. 2. Assume that the standard deviation of prices of flights to Paris is 100 kr. Is Anders’ hypothesis reasonable at the 5% significance level?

lecture 8 8 Hypothesis tests p-value Assuming that H 0 is true, the p-value is the probability of observing a more extreme test statistics than the one just observed. The null-hypothesis if rejected if p-value <  One-sided testTwo-sided test

lecture 8 9 Test of mean Variance known Problem (cont.): Anders claims that a flight to Paris on average costs 5000 kr. For a sample fo ten flights to Paris he finds a sample average of 4850kr. 3. Calculate the p-value and compare it to the significance level (we still assume the standard deviation to be 100kr).

lecture 8 10 Hypothesis test and confidence intervals The connection with confidence intervals: That is, the null-hypothesis,  , is rejected if and only if   lies outside the confidence interval.

lecture 8 11 Test of mean Variance known (one-sided) Hypotheses: Critical value:Test statistic: Significance level: Decision: Reject H 0 if z lies below the critical value.

lecture 8 12 Test of mean Variance unknown (two-sided) Hypotheses: Critical values:Test statistic: Significance level: Decision: Reject H 0 if z does not lie between the critical values.

lecture 8 13 Test of mean the MATLAB way Variance unknown (two-sided) >> [h,p,ci,stats]=ttest(x,5000,0.01) h = 1 p = ci = 1.0e+003 * stats = tstat: df: 9 sd:    Data Significance level  h = 0 :H 0 not rejected h = 1 :H 0 rejected p-value (1-  )100% confidence interval tstat = df = degrees of freedom sd = sample standard deviation Default: H 0 :  

lecture 8 14 Test of mean the R way Variance unknown (two-sided) > t.test(x=x,mu=5000,conf.level=0.99) One Sample t-test data: x t = , df = 9, p-value = alternative hypothesis: true mean is not equal to percent confidence interval: sample estimates: mean of x 4850    Data Confidence level: 1- 

lecture 8 15 Hypothesis tests A couple of remarks Many tests exist in both a two-sided and a one- sided versions: Null-hypotheses: ≤, =, or ≥ Critical values: one-sided use  two-sided use  We can reject H 0 in three equivalent way: The test statistic is in the critical area The p-value <  Hypothesised value (e.g.   ) is outside the confidence intervals (only for two-sided tests)