Transcript STT 315
STT 315 This lecture is based on Chapter 5.1-5.3 Set-up β’ Suppose we take a random sample of size n from a population with mean π and standard deviation π. β’ The sample mean π₯ will serve the purpose of point estimator of population mean π. β’ Goal: To construct a 100 1 β πΌ % C.I. for π. β’ However the procedure will depend on whether β the sample size n is large enough or not, β we know the value of π or not. 2 Large sample C.I.βs of π 3 Reminder: Sampling distribution of π₯ Suppose we take a random sample from a population with mean π, and standard deviation π. In that case, the sample mean π₯ has the following properties: ο§ ππ₯ = πΈ π₯ = π. ο§ ππ₯ = π . π ο§ Furthermore, for large sample size (π β₯ 30) π₯~π ππ₯ , ππ₯ β‘ π π, π π approximately. 4 Building a C.I. for π β’ If π~π(0,1) then π§πΌ/2 is such a number that πΌ π π > π§πΌ 2 = . 2 β’ Thus P βπ§πΌ β’ Since π₯~π π, π π approximately, we have π β 2 <π< π₯βπ ~π π π 0,1 approximately. β’ So working backward we find that there is roughly 1 β πΌ probability that the interval π₯ β π§πΌ contain π. π 2 π, π₯ + π§πΌ π 2 π will 5 100 1 β πΌ % C.I. for π β’ If sample size is large then the 100 1 β πΌ % approximate C.I. for π is: οπ₯ οπ₯ π β π§πΌ 2 , π π β π§πΌ 2 , π if std. dev. (π) is known, if std. dev. is unknown, where π₯ is the sample mean , and π is the sample standard deviation. β’ If π β₯ 30, we can consider the sample is large enough. β’ If sample is not large enough, we need to assume that the population is normally distributed. β’ We shall use TI83/84 to compute C.I.βs for π. 6 Example A sample of 82 MSU undergraduates, the mean number of Facebook friends was 616.95 friends with standard deviation of 447.05 friends. Use this information to make a 95% confidence interval for the average number of Facebook friends MSU undergraduates have. β’ Press [STAT]. β’ Select [TESTS]. β’ Choose 7: ZIntervalβ¦. β’ Select with arrow keys Stats β’ Input the following: ο§ ο§ ο§ ο§ π: 447.05 π₯ : 616.95 n : 82 C-Level: 95 β’ Choose Calculate and press [ENTER]. β’ Answer: 95% C.I. for µ is (520.19, 713.71). 7 C.I.βs of π for normal populations 8 Reminder: Sampling distribution of π₯ Suppose we take a random sample from a population normally distributed with mean π, and standard deviation π. In that case, the sample mean π₯ has the following properties: ο§ ππ₯ = πΈ π₯ = π. ο§ ππ₯ = π . π ο§ Furthermore, if the population is normally distributed then π π₯~π ππ₯ , ππ₯ β‘ π π, . π 9 100 1 β πΌ % C.I. for π [known π] β’ If the sample is from normally distributed population with known std. dev. π, then the 100 1 β πΌ % C.I. for π is: π π₯ β π§πΌ 2 , π where π₯ is the sample mean. β’ Use ZIntervalβ¦ from TI 83/84 to compute C.I. for π [known π]. β’ β’ β’ π The margin of error: M. E. = π§πΌ 2 . π π The width of the C.I. is 2π§πΌ 2 = 2π. πΈ. π πΌ To find π§πΌ 2 use: π§πΌ 2 = πππ£ππππ 1 β , 0,1 2 . 10 100 1 β πΌ % C.I. for π [known π] Larger the std. dev. π, larger the M.E. Larger the confidence level, larger the M.E. Larger the sample size π, smaller the M.E. Given the confidence level and std. dev., one can find the optimal sample size for a particular margin of error using the formula: π§πΌ 2 π 2 π= . π. π. β’ Always round-up for the optimal sample size π. β’ β’ β’ β’ 11 Example The number of bolts produced each hour from a particular machine is normally distributed with a standard deviation of 7.4. For a random sample of 15 hours, the average number of bolts produced was 587.3. Find a 98% confidence interval for the population mean number of bolts produced per hour. β’ β’ β’ β’ β’ Press [STAT]. Select [TESTS]. Choose 7: ZIntervalβ¦. Select with arrow keys Stats Input the following: ο§ π: 7.4 ο§ π₯ : 587.3 ο§ n : 15 ο§ C-Level: 98 β’ Choose Calculate and press [ENTER]. β’ Answer: 98% C.I. for µ is (582.86, 591.74). 12 Example The number of bolts produced each hour from a particular machine is normally distributed with a standard deviation of 7.4. For a random sample of 15 hours, the average number of bolts produced was 587.3. Find a 98% confidence interval for the population mean number of bolts produced per hour. β’ We found 98% C.I. for µ is (582.86, 591.74). β’ Width = 591.74- 582.86=8.88. So M.E = Width/2 = 4.44. Suppose we want the margin of error for 98% confidence interval for the population mean number of bolts produced per hour to be 3.5. What is the optimal sample size? β’ We shall use π = β’ So π§πΌ 2 β’ π= 2.326×7.4 2 3.5 π§πΌ 2 π 2 π.π. . For 98% C.I., πΌ = 0.02. = π§0.01 = πππ£ππππ 0.99,0,1 = 2.326. = 24.2. So optimal sample size is 25. 13 100 1 β πΌ % C.I. for π [unknown π] β’ However the formula of the previous C.I. of π cannot be used if the std. dev. π is unknown. β’ In such case, one should substitute π by sample standard deviation π . β’ However, unlike the large sample we can no longer use π§distribution (i.e. π(0,1) distribution). β’ In that case, studentβs π‘-distribution comes to rescue. β’ π‘-distributions are all symmetric continuous distributions centered around 0. β’ A degree of freedom (ππ) is attached to each π‘-distrn. β’ For our problem, ππ = π β 1. 14 The concept of π‘πΌ 2;ππ β’ If π~π‘ππ then π‘πΌ;ππ is such a number that 2 πΌ π π > π‘πΌ 2;ππ = . 2 β’ Thus P βπ‘πΌ 2;ππ < π < π‘πΌ 2;ππ = 1 β πΌ. 15 100 1 β πΌ % C.I. for π [unknown π] β’ If the sample is from normally distributed population but the std. dev. is unknown, then the 100 1 β πΌ % C.I. for π is: π π₯ β π‘πΌ 2;πβ1 , π where π₯ is the sample mean, and π is the sample standard deviation. β’ β’ π Here the margin of error is π‘πΌ 2;πβ1 . π π The width of the C.I. is 2π‘πΌ 2;πβ1 = 2π. πΈ. π β’ Use TIntervalβ¦ from TI 83/84 to compute C.I. for π [unknown π]. 16 Example The Daytona Beach Tourism Commission is interested in the average amount of money a typical college student spends per day during spring break. They survey 25 students and find that the mean spending is $63.57 with a standard deviation of $17.32. Develop a 97% confidence interval for the population mean daily spending. β’ β’ β’ β’ β’ Press [STAT]. Select [TESTS]. Choose 8: TIntervalβ¦. Select with arrow keys Stats Input the following: ο§ ο§ ο§ ο§ π₯ : 63.57 Sx: 17.32 n : 25 C-Level: 97 β’ Choose Calculate and press [ENTER]. β’ Answer: 97% C.I. for µ is (55.58, 71.56). 17