Title: Sample Size Needed to Achieve High Confidence Means
1Sample Size Needed to Achieve High Confidence
(Means)
Considering estimating ?X, how many observations
n are needed to obtain a 95 confidence interval
for a particular error tolerance?
The error tolerance E is ½ the width of the
confidence interval
Here, ? is a conservative (high) estimate of the
true std dev ?X, often gotten by doing a
preliminary small sample
1.960 can be adjusted to get different confidences
2Derivation of Formula
- E z std. error z sigma/sqrt(n)
- Thus, sqrt(n) z sigma/E
- So, n z sigma/E 2
3Sample Size Needed to Achieve High Confidence
(Proportions)
Considering estimating pX, how many observations
n are needed to obtain a 95 confidence interval
for a particular error tolerance?
The error tolerance E is ½ the width of the
confidence interval
Here, p is a conservative (closer to 0.5)
estimate of the true population proportion pX,
often gotten by doing a preliminary small sample
1.960 can be adjusted to get different confidences
4Derivation
- E z std. error
- But now, std error sqrtp(1-p)/n, so
- E z sqrtp(1-p)/sqrt(n), and hence
- Sqrt(n) z sqrtp(1-p)/E,
- gt n z sqrtp(1-p)/E2
5(No Transcript)
6(No Transcript)
7(No Transcript)
8Hypothesis Testing
- Formulate null hypothesis (action is associated
with alternative) - Compute Test Statistic
- Determine Acceptance Region
9Heart Valve Example
- Original yield 52
- Change Process (Sort in batches of 5)
- Sample 100 assemblies sample yield 79
10Heart Valve Example Formulate Null Hypothesis
- Null Hypothesis the true process yield is 52 or
less ------ Why????? - Note Action would be associated with the
alternative----adopt new process only if it
really increases the yield.
11Heart Valve Example Compute Test Statistic
- We will use the Normal Approximation
- (how many standard deviations to the right of .52
is .79?)
12Heart Valve Example Determine Acceptance Region
Suppose we want to set the probability of
rejecting the null hypothesis given that it is
true (type 1 error) 0.0001 Compute Z
normsinv(.9999) 3.71947 Reject the null
hypothesis if Test statistic gt 3.71947
13(No Transcript)
14Heart Valve Example conclusion
- Test statistic 5.404
- Reject null hypothesis if test statistic gt
3.71947 - We should REJECT the null hypothesis
15(No Transcript)
16(No Transcript)
17(No Transcript)
18(No Transcript)
19(No Transcript)
20(No Transcript)
21(No Transcript)
22(No Transcript)
23(No Transcript)
24(No Transcript)
25(No Transcript)
26(No Transcript)
27Two-Sample Tests for Means
- Used when we wish to compare the means of two
populations when both means are unknown - Tools gt Data Analysis gt two sample test
- See Two Sample Spreadsheet
28Two Sample Tests
- Z-test two sample for means when std.
deviations are known for both distributions - T-test two sample assuming equal variances
- T-test two sample assuming unequal variances
- Usually just use unequal variance test
29(No Transcript)
30(No Transcript)
31(No Transcript)
32(No Transcript)
33(No Transcript)
34(No Transcript)
35(No Transcript)
36(No Transcript)
37(No Transcript)
38(No Transcript)
39 Important Note The use of the chi-square
test on variance requires that the underlying
population be normally distributed.
40(No Transcript)
41(No Transcript)
42(No Transcript)
43(No Transcript)
44(No Transcript)
45(No Transcript)
46(No Transcript)
47(No Transcript)
48(No Transcript)
49(No Transcript)
50(No Transcript)
51(No Transcript)
52(No Transcript)
53Chi-Test Examples
- See 95 Murders.xls spreadsheet