Engineering Statistics Chapter 4 Hypothesis Testing 4B Testing on Variance & Proportion of Variances.

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.
1 Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Type I and Type II Errors One-Tailed Tests About a Population Mean: Large-Sample.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and Alternative Hypotheses Type I and Type II Errors Type I and Type II Errors.
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.
1 1 Slide Hypothesis Testing Chapter 9 BA Slide Hypothesis Testing The null hypothesis, denoted by H 0, is a tentative assumption about a population.
EPIDEMIOLOGY AND BIOSTATISTICS DEPT Esimating Population Value with Hypothesis Testing.
1/55 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 10 Hypothesis Testing.
Pengujian Hipotesis Nilai Tengah Pertemuan 19 Matakuliah: I0134/Metode Statistika Tahun: 2007.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Inferences About Process Quality
Chapter 8 Introduction to Hypothesis Testing
Statistics for Managers Using Microsoft® Excel 5th Edition
Definitions In statistics, a hypothesis is a claim or statement about a property of a population. A hypothesis test is a standard procedure for testing.
Statistical Analysis. Purpose of Statistical Analysis Determines whether the results found in an experiment are meaningful. Answers the question: –Does.
AM Recitation 2/10/11.
Chapter 10 Hypothesis Testing
Intermediate Statistical Analysis Professor K. Leppel.
Confidence Intervals and Hypothesis Testing - II
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Business Statistics,
Engineering Statistics Chapter 4 Hypothesis Testing 4C Testing on Proportions & Difference Between Proportions.
Sections 8-1 and 8-2 Review and Preview and Basics of Hypothesis Testing.
Fundamentals of Hypothesis Testing: One-Sample Tests
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Introduction to Hypothesis Testing.
Statistical Analysis Statistical Analysis
Section 10.1 ~ t Distribution for Inferences about a Mean Introduction to Probability and Statistics Ms. Young.
Inference about Two Population Standard Deviations.
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
Created by Erin Hodgess, Houston, Texas Section 7-5 Testing a Claim About a Mean:  Not Known.
Section 9.2 ~ Hypothesis Tests for Population Means Introduction to Probability and Statistics Ms. Young.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
1 Introduction to Hypothesis Testing. 2 What is a Hypothesis? A hypothesis is a claim A hypothesis is a claim (assumption) about a population parameter:
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved.Copyright © 2010 Pearson Education Section 9-5 Comparing Variation in.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
7.5 Hypothesis Testing for the Variance and Standard Deviation Statistics Mrs. Spitz Spring 2009.
1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples.
Comparing Two Variances
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
1 Chapter 9 Hypothesis Testing. 2 Chapter Outline  Developing Null and Alternative Hypothesis  Type I and Type II Errors  Population Mean: Known 
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
Chap 8-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 8 Introduction to Hypothesis.
Week 8 October Three Mini-Lectures QMM 510 Fall 2014.
1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use.
Psych 230 Psychological Measurement and Statistics
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
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.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
© Copyright McGraw-Hill 2004
Inferences Concerning Variances
Sec 8.5 Test for a Variance or a Standard Deviation Bluman, Chapter 81.
Engineering Statistics Chapter 3 Distribution of Samples Distribution of sample statistics 3B - Variance.
Lecture 19 Dustin Lueker.  The p-value for testing H 1 : µ≠100 is p=.001. This indicates that… 1.There is strong evidence that μ=100 2.There is strong.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 9 Hypothesis Testing: Single.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Hypothesis Testing Involving One Population Chapter 11.4, 11.5, 11.2.
Copyright © 2009 Pearson Education, Inc t LEARNING GOAL Understand when it is appropriate to use the Student t distribution rather than the normal.
Slide Slide 1 Hypothesis Testing 8-1 Overview 8-2 Basics of Hypothesis Testing Chapter 8.
Chapter 10: The t Test For Two Independent Samples.
Chapter 9 Introduction to the t Statistic
Chapter 7 Hypothesis Testing with One Sample.
Two-Sample Hypothesis Testing
Engineering Statistics Hypothesis Testing
SIN502S Week 6.
Hypothesis Tests for Two Population Standard Deviations
Presentation transcript:

Engineering Statistics Chapter 4 Hypothesis Testing 4B Testing on Variance & Proportion of Variances

Why test variance? In real life, things vary. Even under strictest conditions, results will be different between one another. This causes variances. When we get a sample of data, apart from testing on the mean to find if it is reasonable, we also test the variance to see whether certain factor has caused greater or smaller variation among the data. While larger variance may indicate the influence of some undesirable element, certain factors also bring the data closer, resulting in smaller variance. Whether welcome or not, we need to know if these factors exist.

Differences In nature, variation exists. Even identical twins have some differences. This makes life interesting. In production, uniformity is usually desirable. Farmers try to find ways to make their tomatoes of the same size, or nearly so, so that they can grade them and pack them in standard packs. Manufacturers thrive on uniformity of their products. That is the conveyor belt industry’s prerequisite. It will be a nightmare if the cars coming out of a production line are different.

Nature against Production In real life, however, variation exists. When things come out uniform, it is a suspicious event. Hence if we find that a garden produces fruits of exactly the same size, then it means that either there is an interference in the process, for example, where the fruits are kept in fixed-shaped containers while growing, or they are artificial. Another example of unlikely even product is when the signature on many copies are exactly matching. This may be the result of tracing, and so the signatures are not real.

Purpose of Variance Analysis Suppose we have introduced a procedure to make our product uniform, how can we be sure that the aim has been achieved: i.e. the variance has become smaller? Conversely, if we find that the scores of students come out nearly the same, we wonder if there is copying among them, because normally we expect them to get different scores. These are where tests on variances is done.

Variation of variance As we collect sample data, it nearly always yield data varying from one end of the mean to another. Such variations are parts of natural distribution. In general, we expect the variation (I.e. the standard deviation) to be of a certain range. Both large and small variances are not normal. Hence, in testing on variance, we may test for large values or small values. These correspond to right and left-tail tests. Similarly, we may also test for the variance to be within a range, for the two- tail tests.

Modeling variance There are two ways by which the variances are tested: either a sample variance against the assumed population variance, or variances of two population. As we learn in Ch 3 (3B), sample variance follows the  2 -distribution when compared to the population variance. Hence, we shall test sample variance s 2 against the population variance  2 using the distribution (n –1)s 2 /  2 ~  2.

Left and right-tails As there is great difference between the left and right tail of a  2 -distribution, we need to read the two ends separately. As usual, if we are testing on the right tail, we read the  2 -value at . However, for the left tail, we read the value at 1– . If we are comparing the variances of two samples, the distribution to be used is the F-distribution, with n 1 –1, n 2 –1 degrees of freedom.

Example 1 The administrative manager of our company feels that when the files of a customer have very different sizes, it will mean loss of spaces. To avoid wasting spaces allocated for common computer files in an office, he introduces a new format for all such files. After using the format for a month, the manager checks on 25 such files, and find that the standard deviation in the sizes is 3.3 kb. Previously the standard deviation was 5.4 kb. At 90% level of confidence, test the hypothesis that the standard deviation has been reduced.

Example 1 (Analysis) Since there are 25 data, we model the variance s 2 using a  2 -distribution of degree =25–1=24. The model is (25–1)s 2 /5.4 2 ~  As we are testing whether the variance (hence the standard deviation) has gone down, we run a test on the left-tail of the distribution.

The procedure Null hypothesis:  2 = ; Alternative hypothesis:  2 < Test statistic:  2 = 24  s 2 /5.4 2 ~  At 90% confidence,  =0.1, 1–  =0.9,  2 0.9,24 = Hence the null hypothesis will be accepted if  2   2 = 24  /5.4 2 = <  2 critical. So we reject the null hypothesis. The file standard deviation has indeed been reduced.

The graph As has been discussed before, the value of  2 is badly skewed. We will accept the null hypothesis when  2 is is more than the critical value of However, the value obtained is less than that, so we accept the alternative hypothesis.

Example 2 The standard deviation of the price of a tray of 30 eggs is 32.5 sen. A check is made on the price in 38 outlets a town and it is found that the standard deviation is 42.4 sen. At 95% of confidence, test the hypothesis the prices in that town fluctuate more than 32.5 sen. Solution: The distribution we should use is (38–1)s 2 / ~  Unfortunately, the  2 table does not provide for the 37 degree of freedom. We have to take the nearest value, i.e.  2 40.

Example 2 (Analysis) The test is on whether the prices vary more in that town than in general. So our test is on the right tail. Null hypothesis:  2 = ; Alternative hypothesis:  2 > Test statistic:  2 = 37  s 2 / ~  (Note: Even though we are reading the value of  2 40, technically we are still testing using  2 37.) At 95% confidence,  =0.05,  ,37 = Hence the null hypothesis will be admitted if  2  In this case, the calculated value of  2 is 37  / = >  2 critical. So we reject the null hypothesis. The standard deviation of price of eggs in that town is high.

Example 3 A florist orders for dendrobium orchids with the specified mean length of 85 cm and standard deviation of 5.8 cm. When she receives a supply, the measurement of 22 stalks shows a mean about 85.5 cm, which is acceptable. But the standard deviation is 6.7 cm, which different from the specified value. At 95% of confidence, test the hypothesis the standard deviation is not what is expected. Solution: The distribution for test is (22–1)s 2 /6.7 2 ~  2 21.

Example 3 (Solution) Since we want to know if the SD is as expected, we shall test on two tails. Null hypothesis:  2 = ; Alternative hypothesis:  2  Test statistic:  2 = 21  s 2 /5.8 2 ~  At 95% confidence,  =0.05,  /2=0.025, 1-  /2 =0.975,  ,21 = , and  ,21 = Hence we shall accept null hypothesis if   2   2 = 21  /5.8 2 = , which is within the range of critical values. Hence we accept the null hypothesis. This means the variance is acceptable.

Example 4

Example 5

Ratio of two variance When we compare the variances from two samples, the correct measure to take is the ratio of the two using the F-distribution. As we saw in 3B, s 1 2 /s 2 2 ~F 1, 2, where n 1 and n 2 are the sizes of the samples and 1 =n 1 -1, and 2 =n Similar to the test of one sample variance against the population, we may have one-tail (on the right or left), or two-tail test.

Example 6 In order to compare the variation of income among the workers in two categories, a survey is conducted among 15 workers from category A and 31 in category C. It turns out that the standard deviation for A is RM and that for C is RM At 95% level of confidence, test the hypothesis the variation in incomes for the two group are nearly the same. Solution: We shall use the F-distribution of 14 numerator degree and 30 denominator degree for the test. i.e.  1 2 /  2 2 ~ F 14,30.

Example 6 (Solution) We run a two tail test to find if the variance are different. Null hypothesis:  1 2 =  2 2 ; Alternative hypothesis:  1 2   2 2. Test statistic: F = s 1 2 /s 2 2 ~ F 14,30. At 95% confidence,  =0.05,  /2=0.025, 1-  /2 = From the table, F 0.025,14,30 = 2.31, [Actually F 0.025,15,30 ]. However, for F 0.975,14,30, we need to calculate the value as follows:

Example 6 (contd) F 0.025,30,14 = F 0.975,14,30 = 1/F 0.025,30,14 = 1/2.73 = Hence we shall accept null hypothesis if  F calculated  F calculated = s 1 2 /s 2 2 = / = This falls within the critical range. Hence we accept the null hypothesis. The variances (and hence the standard deviations) of the two categories of workers are not different.

Example 7 A medical director claims that the standard deviation in the time taken for treating patients has been cut down since he has introduced a new procedure. The record shows that for 21 patients, the standard deviation for treatment is 6.8 minutes. In contrast, the standard deviation for 16 patients was 9.2 minutes before the procedure was used. At 95% level of confidence, can you accept his claim? Solution: Let s 1 and s 2 represent the standard deviation pre- and post- procedure.

Example 7 (Solution) Null hypothesis:  2 2 =  1 2 ; Alternative hypothesis:  2 2 <  1 2. Test statistic: F = s 2 2 /s 1 2 ~ F 20,15. This is a one-tail test. As we are testing for reduction, it means we are looking at the left tail. At 95% confidence,  =0.95. From the table, F 0.05,15,20 = So F 0.95,20,15 = 1/2.20 = Hence we shall accept the null hypothesis if F calculated  0.455, and reject it otherwise. F calculated = /9.2 2 = > F critical. Hence we accept the null hypothesis. The change in the standard deviation is not significant at  =0.95.

Example 8 A technician complains that the standard deviation of the IC produced since the temperature in the production room has decreased by 2 o C has actually gone up. This affects the quality of the IC. A measurement shows that the standard deviation of the 12 new ICs is 32.2  m; while 15 ICs from the previous batch has standard deviation of 27.4  m. At 95% confidence level, can we support the technician? Solution: Let s 1 and s 2 represent the standard deviation before and after the temperature was reduced. Null hypothesis:  2 2 =  1 2 ; Alternative hypothesis:  2 2 >  1 2.

Example 8 (Solution) Test statistic: F = s 2 2 /s 1 2 ~ F 11,14. This is a one-tail test on the right. At 95% confidence,  =0.05. So we shall look for F 0.05,11,14. However, the table does not provide value for F 0.05,11,14, so we read the values for F 0.05,10,14 (2.60) and F 0.05,12,14 (2.53) and take the average, giving Hence we shall accept the null hypothesis if F calculated  2.57, and reject it otherwise. F calculated = / = < F critical. So the null hypothesis is accepted.