Today’s lesson Confidence intervals for the expected value of a random variable. Determining the sample size needed to have a specified probability of.

Slides:



Advertisements
Similar presentations
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
Advertisements

Lecture (11,12) Parameter Estimation of PDF and Fitting a Distribution Function.
Elementary hypothesis testing
Sample size computations Petter Mostad
Elementary hypothesis testing Purpose of hypothesis testing Type of hypotheses Type of errors Critical regions Significant levels Hypothesis vs intervals.
Topic 2: Statistical Concepts and Market Returns
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
Chap 9-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 9 Estimation: Additional Topics Statistics for Business and Economics.
Chapter 3 Hypothesis Testing. Curriculum Object Specified the problem based the form of hypothesis Student can arrange for hypothesis step Analyze a problem.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Inference about a Mean Part II
Chapter 9 Hypothesis Testing.
5-3 Inference on the Means of Two Populations, Variances Unknown
“There are three types of lies: Lies, Damn Lies and Statistics” - Mark Twain.
1/49 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 9 Estimation: Additional Topics.
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
Statistical Inference Dr. Mona Hassan Ahmed Prof. of Biostatistics HIPH, Alexandria University.
AM Recitation 2/10/11.
Chapter 13 – 1 Chapter 12: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Errors Testing the difference between two.
Review of Statistical Inference Prepared by Vera Tabakova, East Carolina University ECON 4550 Econometrics Memorial University of Newfoundland.
1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives)
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.
Fundamentals of Data Analysis Lecture 4 Testing of statistical hypotheses.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
CHAPTER 16: Inference in Practice. Chapter 16 Concepts 2  Conditions for Inference in Practice  Cautions About Confidence Intervals  Cautions About.
Topics: Statistics & Experimental Design The Human Visual System Color Science Light Sources: Radiometry/Photometry Geometric Optics Tone-transfer Function.
Comparing two sample means Dr David Field. Comparing two samples Researchers often begin with a hypothesis that two sample means will be different from.
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.
Inference for Regression Simple Linear Regression IPS Chapter 10.1 © 2009 W.H. Freeman and Company.
EMIS 7300 SYSTEMS ANALYSIS METHODS FALL 2005 Dr. John Lipp Copyright © Dr. John Lipp.
Univariate Linear Regression Problem Model: Y=  0 +  1 X+  Test: H 0 : β 1 =0. Alternative: H 1 : β 1 >0. The distribution of Y is normal under both.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Interval Estimation and Hypothesis Testing Prepared by Vera Tabakova, East Carolina University.
© Copyright McGraw-Hill 2000
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.
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.
Chapter 9: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Type I and II Errors Testing the difference between two means.
Chapter 10 The t Test for Two Independent Samples
Inen 460 Lecture 2. Estimation (ch. 6,7) and Hypothesis Testing (ch.8) Two Important Aspects of Statistical Inference Point Estimation – Estimate an unknown.
Review Normal Distributions –Draw a picture. –Convert to standard normal (if necessary) –Use the binomial tables to look up the value. –In the case of.
© Copyright McGraw-Hill 2004
- We have samples for each of two conditions. We provide an answer for “Are the two sample means significantly different from each other, or could both.
MATB344 Applied Statistics I. Experimental Designs for Small Samples II. Statistical Tests of Significance III. Small Sample Test Statistics Chapter 10.
1 Testing Statistical Hypothesis The One Sample t-Test Heibatollah Baghi, and Mastee Badii.
Today’s lesson (Chapter 12) Paired experimental designs Paired t-test Confidence interval for E(W-Y)
AP STATISTICS LESSON 11 – 1 (DAY 2) The t Confidence Intervals and Tests.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
STATISTICS People sometimes use statistics to describe the results of an experiment or an investigation. This process is referred to as data analysis or.
 What is Hypothesis Testing?  Testing for the population mean  One-tailed testing  Two-tailed testing  Tests Concerning Proportions  Types of Errors.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 7 Inferences Concerning Means.
Class Seven Turn In: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 For Class Eight: Chapter 20: 18, 20, 24 Chapter 22: 34, 36 Read Chapters 23 &
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.
Chapter 9 Introduction to the t Statistic
Virtual University of Pakistan
More on Inference.
Chapter 9 Hypothesis Testing.
Lecture Nine - Twelve Tests of Significance.
Chapter 4. Inference about Process Quality
8-1 of 23.
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Statistics in Applied Science and Technology
Hypothesis Tests for a Population Mean in Practice
Chapter 9 Hypothesis Testing.
More on Inference.
Chapter 9 Hypothesis Testing.
Interval Estimation and Hypothesis Testing
Estimating a Population Proportion
Confidence Interval.
Chapter 9 Estimation: Additional Topics
Statistical Inference for the Mean: t-test
Presentation transcript:

Today’s lesson Confidence intervals for the expected value of a random variable. Determining the sample size needed to have a specified probability of a Type II error and probability of a Type I error.

Confidence Interval for the Mean of a Normally Distributed Random Variable ASS-U-ME that Y is normally distributed with unknown mean μ and known standard deviation (say 100). Confidence interval for the mean is the set of “reasonable values” based on the data observed.

Example Problem 1 The random variable Y is normally distributed with unknown mean and standard deviation 100. A random sample of 25 observations is taken from Y and has mean value 515. What is the 99 percent confidence interval for the mean of Y?

Solution to Problem 1 Find the standard error of the mean: –standard deviation of Y/square root of sample size=100/square root of 25=20 Find the factor for the size of the confidence interval: –use for 95 percent CI –use for 99 percent CI

Solution to Problem 1 Multiply standard error and factor: –2.576*20=51.52 Add and subtract this product to the mean: –Left end point is mean-51.52= –Right end point is mean+51.52= In real life, round off CI to “non-obsessive” numbers.

Statement of Solution The 99 percent confidence interval for the expected value of Y (mean of Y) is the interval between and The difference between the left and right end points of the CI is a measure of how much sampling variability is present in the experimental results.

Example Problem 2 Test the following two situations and select the answer that describes your conclusions: I. Test H 0 : E(Y)=500, α=0.01 against H 1 : E(Y) not equal to 500. II. Test H 0 : E(Y)=600, α=0.01 against H 1 : E(Y) not equal to 600.

Example Problem 2 Options A) Reject null hypothesis I and reject null hypothesis II. B) Reject null hypothesis I and accept null hypothesis II. C) Accept null hypothesis I and reject null hypothesis II. D) Accept null hypothesis I and accept null hypothesis II.

Solution to Problem 2 Use the confidence interval calculated in problem 1, the interval between and Null mean in I is 500, which is in 99 percent CI; hence accept in I. Null mean in II is 600, which is not in 99 percent CI; hence reject in II. Answer is C.

Hints and Reminders READ YOUR COMPUTER OUTPUT. –Use the numbers that the computer calculates. MAKE SURE THAT THE PARAMETER IN THE QUESTION AND THE PARAMETER YOU ARE CALCULATING ARE THE SAME!

Example Question 3 The random variable Y is normally distributed with unknown mean and unknown standard deviation. A random sample of 4 observations is taken from Y The mean is 515, and the unbiased estimate of the variance is What is the 99 percent confidence interval for the mean of Y?

Solution to Problem 3 Recognize that this problem requires the use of Student’s t (the standard deviation is not known). Find the estimated standard error of the mean: –square root of the unbiased estimate of the variance/square root of sample size=90/square root of 4=45

Solution to Problem 3 Continued Find the degrees of freedom for the estimate of the unknown standard deviation: –size of sample-1=4-1=3. Find the factor for the size of the confidence interval: –stretch for 95 percent CI; for 3 df, –stretch for 99 percent CI; for 3 df, 5.841

Solution to Problem 3 Continued Multiply standard error and factor: –5.841*45=262.8 Add and subtract this product to the mean: –Left end point is mean-262.8=252.2 –Right end point is mean+262.8=777.8 In real life, round off CI to “non-obsessive” numbers.

How to Use Student t Confidence Interval for Mean Exactly the same as the use of the normal confidence interval for the mean.

Example Problem 4 Test the following two situations and select the answer that describes your conclusions: I. Test H 0 : E(Y)=500, α=0.01 against H 1 : E(Y) not equal to 500. II. Test H 0 : E(Y)=600, α=0.01 against H 1 : E(Y) not equal to 600.

Example Problem 4 Options A) Reject null hypothesis I and reject null hypothesis II. B) Reject null hypothesis I and accept null hypothesis II. C) Accept null hypothesis I and reject null hypothesis II. D) Accept null hypothesis I and accept null hypothesis II.

Solution to Example Problem 4 Use the confidence interval calculated in problem 3, the interval between and Null mean in I is 500, which is in 99 percent CI; hence accept in I. Null mean in II is 600, which is also in 99 percent CI; hence reject in II. Answer is D.

Determining Sample Size Design in a statistical study is crucial for success. Key issue is how large does the sample size have to be. There is a key formula for determining the sample size.

One-sample test sample size parameters ASS-U-ME sampling for Y, a normally distributed random variable. Null hypothesis values –E 0, expected value of Y under the null –σ 0, standard deviation of Y (a SINGLE value drawn from Y) under the null –α, the level of significance –|z α |, the percentile from the standard normal corresponding to α.

One-sample test sample size parameters (continued) Alternative hypothesis values –E 1, expected value of Y under the alternative –σ 1, standard deviation of Y (a SINGLE value drawn from Y) under the alternative –β, the probability of a Type II error. –|z β |, the percentile from the standard normal corresponding to β.

Sample Size Formula Use a sample size n that is as large or larger than:

Example Problem Scenario A research team will test the null hypothesis that E(Y)=1000 at the 0.05 level of significance against the alternative that E(Y)<1000. When the null hypothesis is true, Y has a normal distribution with standard deviation 600.

Standard Warm-up Problem What is the standard deviation of the mean of 900 observations under the null hypothesis? Solution: –The standard error is the standard deviation of Y under H 0 divided by the square root of the sample size. –600/square root of 900=600/30=20.

A Sometime Warm-up Problem What is the critical value of the null hypothesis in the scenario when using the average of 900 observations as the test statistic. Solution –E 0 sign |z α |*standard error of test statistic –left sided test, hence use - – *20=967.1

Example Problem 5 What is the probability of a Type II error for an alternative in which Y is normally distributed, E(Y)=950, and its standard deviation is 600 using the average of a random sample of 900 as the test statistic of the null hypothesis in the scenario?

Solution to Example Problem 5 The probability of a Type II error β is equal to Pr 1 {Accept H 0 }= Pr 1 {Test statistic>critical value}= Pr 1 {Sample mean>967.1}. Under alternative, sample mean is –normal –with mean 950 –with standard error 20

Solution to Example Problem 5 Continued The problem now becomes: what is the probability that a normally distributed random variable with mean 950 and standard deviation 20 is larger than 967.1? –Find standard units value of –( )/20=0.855 –What is Pr{Z>0.855}? –This is about

Example Problem 6 What is the smallest sample size so that the probability of a Type II error is 0.05 when the (alternative) distribution of Y is normally, E(Y)=950, and its standard deviation is 600. The test statistic is the average of a random sample of n as the test statistic of the null hypothesis in the scenario.

Solution Use formula: For null, –E 0 =1000, σ 0 =600, α=0.05, |z α |=1.645 For alternative, –E 1 =950, σ 1 =600, β=0.05, |z β |=1.645

Solution Continued Plug and chug: square root of sample size required is Required sample size is the square of 39.48,which is Round up to This is optimistic. How do you account for nonresponse?

Review of Today’s lecture One sample procedures (today confidence intervals). Determining Sample Size When you solve problem, think about the meaning of the answer.