Lab 7a Confidence Intervals in Excel(1)

pdf

School

Columbus State Community College *

*We aren’t endorsed by this school

Course

1400

Subject

Statistics

Date

Jan 9, 2024

Type

pdf

Pages

4

Uploaded by khadija11241999

Report
STAT 1400 Lab 7: Confidence Intervals Name: _Khadija Abdikadir ________________ Published by Columbus State Community College, 550 E. Spring St., Columbus, Ohio, 43215. Copyright © 2022 Columbus State Community College. All rights reserved. OBJECTIVES: To explore properties of confidence intervals related to confidence level and sample size. To calculate confidence intervals for a variety of real-world applications and interpret the results. EXCEL PROCEDURES Retrieve LAB 7 DATA COMMUTING.XLXS from your blackboard course for STAT 1400. This data contains commuting information for randomly selected Franklin County residents as follows: Column A: Commuting distances for 100 randomly selected Franklin County residents (in miles) Column B: Commuting distances for 50 randomly selected Franklin County residents (in miles) Column C: Do you listen to the radio on your commute to work? (0=no, 1=yes) EFFECT OF CONFIDENCE LEVEL 1. To investigate how increasing a confidence level will affect the width of the interval, use Excel to produce 90%, 95% and 99% confidence intervals for the mean commuting distance for all Franklin County residents from our sample of size n = 100. a. In cell E2, find the sample mean by select the Formulas tab and clicking on the More Functions icon and selecting Statistical . Under the statistical menu select AVERAGE . You will see the Function Arguments dialog box open. In the Function Arguments dialog box select cells A2 through A101 for number 1 and click OK . The sample mean will now be displayed. b. In cell E3, find the sample standard deviation by following the steps in part a. above but now selecting STDEV.S from the Statistical menu. c. In cell E4, find the sample size by following the steps in part a. above but now selecting COUNT from the Statistical menu. d. In cell E6, find the margin of error by selecting the Formulas tab and clicking on the More Functions icon and selecting Statistical . Under the Statistical menu select CONFIDENCE.T . You will see the Function Arguments dialog box open. Enter the appropriate alpha level ( 0.10 for 90% confidence) and select cell E3 for the standard deviation and cell E4 for the sample size. e. In cell E7, find the lower confidence limit by using the formula =(E2 E6). f. In cell E8, find the upper confidence limit by using the formula =(E2+E6). g. In cell E9, find the width confidence interval by using the formula =(E8 E7) h. Copy/Paste cells D2-D9 and E2-E9 here for the 90% confidence interval. i. Next calculate the 95% and 99% confidence intervals by changing the first argument in cell E6 to appropriate alpha level (0.05 for 95% confidence and 0.01 for 99% confidence). j. Copy/Paste cells D2-D9 and E2-E9 here for the 95% and 99% confidence intervals.
Lab 7 Page 2 of 4 2. Fill in the table with the appropriate confidence interval information. Confidence Interval Information for Sample Size n = 100 Confidence Level Margin of Error Lower Conf. Limit Upper Conf. Limit Width of Interval 90% 1.875776647 18.48422335 22.23577665 3.751553294 95% 2.241609037 18.11839096 22.60160904 4.483218075 99% 2.967102062 17.39289794 23.32710206 5.934204124 3. Does a higher confidence level result in a narrower or wider interval? Explain. A higher confidence level results in a wider interval because as the confidence level increased from 90% to 95% to 99%, the width of the interval increases. The highest confidence level has the widest interval. 4. Interpret the 95% confidence interval based on the context of the information. We are 95% confident that the mean commuting distance for Franklin County residents is between 18.11839096 and 22.60160904. EFFECT OF SAMPLE SIZE 5. To investigate how the sample size affects the resulting confidence interval, use Excel to produce 90%, 95% and 99% confidence intervals for the mean commuting distance for all Franklin County residents from our sample of size n = 50 and compare these results to those you found in #2 using n=100. a. Copy cells E2 to E9 into cells F2 to F9. b. The sample mean, sample standard deviation, and sample size will now be displayed for our sample of size n = 50. c. In cell F6, change alpha level back to 0.10 (for 90% confidence) and make sure the standard deviation and sample size is F3 and F4 respectively. d. Copy/Paste cells D2-D9 and F2-F9 here for each interval. 6. Fill in the table below with the appropriate confidence interval information. Confidence Interval Information for Sample Size n = 50 Confidence Level Margin of Error Lower Conf. Limit Upper Conf. Limit Width of Interval
Lab 7 Page 3 of 4 90% 2.454504348 17.88549565 22.79450435 4.909008696 95% 2.94205871 17.39794129 23.28205871 5.884117421 99% 3.923503784 16.41649622 24.26350378 7.847007568 7. Compare the table in #2 (sample of size 100) to the table here in #5 (sample of size 50). Does a small sample size result in a narrower or wider interval? Explain. A small sample size results in a wider interval because the width of the intervals in the sample size of 50 are larger than the width of the intervals in the sample size of 100. 8. Interpret the 99% confidence interval based on the context of the information. We are 99% confident that the mean commuting distance for Franklin County residents is between 16.41649622 and 24.26350378 . CONFIDENCE INTERVALS FOR PROPORTIONS 9. Use Excel to construct a 95% confidence interval for the population proportion of commuters who listen to the radio on their commute to work. a. In E14 find the sample proportion (p-hat) by entering the formula =average(C2:C101) b. In E15 find q-hat by entering the formula =1-E14 c. In E16 find z for a 95% confidence interval by entering the formula =norm.inv(.025,0,1) d. In E17 find the stdev of the proportion by entering the formula =sqrt((E14*E15)/100) e. In E18 find the margin of error by entering the formula =ABS(E16*E17) f. In E19 find the lower limit by entering the formula =E14-E18 g. In E20 find the upper limit by entering the formula =E14+E18 h. In E21 find the width of the interval by entering the formula =E20-E19 i. Copy/Paste cells D14-D21 and E14-E21 here: p-hat 0.71 q-hat 0.29 z -1.959963985 Std Dev 0.045376205 Margin Of Error 0.088935728 Lower Confidence Limit 0.621064272 Upper Confidence Limit 0.798935728 Width of Interval 0.177871456
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Lab 7 Page 4 of 4 . Confidence Interval: __ Z______________________ 10. Interpret the above confidence interval in the context of the problem. We are 95% confident that the population proportion of commuters who listen to the radio on their commute to work is between 0.621064272 and 0.798935728.