S S Lewis 2/15/051 Confidence Intervals and Maximum Errors By Sidney S. Lewis For Baltimore Section, ASQ February 15, 2005
S S Lewis 2/15/052 CONFIDENCE INTERVAL A confidence interval expresses our belief, or confidence, that the interval we construct from the data will contain the mean, µ, (for example) of the population from which the data were drawn. Confidence Intervals can be computed on any population parameter: µ, , p’, c’, and even on complex parameters, such as Cp and Cpk
S S Lewis 2/15/053 CONFIDENCE INTERVAL EXAMPLE Example of a confidence Interval (C.I.) on the population mean µ: Statement: The interval contains µ with 90% confidence. Alternatively, there is a 5% chance that the C.I. falls entirely below µ (µ above 42.0), and likewise, a 5% chance that the C.I. is entirely above µ (µ below 38.0)
S S Lewis 2/15/054 Example Pollsters report that 55% of a sample of 1005 members of the voting population support Proposition A. The Margin of Error is 3.1% There is an implied risk of being wrong, usually 5% Calcs.: 812.8
S S Lewis 2/15/055 POPULATION PROCESS SAMPLE PROCESS POPULATION vs. SAMPLES 810
S S Lewis 2/15/056 /2 = 2 n = 4 (xbar) = 1 = 5%
S S Lewis 2/15/057 Logic: is known to be 2.0 A sample of 4 yields X-bar = Question? What values of are probable, with 95% Confidence ( = 5%). Solution: Xbar = /on = 1.0 Z /2 = 1.96, or about 2 ME = Z /2 Xbar = ± 2.0 or from 40.0 to 44.0 MAXIMUM ERROR
S S Lewis 2/15/058 MAXIMUM ERROR of the MEAN 812.3
S S Lewis 2/15/059 C. I. on the MEAN Calculation of the C.I. on the mean µ typically uses either the population standard deviation, , if known, or if not, the sample standard deviation, s. If X-bar is the sample mean, then a 1- confidence interval on µ is: C.I. =X-bar ± Maximum Error (ME) = X-bar ± z /2 /%n if is known, or = X-bar ± t a/2 s/%n if is unknown
S S Lewis 2/15/0510 Diameters of 3/4" HR Bars Diameters of 3/4" HR barsX-barR
S S Lewis 2/15/
S S Lewis 2/15/
S S Lewis 2/15/0513 DATA STATISTICS X-barRs
S S Lewis 2/15/0514 3/4" HR Bars – MEANS and CONFIDENCE INTERVALS z(.90) = 1.645t(4,.90) = SampleX-barsLCI(z)UCI(z)LCI(t)UCI(t)
S S Lewis 2/15/
S S Lewis 2/15/
S S Lewis 2/15/0517 FACTORS AFFECTING THE WIDTH OF A CONFIDENCE INTERVAL Factors: or s, n,
S S Lewis 2/15/0518 FACTORS AFFECTING THE WIDTH OF A CONFIDENCE INTERVAL or s: Width increases as or s increases; Sample size, n.....Width decreases as n increases; C. I. is proportional to 1/on Confidence level 1 - , or risk : Width increases as confidence increases, or as risk decreases
S S Lewis 2/15/0519 CONFIDENCE INTERVALS ON Small samples (n<30) : Large samples (n>30): 812.7
S S Lewis 2/15/0520 CONFIDENCE INTERVALS ON p’ Large samples (np>5) : 812.7
S S Lewis 2/15/0521 CONFIDENCE INTERVAL ON p’, SMALL n Upper C.I. on p'Lower C.I. on p' cP’n cP’n 27.9%15.0%5082.7%11.5% %110.0%5091.1%11.0% %19.0%5097.4%10.5% %19.5%5096.4%10.6% %19.2%5095.2%10.7% %19.14%5095.0%10.72%50 ExcelFunction:=BINOMDIST(c,n,p’,1) % C.I. on p’ for n=50, c=1
S S Lewis 2/15/0522 STATISTICAL CALCULATION EXAMPLE A TECHNIQUE:1-SAMPLE TEST OF THE MEAN, SIGMA UNKNOWN: t-TEST SUBJECT:Machinability: Increased by a New Practice? GOAL: Determine whether the average machinability of steel made using a new practice in the Melt Shop can increase the machinability, with 95% CONFIDENCE (5% ). HISTORIC DATA: The recent past average machinability is 85.0 = 0 ; = DATA: Machinability data of steel made with the new practice are
S S Lewis 2/15/0523 STATISTICAL CALCULATION EXAMPLE A Calcs.: X-bar = 89.6; s = 6.196; n = 10; Maximum Error, ME = t df) * S X-bar = * = 3.6 units 90% C.I. = X-bar ± ME = 89.6 ± 3.6 = 86.0 to That means that the machinability should increase by at least 1.0 units, and may increase by 8 units
S S Lewis 2/15/0524 STATISTICAL CALCULATION EXAMPLE B TECHNIQUE: 1-SAMPLE TEST OF PROPORTIONS – Z-TEST SUBJECT:Cap leakers – reduction trial GOAL: Determine whether the rates of leaking caps are lower if a new cap design is used, with 95% CONFIDENCE ( = 5%). HISTORIC DATA: Cap leaker rate = 1.2% = p’. DATA: A trial using 2000 caps of a new design found 18 leaking caps. p = 0.90%
S S Lewis 2/15/0525 STATISTICAL CALCULATION EXAMPLE B FORMULAS: where p is in percent. CALCS: p = 18/2000 = 0.90%; = p 0 – p = = 0.30% Maximum Error, ME = Z.05 * p = * = 0.400% 90% C.I. (2-tail) on the difference = ( - 0 ) ± ME = (0.90 – 1.20) ± = +0.10% to -0.70%; 90% C.I. on p’: p ± ME = 0.90 ± 0.40 = 0.5% to 1.3%
S S Lewis 2/15/0526 CONCLUSION: The long term leaker rate of the new caps may be 0.7% lower than the old caps, but it may also be 0.1% higher, which if true, says to avoid the new caps. Therefore the data are insufficient to show, with 95% confidence, that the new caps are definitely better, which confirms the test of hypothesis. STATISTICAL CALCULATION EXAMPLE B
S S Lewis 2/15/0527 STATISTICAL CALCULATION EXAMPLE C TECHNIQUE: 1-SAMPLE TEST OF A SAMPLE STANDARD DEVIATION–CHI-SQUARED TEST SUBJECT: XYZ Digital Blood Pressure Monitor measures of systolic blood pressure GOAL: To determine if the monitor has become more variable than when new. HISTORIC DATA: Early evaluation of this monitor found the standard deviation to be 2.5 units. DATA : Using the monitor, the systolic blood pressure of a patient was measured 7 times over a ten minute period. The patient sat quietly throughout the testing. The results were: 144, 147, 147, 149, 140, 140, 144, from which s =
S S Lewis 2/15/0528 STATISTICAL CALCULATION EXAMPLE C CONFIDENCE INTERVAL: a 2-tail, 90% confidence interval will be calculated The critical values of 2 are: With 90% confidence, the true standard deviation lies between 1.83 and 5.05 units, which includes the earliest determined standard deviation of