Confidence Intervals.

Slides:



Advertisements
Similar presentations
“Students” t-test.
Advertisements

Hypothesis Testing. To define a statistical Test we 1.Choose a statistic (called the test statistic) 2.Divide the range of possible values for the test.
Hypothesis testing Another judgment method of sampling data.
Chapter 9 Hypothesis Testing Understandable Statistics Ninth Edition
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)
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.
1 1 Slide STATISTICS FOR BUSINESS AND ECONOMICS Seventh Edition AndersonSweeneyWilliams Slides Prepared by John Loucks © 1999 ITP/South-Western College.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
Probability & Statistical Inference Lecture 6
9-1 Hypothesis Testing Statistical Hypotheses Statistical hypothesis testing and confidence interval estimation of parameters are the fundamental.
Pengujian Hipotesis Nilai Tengah Pertemuan 19 Matakuliah: I0134/Metode Statistika Tahun: 2007.
Hypothesis : Statement about a parameter Hypothesis testing : decision making procedure about the hypothesis Null hypothesis : the main hypothesis H 0.
LARGE SAMPLE TESTS ON PROPORTIONS
Chapter 3 Hypothesis Testing. Curriculum Object Specified the problem based the form of hypothesis Student can arrange for hypothesis step Analyze a problem.
Inferences About Process Quality
BCOR 1020 Business Statistics Lecture 18 – March 20, 2008.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
BCOR 1020 Business Statistics
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Hypothesis Testing Methodology Z Test for the Mean (  Known) p-Value Approach to Hypothesis Testing.
1 © Lecture note 3 Hypothesis Testing MAKE HYPOTHESIS ©
1 Dr. Jerrell T. Stracener EMIS 7370 STAT 5340 Probability and Statistics for Scientists and Engineers Department of Engineering Management, Information.
Jump to first page HYPOTHESIS TESTING The use of sample data to make a decision either to accept or to reject a statement about a parameter value or about.
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.
Introduction to Hypothesis Testing: One Population Value Chapter 8 Handout.
Statistical Decision Making. Almost all problems in statistics can be formulated as a problem of making a decision. That is given some data observed from.
Introduction to Inferece BPS chapter 14 © 2010 W.H. Freeman and Company.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
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.
Type I and Type II Errors. An analogy may help us to understand two types of errors we can make with inference. Consider the judicial system in the US.
Fall 2002Biostat Statistical Inference - Confidence Intervals General (1 -  ) Confidence Intervals: a random interval that will include a fixed.
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.
Ex St 801 Statistical Methods Inference about a Single Population Mean.
One-Sample Hypothesis Tests Chapter99 Logic of Hypothesis Testing Statistical Hypothesis Testing Testing a Mean: Known Population Variance Testing a Mean:
Statistical Inference Making decisions regarding the population base on a sample.
© Copyright McGraw-Hill 2004
Chapter 10: One- and Two-Sample Tests of Hypotheses: Consider a population with some unknown parameter . We are interested in testing (confirming or denying)
Statistical Inference Making decisions regarding the population base on a sample.
Course Overview Collecting Data Exploring Data Probability Intro. Inference Comparing Variables Relationships between Variables Means/Variances Proportions.
One Sample Inf-1 In statistical testing, we use deductive reasoning to specify what should happen if the conjecture or null hypothesis is true. A study.
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.
Hypothesis Testing. A statistical Test is defined by 1.Choosing a statistic (called the test statistic) 2.Dividing the range of possible values for the.
Hypothesis Testing.  Hypothesis is a claim or statement about a property of a population.  Hypothesis Testing is to test the claim or statement  Example.
Statistical Inference Making decisions regarding the population base on a sample.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Statistical Decision Making. Almost all problems in statistics can be formulated as a problem of making a decision. That is given some data observed from.
Hypothesis Testing Chapter Hypothesis Testing  Developing Null and Alternative Hypotheses  Type I and Type II Errors  One-Tailed Tests About.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Chapter Nine Hypothesis Testing.
Module 10 Hypothesis Tests for One Population Mean
Chapter 9 Hypothesis Testing.
One-Sample Tests of Hypothesis
Pertemuan 17 Pengujian Hipotesis
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
Example: Propellant Burn Rate
Hypothesis Testing: Hypotheses
Hypothesis Testing Summer 2017 Summer Institutes.
CONCEPTS OF HYPOTHESIS TESTING
Introduction to Inference
Chapter 9 Hypothesis Testing.
Introduction to Inference
Statistical inference
Discrete Event Simulation - 4
Chapter Nine Part 1 (Sections 9.1 & 9.2) Hypothesis Testing
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.
Chapter 10: One- and Two-Sample Tests of Hypotheses:
Hypothesis Testing.
Statistical Inference
One-Sample Tests of Hypothesis
The z-test for the Mean of a Normal Population
Presentation transcript:

Confidence Intervals

(1 – a)100 % Confidence Intervals 1. Mean, m, of a Normal population (s known). 2. Mean, m, of a Normal population (s unknown). 3. Variance, s2, of a Normal population.

4. Standard deviation, s, of a Normal population. 5. Success-failure (Bernoulli) probability, p. 6. General parameter, q.

An important area of statistical inference Hypothesis Testing An important area of statistical inference

Definition Hypothesis (H) Statement about the parameters of the population In hypothesis testing there are two hypotheses of interest. The null hypothesis (H0) The alternative hypothesis (HA)

Either null hypothesis (H0) is true or the alternative hypothesis (HA) is true. But not both We say that are mutually exclusive and exhaustive.

or One has to make a decision to either to accept null hypothesis (equivalent to rejecting HA) or to reject null hypothesis (equivalent to accepting HA)

There are two possible errors that can be made. Rejecting the null hypothesis when it is true. (type I error) accepting the null hypothesis when it is false (type II error)

An analogy – a jury trial The two possible decisions are Declare the accused innocent. Declare the accused guilty.

The null hypothesis (H0) – the accused is innocent The alternative hypothesis (HA) – the accused is guilty

The two possible errors that can be made: Declaring an innocent person guilty. (type I error) Declaring a guilty person innocent. (type II error) Note: in this case one type of error may be considered more serious

Decision Table showing types of Error H0 is True H0 is False Correct Decision Type II Error Accept H0 Type I Error Correct Decision Reject H0

To define a statistical Test we Choose a statistic (called the test statistic) Divide the range of possible values for the test statistic into two parts The Acceptance Region The Critical Region

To perform a statistical Test we Collect the data. Compute the value of the test statistic. Make the Decision: If the value of the test statistic is in the Acceptance Region we decide to accept H0 . If the value of the test statistic is in the Critical Region we decide to reject H0 .

Example We are interested in determining if a coin is fair. i.e. H0 : p = probability of tossing a head = ½. To test this we will toss the coin n = 10 times. The test statistic is x = the number of heads. This statistic will have a binomial distribution with p = ½ and n = 10 if the null hypothesis is true.

Sampling distribution of x when H0 is true

Note We would expect the test statistic x to be around 5 if H0 : p = ½ is true. Acceptance Region = {3, 4, 5, 6, 7}. Critical Region = {0, 1, 2, 8, 9, 10}. The reason for the choice of the Acceptance region: Contains the values that we would expect for x if the null hypothesis is true.

Definitions: For any statistical testing procedure define a = P[Rejecting the null hypothesis when it is true] = P[ type I error] b = P[accepting the null hypothesis when it is false] = P[ type II error]

In the last example a = P[ type I error] = p(0) + p(1) + p(2) + p(8) + p(9) + p(10) = 0.109, where p(x) are binomial probabilities with p = ½ and n = 10 . b = P[ type II error] = p(3) + p(4) + p(5) + p(6) + p(7), where p(x) are binomial probabilities with p (not equal to ½) and n = 10. Note: these will depend on the value of p.

Table: Probability of a Type II error, b vs. p Note: the magnitude of b increases as p gets closer to ½.

The Power function of a Statistical Test Definition: The Power Function, P(q1, …,qq) of a statistical test is defined as follows: P(q1, …,qq) = P[ test rejects H0] Note: if H0 is true P(q1, …,qq) = P[rejects H0 ] = P[Type I error] = a. if H0 is false P(q1, …,qq) = P[rejects H0 ] = 1- P[Type II error] = 1 - b.

Graph of the Power function P(q1, …,qq) b Power function of ideal test a H0 is false H0 is false q H0 is true

Example: n = 10, Critical Region = {0,1,2,8,9,10}

Comments: You can control a = P[ type I error] and b = P[ type II error] by widening or narrowing the acceptance region. . Widening the acceptance region decreases a = P[ type I error] but increases b = P[ type II error]. Narrowing the acceptance region increases a = P[ type I error] but decreases b = P[ type II error].

Example – Widening the Acceptance Region Suppose the Acceptance Region includes in addition to its previous values 2 and 8 then a = P[ type I error] = p(0) + p(1) + p(9) + p(10) = 0.021, where again p(x) are binomial probabilities with p = ½ and n = 10 . b = P[ type II error] = p(2) + p(3) + p(4) + p(5) + p(6) + p(7) + p(8). Tabled values of are given on the next page.

Table: Probability of a Type II error, b vs. p Note: Compare these values with the previous definition of the Acceptance Region. They have increased,

Example: n = 10, Critical Region = {0,1, 9,10}

Example – Narrowing the Acceptance Region Suppose the original Acceptance Region excludes the values 3 and 7. That is the Acceptance Region is {4,5,6}. Then a = P[ type I error] = p(0) + p(1) + p(2) + p(3) + p(7) + p(8) +p(9) + p(10) = 0.344. b = P[ type II error] = p(4) + p(5) + p(6) . Tabled values of are given on the next page.

Table: Probability of a Type II error, b vs. p Note: Compare these values with the otiginal definition of the Acceptance Region. They have decreased,

Example: n = 10, Critical Region = {0,1,2,3,7,8,9,10}

a = 0.344 a = 0.021 a = 0.109 Acceptance Region Acceptance Region {2,3,4,5,6,7,8}. Acceptance Region {4,5,6}. Acceptance Region {3,4,5,6,7}. a = 0.344 a = 0.021 a = 0.109

Example: n = 10 A - Critical Region = {0,1,2,8,9,10} B - Critical Region = {0,1, 9,10} C - Critical Region = {0,1,2,3,7,8,9,10} C A B

The Approach in Statistical Testing is: Set up the Acceptance Region so that a is close to some predetermine value (the usual values are 0.05 or 0.01) The predetermine value of a (0.05 or 0.01) is called the significance level of the test. The significance level (size) of the test is a = P[test makes a type I error]

The z-test for the Mean of a Normal Population We want to test, m, denote the mean of a normal population

Estimating m, the mean of a Normal population The t distribution Estimating m, the mean of a Normal population (s2 unknown) Let x1, … , xn denote a sample from the normal distribution with mean m and variance s2. Both m and s2 are unknown Recall Also

Situation Let x1, … , xn denote a sample from the normal distribution with mean m and variance s2. Both m is unknown and s2 is known We want to test H0: m = m 0 (some specified value of m) Against HA:

The Data Let x1, x2, x3 , … , xn denote a sample from a normal population with mean m and standard deviation s. Let we want to test if the mean, m, is equal to some given value m0. Obviously if the sample mean is close to m0 the Null Hypothesis should be accepted otherwise the null Hypothesis should be rejected.

The Test Statistic To decide to accept or reject the Null Hypothesis (H0) we will use the test statistic If H0 is true we should expect the test statistic z to be close to zero. If H0 is true we should expect the test statistic z to have a standard normal distribution. If HA is true we should expect the test statistic z to be different from zero.

The Standard Normal distribution The sampling distribution of z when H0 is true: The Standard Normal distribution Reject H0 Accept H0

The Acceptance region: Reject H0 Accept H0

Acceptance Region Critical Region With this Choice Accept H0 if: Reject H0 if: With this Choice

Summary To Test for a binomial probability m H0: m = m0 (some specified value of m) Against HA: Decide on a = P[Type I Error] = the significance level of the test (usual choices 0.05 or 0.01)

Collect the data Compute the test statistic Make the Decision Accept H0 if: Reject H0 if:

Example A manufacturer Glucosamine capsules claims that each capsule contains on the average: 500 mg of glucosamine To test this claim n = 40 capsules were selected and amount of glucosamine (X) measured in each capsule. Summary statistics:

We want to test: Manufacturers claim is correct against Manufacturers claim is not correct

The Test Statistic

The Critical Region and Acceptance Region Using a = 0.05 za/2 = z0.025 = 1.960 We accept H0 if -1.960 ≤ z ≤ 1.960 reject H0 if z < -1.960 or z > 1.960

The Decision Since z= -2.75 < -1.960 We reject H0 Conclude: the manufacturer's claim is incorrect: