12
1. Do Text Exercise 6.6-6. The 95% confidence interval for is given by < < X z 0.025 /n X + z 0.025 /n We want Section 6.6 z 0.025 /n 5 z 0.025 / 5 n (z 0.025 / 5) 2 n [(1.960)(33.7) / 5] 2 n 174.5 n The sample size must be at least 175. Note that formula 6.6-1 in the textbook is the general formula for finding the necessary sample size in this situation; if we are not certain about the value for , we must use the largest value that we think is possible.

1. Do Text Exercise 6.6-6. The 95% confidence interval for is given by < < X – z 0.025 / nX + z 0.025 / n We want Section 6.6 z 0.025

Embed Size (px)

Citation preview

Page 1: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

1. Do Text Exercise 6.6-6.

The 95% confidence interval for is given by

< <X – z0.025 /n X + z0.025 /n

We want

Section 6.6

z0.025 /n 5

z0.025 / 5 n

(z0.025 / 5)2 n

[(1.960)(33.7) / 5]2 n

174.5 n

The sample size must be at least 175.Note that formula 6.6-1 in the textbook is the general formula for

finding the necessary sample size in this situation; if we are not certain about the value for , we must use the largest value that we think is possible.

Page 2: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

2. Do Text Exercise 6.6-12.

The 90% confidence interval for p is given by

< p <Y/n – z/2 (Y/n)(1 – Y/n) / n Y/n + z/2 (Y/n)(1 – Y/n) / n

We want z0.05 p (1 – p) / n 0.03

z0.05 p (1 – p) / n 0.03

z0.05 p (1 – p) / 0.03 n

z20.05 p (1 – p) / (0.03)2 n

(1.645)2 p(1 – p) / 0.0009 n

< p <p – z0.05 p (1 – p) / n p + z0.05 p (1 – p) / n

The largest possible value for p(1 – p) is when p = 0.5. If we have no information at all about p, then we can use p = 0.5, and this gives us the sample size for the “worst case.” Otherwise we can use a value for p which is as close to 0.5 as seems reasonable.

2.-continued

Page 3: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

(1.645)2 p(1 – p) / 0.0009 n

Suppose we make no assumption about p, and use p = 0.5 to get the sample size for this “worst case.”

Suppose we believe that p is much closer to p = 0.8 than to 0.5.

(1.645)2 (0.25) / 0.0009 n

751.7 n

The sample size must be at least 752.

(1.645)2 (0.8)(0.2) / 0.0009 n

481.1 n

The sample size must be at least 482.

Note that formulas 6.6-2 and 6.6-3 in the textbook are the general formulas for finding the necessary sample size in a situation of either one of these types.

Page 4: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

3.

(a)

An urn contains 1500 marbles, each of which is either green or blue. Let M represent the number of blue marbles, and let p represent the proportion of blue marbles, that is, p = M / 1500. For n < 1500, we define following random variables:

X =

Y =

the number of blue marbles when n marbles are selected with replacement from the urn,

the number of blue marbles when n marbles are selected without replacement from the urn.

Name the type of distribution X has, and find the mean and variance of X.

X has a distribution.b(n, p)

E(X) = Var(X) = M 1500 – M

np(1 – p) = n —— ———— 1500 1500

Mnp = n ——

1500

Page 5: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

3.-continued

(b)

(c)

Name the type of distribution Y has, and find the mean and variance of Y.

Y has a distributionhypergeometric with N = , N1 =1500 M.

E(Y) = Var(Y) = Mn —— = np 1500

M 1500 – M 1500 – nn —— ———— ———— = 1500 1500 1500 – 1

1500 – nnp(1 – p) ————

1499

Let pX = X / n , and let pY = Y / n . Find the mean and variance for each of pX and pY , explain why each is an unbiased estimator of p = M / 1500, and decide which estimator is better.

1— E(X) = n

1— np = p n

E(pX) = E(X / n) =

Page 6: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

1— E(X) = n

1— np = p n

E(pX) = E(X / n) =

1— E(Y) = n

1— np = p n

E(pY) = E(Y / n) =

Consequently, both estimators of p are unbiased.

1— Var(X) = n2

1 p (1 – p) — np (1 – p) = ——— n2 n

Var(pX) = Var(X / n) =

1— Var(Y) = n2Var(pY) = Var(Y / n) =

1 1500 – n — np (1 – p) ———— = n2 1499

p (1 – p) 1500 – n ———— ———— n 1499

pY is the better estimator, since its variance is smaller.

Page 7: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

3.-continued

(d) Suppose a 99% confidence interval for p is to be obtained from a random sample of n observations of X. Find the sample size required if we want the maximum error of estimate to be 0.015.

The 99% confidence interval for p is given by

< p <p – z0.005 p (1 – p) / n p + z0.005 p (1 – p) / n

We want z0.005 p (1 – p) / n 0.015

z20.005 p (1 – p) / (0.015)2 n

(2.576)2 p(1 – p) / 0.000225 n

Since we make no assumption about p, we use p = 0.5 to get the sample size for this “worst case.”

(2.576)2 (0.25) / 0.000225 n

7373.1 nThe sample size must be at least

7374.

Page 8: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

3.-continued

(e) Suppose a 99% confidence interval for p is to be obtained from a random sample of n observations of Y by using the confidence interval discussed just before Example 6.6-4 in the text. Find the sample size required if we want the maximum error of estimate to be 0.015.

The 99% confidence interval for p is given on page 319 of the text.

We want m———————— n1 + (m – 1) / 1500

where m = z20.005 p (1 – p) / (0.015)2

Since we make no assumption about p, we use p = 0.5 to get the sample size for this “worst case.”

m = (2.576)2 (0.25) / 0.000225 = 7373.084

1246.6 nThe sample size must be at least

1247.

Page 9: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

Add a worksheet to the Excel file Confidence_Intervals (created previously) which displays the minimum sample size required to estimate a mean or a proportion p.

4.

(a) Create a worksheet named Sample Size in the Excel file named Confidence_Intervals as follows:

Page 10: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

Insert a new worksheet by right clicking on the last worksheet name at the bottom left of the screen and selecting the option Insert, and name the worksheet Sample Size.

(2) Enter the labels displayed in columns A and B, and enter the value 0.5 in cell A13 as displayed.

(3) (4) (5)

Color the cells A2, A3, A4, A12, A13, A14, and A19 with a light color such as yellow.

(1)

Center the display in cells A2:A5, A7, A12:A15, A17, A19, and A21.

Enter the following formulas respectively in cells A5 and A15:

=IF(ISBLANK(A4),"-",NORMINV(1-0.5*(1-A4),0,1))

=IF(ISBLANK(A14),"-",NORMINV(1-0.5*(1-A14),0,1))

(6)

In the Formulas tab, use the Define Name option to assign

the name em to cell A2,

the name sb to cell A3,

the name zm to cell A5,

the name ep to cell A12,

the name pb to cell A13,

the name zp to cell A15,

the name m to cell A17,

the name Np to cell A19.

Page 11: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

4.-continued (7) Enter the following formulas respectively in cells A7 and A17:

=IF(OR(ISBLANK(A2),ISBLANK(A3),ISBLANK(A4)),"-",ROUNDUP((zm*sb/em)^2,0))

=IF(OR(ISBLANK(A12),ISBLANK(A13),ISBLANK(A14)),

"-",ROUNDUP(zp^2*pb*(1-pb)/ep^2,0))

Enter the following formula in cell A21:

(8)=IF(OR(ISBLANK(A12),ISBLANK(A13),ISBLANK(A14),ISBLANK(A19)),

"-",ROUNDUP(m/(1+(m-1)/Np),0))

(9) Save the file as Confidence_Intervals (in your personal folder on the college network).

Page 12: 1. Do Text Exercise 6.6-6. The 95% confidence interval for  is given by <  < X – z 0.025  /  nX + z 0.025  /  n We want Section 6.6 z 0.025

(b)

(c)

(d)

(e)

Use the Excel file Confidence_Intervals to obtain the sample size in Class Exercise #1 of this section (Text Exercise 6.6-6).

Use the Excel file Confidence_Intervals to obtain the sample size in Class Exercise #2 of this section (Text Exercise 6.6-12).

Use the Excel file Confidence_Intervals to obtain the sample size in Class Exercise #3(d).

Use the Excel file Confidence_Intervals to obtain the sample size in Class Exercise #3(e).