document.write( "Question 1205286: Scarlett and Heather, the owners of an upscale restaurant in Dayton, Ohio, want to study the dining charac- teristics of their customers. They decide to focus on two variables: the amount of money spent by customers and
\n" ); document.write( "whether customers order dessert. The results from a sample of 60 customers are as follows:
\n" ); document.write( "Amount spent:sample mean,X = $38.54/customer and standard deviation of S = $7.62.
\n" ); document.write( "18 customers purchased dessert out of 60 customers.
\n" ); document.write( "a. Construct a 95% confidence interval estimate for the population mean amount spent per customer in the restaurant.
\n" ); document.write( "b. Construct a 97% confidence interval estimate for the population proportion of customers who purchase dessert.
\n" ); document.write( "Jack, the owner of a competing restaurant, wants to conduct a similar survey in his restaurant. Jack does not have access to the information that Scarlett and Heather have obtained from the survey they conducted. Answer the following questions:
\n" ); document.write( "c. What sample size is needed to have 95% confidence of estimating the population mean amount spent in her restaurant with a margin of error of$1.50, assuming that the standard deviation is estimated to be $8?
\n" ); document.write( "d. How many customers need to be selected to have 92% confidence of estimating the population proportion of customers who purchase dessert with a margin of error 0.04?
\n" ); document.write( "e. Based on your answers to (c) and (d), how large a sample should Jack take?
\n" ); document.write( "

Algebra.Com's Answer #842210 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
for scarlett and heather:
\n" ); document.write( "sample mean for amount spent = 38.54
\n" ); document.write( "sample standard deviation for amount spent = 7.62
\n" ); document.write( "sample size is 60.
\n" ); document.write( "18 out of 60 chose dessert.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "since we are working off the sample mean and sample standard deviation, we need to use the t-score rather than the z-score.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "a. Construct a 95% confidence interval estimate for the population mean amount spent per customer in the restaurant.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "standard error = standard deviation / square root of sample size = 7.62/sqrt(60) equals .983738 rounded to 6 decimal places.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "critical t-score at 95% confidence interval with 59 degrees of freedom is equal to t = plus or minus 2.0.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "on the high side of the 95% confidence interval, the formula of t = (x-m)/s becomes 2.0 = (x-38.54)/.983738.
\n" ); document.write( "solve for x to get x = 2.0 * .983738 + 38.54 = 40.5075 rounded to 4 decimal places.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "on the low side of the 95% confidence interval, the formula of t = (x-m)/s becomes -2.0 = (x-38.54)/.983738.
\n" ); document.write( "solve for x to get x = -2.0 * .983738 + 38.54 = 36.5725 rounded to 4 decimal places.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your 95% confidence interval is from 36.5725 to 40.5075.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "b. Construct a 97% confidence interval estimate for the population proportion of customers who purchase dessert.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p = 18/60 = .3
\n" ); document.write( "q = 1-p = .7
\n" ); document.write( "standard error = sqrt(p*q/n)
\n" ); document.write( "p = .3
\n" ); document.write( "q = .7
\n" ); document.write( "n = 60
\n" ); document.write( "formula becomes standard error = sqrt(.3*.7/60) = .059161 rounded to 6 decimal places.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "critical t-score with 59 degrees of freedom at 97% confidence interval becomes t = plus or minus 2.2238 rounded to 4 decimal places.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "on the high side of the confidence interval, t = (x-m)/s becomes 2.2238 = (x-.3) / .059161.
\n" ); document.write( "solve for x to get x = 2.2238 * .059161 + .3 = .4316 rounded to 4 decimal places.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "on the low side of the confidence interval, t = (x-m)/s becomes -2.2238 = (x-.3) / .059161.
\n" ); document.write( "solve for x to get x = -2.2238 * .059161 + .3 = .1684 rounded to 4 decimal places.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your 97% confidence interval is equal to .1684 to .4316\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "i believe part c and d will require the z-score.
\n" ); document.write( "i'm beginning to think that part a and b also needed to assume the z-score.
\n" ); document.write( "i can redo part a and b with z-scores if that's what you need.
\n" ); document.write( "i'll leave part and b as is unless you tell me you need z-scores rather than t -scores.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "for part c and beyond i'll assume z-scores.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "here goes part c and beyond.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Jack, the owner of a competing restaurant, wants to conduct a similar survey in his restaurant. Jack does not have access to the information that Scarlett and Heather have obtained from the survey they conducted. Answer the following questions:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "c. What sample size is needed to have 95% confidence of estimating the population mean amount spent in her restaurant with a margin of error of$1.50, assuming that the standard deviation is estimated to be $8?\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "critical z-score at 95% confidence interval = plus or minus z = 1.96.
\n" ); document.write( "formula used is z = (x-m)/s.
\n" ); document.write( "(x-m) is the margin of error which is equal to 1.5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "on the high side of the confidence interval, you get z = (x-m)/s which becomes 1.96 = 1.5 / s
\n" ); document.write( "solve for s to get s = 1.5/1.96.
\n" ); document.write( "since s = standard deviation / sqrt(sample size) and since standard deviation is equal to 8, then you get 8/sqrt(sample size) = 1.5/1.96
\n" ); document.write( "solve for sqrt(sample size) to get sqrt(sample size) = 8 * 1.96 / 1.5 = 10.45333.....
\n" ); document.write( "solve for sample size to get sample size = that squared = 109.27....
\n" ); document.write( "since sample size has to be an integer, then round up to sample size to 110.
\n" ); document.write( "standard error becomes 8/sqrt(110) = .762770 rounded to 6 decimal places.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "on the high side of the confidence interval, the z-score formula becomes 1.96 = (x-m) / .762770 rounded to 6 decimal places.
\n" ); document.write( "solve for (x-m) to get (x-m) = 1.96 * .762770 = 1.495 rounded to 3 decimal places.
\n" ); document.write( "that's less than 1.5 as required.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "on the low side of the confidence interval, the z-score formula becomes -1.96 = (x-m) / A.
\n" ); document.write( "solve for (x-m) to get (x-m) = -1.96 * .762770 = -1.495 rounded to 3 decimal places.
\n" ); document.write( "that's greater than -1.5 as required.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the mean can be anything and you will get a margin of error of less than 1.5.
\n" ); document.write( "for example, assume the mean is 38.54.
\n" ); document.write( "your 95% confidence interval will be 38.54 - 1.495 to 38.5 + 1.495 which is equal to 37.045 to 40.035.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "here's what it looks like on a z-score calculator.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "d. How many customers need to be selected to have 92% confidence of estimating the population proportion of customers who purchase dessert with a margin of error 0.04?\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "critical z-score for 92% confidence interval is equal to z = plus or minus 1.750686071.
\n" ); document.write( "we'll round that to 1.7507.
\n" ); document.write( "z-score formula is z = (x-m)/s
\n" ); document.write( "(x-m) is the margin of error which is assumed to be .04.
\n" ); document.write( "z-score formula on the high side of the confidence interval of z = (x-m)/s which becomes 1.7507 = (x-m)/s
\n" ); document.write( "since (x-m) is assumed to be .04, the formula becomes 1.7507 = .04/s
\n" ); document.write( "solve for s to get s = .04/1.7507 = .022848 rounded to 6 decimal places.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "in a proportion type study, the standard error is equal to sqrt(p * q / n)
\n" ); document.write( "since s is the standard error, then .022848 = sqrt(p * q / n)
\n" ); document.write( "since the population proportion is assumed to be .3, then we get:
\n" ); document.write( ".022848 = sqrt(.3*.7/n).
\n" ); document.write( "square both sides of that to get:
\n" ); document.write( ".022848^2 = .3*.7/n
\n" ); document.write( "solve for n to get:
\n" ); document.write( "n = .3*.7/.022848^2 = 402.27...
\n" ); document.write( "since n has to be an integer, then n is equal to the next higher integer = 403.
\n" ); document.write( "when n = 403, the standard error becomes sqrt(.3*.7/403) = .022827 rounded to 6 decimal places.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the high side of the confidence interval formula becomes 1.7507 = (x-m) / .022827.
\n" ); document.write( "solve for (x-m) to get (x-m) = 1.7507 * .022827 = .03996 which is less than .04 as required.
\n" ); document.write( "it won't be exactly .04 unless the sample size is not an integer.
\n" ); document.write( "it's the largest the margin of error can be when the margin of error has to be less than .04.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "here's what it looks like on a z-score calculator.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "e. Based on your answers to (c) and (d), how large a sample should Jack take?\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "he needs to have the margin of error less than 1.5 for part c and less than .04 for part d.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "he would need to use the larger sample size of 403 for both, if he only has 1 choice.
\n" ); document.write( "that way, the margin of error will be less than 1.5 for part c and less than .04 for part d.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );