Lecture 5 Match Sample Design; Hypothesis Testing about Two Proportions Towards Inference about Population Variance Ata Mazaheri Lecture Outline Inferences about Two Population Means, variance unknown (review) β Inferences about the Difference Between Two Population Means: Matched Samples β Inferences about the Difference Between Two Population Proportions β Inference about Population Variance β 2 Inferences about Two Population means 1 Variances Unknown We use t-statistics when variances are unknown • two cases are considered when producing the tstatistic: • Two unknown population variances are equal • Two unknown population variances are not • equal. Inference about ππ – ππ : Equal variances β Calculate the pooled variance estimate by: 2 The pooled variance estimator ο ππ = πβ −1 π12 + πβ−1 π22 πβ+πβ−2 Example: π12 = 25, π22 = 30, πβ = 10, π2 = 15. Then, ππ2 = 10 − 1 (25) + 15 − 1 (30) = 28.04347 10 + 15 − 2 4 Inference about ππ – ππ : Equal variances β Construct the t-statistic as follows: t= (π₯β−π₯β)−(m1 −m2) 1 1 ππ2 (π +π ) 1 2 β Perform a hypothesis test H0: m1 - m2 = 0 β H1: m1 - m2 > 0 β or < 0 where df= π1 + π2 − 2 Build a confidence interval ( x1 - x 2 ) ο± t ο‘ 2 or οΉ0 1 1 sp ( ο« ) n1 n2 2 where 1 - ο‘ο ο is the confidence level. 5 Inference about ππ – ππ : unequal variances π‘= (π₯1 −π₯2 ) − (π1 −π2 ) π 12 π 22 + π1 π2 df= 2 π2 1 + π2 π 1 π2 2 π2 1 1 π1 π1 −1 ² 2 π2 1 + π2 π2 −1 2 6 Inferences about the Difference Between Two Population means 2 π΄ππππππ πΊππππππ • • With a matched-sample design, each sampled item provides a pair of data values This design often leads to a smaller sampling error than the independent-sample design because variation between sampled items is eliminated as a source of sampling error Inferences About the Difference Between Two Population Means: Matched Samples β Example: Express Deliveries A firm has documents that must be quickly distributed to district offices. The firm must decide between two delivery services, UPX (United Parcel Express) and INTEX (International Express), to transport its documents. In testing the delivery times of the two services, the firm sent two reports to a random sample of its district offices with one report carried by UPX and the other report carried by INTEX. Do the data on the next slide indicate a difference in mean delivery times for the two services? Use a 0.05 level of significance. Inferences About the Difference Between Two Population Means: Matched Samples District Office Seattle Los Angeles Boston Cleveland New York Houston Atlanta St. Louis Milwaukee Denver UPX 32 30 19 16 15 18 14 10 7 16 Delivery Time (Hours) INTEX Difference 25 7 24 6 15 4 15 1 13 2 15 3 15 -1 8 2 9 -2 11 5 Inferences About the Difference Between Two Population Means: Matched Samples • P-value and Critical Value Approaches 1. Develop the hypothesis: π»π βΆ ππ = 0 π»π βΆ ππ ≠ 0 Where : ππ = the mean of the difference values for the two delivery services for the population of district offices Inferences About the Difference Between Two Population Means: Matched Samples β P-value and Critical Value Approaches 2. Compute the value of the test statistic. d ο½ ο₯ di ( 7 ο« 6ο«... ο«5) ο½ ο½ 2. 7 n 10 2 76.1 ο₯ ( di - d ) sd ο½ ο½ ο½ 2. 9 n -1 9 tο½ d - md 2.7 - 0 ο½ ο½ 2.94 sd n 2.9 10 Inferences About the Difference Between Two Population Means: Matched Samples β Critical Value Approach, πΆ = π. ππ For πΌ = 0.05 πππ ππ = 9, π‘0.025 = 2.262, Reject π»π if π‘ ≥ 2.262 Because π‘ = 2.94 > 2.262, we reject π»π . We are atleast 95% confident that there is a difference in mean delivery times for the two services. Inferences About the Difference Between Two Population Means: Matched Samples β P-value Approach For π‘ = 2.94 πππ ππ = 9, the p-value is between 0.02 and 0.01 (This is a two-tailed test, so we double the uppertail areas of 0.01 and 0.005.) Because p-value < πΌ = 0.05, we reject π»π . We are atleast 95% confident that there is a difference in mean delivery times for the two services. Inferences about the Difference Between Two Population Proportions Interval estimation of p1 – p2 Hypothesis tests about p1 – p2 3 Sampling Distribution of ππ − ππ β Expected value: πΈ(π1 − π2 ) = π1 − π2 β Standard Deviation (Standard Error) π π1−π2 = π1 (1 − π1 ) π2 (1 − π2 ) + π1 π2 Where : π1 = sample size for population 1 π2 = sample size for population 2 15 Sampling Distribution of ππ − ππ β If the sample sizes are large, the sampling distribution of π1 − π2 can be approximate by a normal probability distribution β The sample sizes are sufficiently large if all of these conditions are met: π1 π1 ≥ 5 π1 (1 − π1 ) ≥ 5 π2 π2 ≥ 5 π2 (1 − π2 ) ≥ 5 16 Sampling Distribution of ππ − ππ ο³ p1 - p2 ο½ p1 (1 - p1 ) p2 (1 - p2 ) ο« n1 n2 p1 - p2 p1 – p2 17 Interval Estimation of ππ – ππ β Interval Estimate π1 − π2 ± π§πΌ/2 π1 (1 − π1 ) π2 (1 − π2 ) + π1 π2 18 Interval Estimation of ππ – ππ β Example: Market Research Associates β Market Research Associates is conducting research to evaluate the effectiveness of a client’s new advertising campaign. β Before the new campaign began, a telephone survey of 150 households in the test market area showed 60 households “aware” of the client’s product. β The new campaign has been initiated with TV and newspaper advertisements running for three weeks. A survey conducted immediately after the new campaign showed 120 of 250 households “aware” of the client’s product. β Does the data support the position that the advertising campaign increased awareness of the client’s product? 19 Point Estimator of the Difference Between Two Population Proportions p1 = proportion of the population of households “aware” of the p product after the new campaign p2 = proportion of the population of households “aware” of the product before the new campaign π1 = sample proportion of households “aware” of the product after the new campaign π2 = sample proportion of households “aware” of the product before the new campaign. π1 - π2 = 120 60 − = 0.48 − 0.40 = 0.08 250 150 20 Interval Estimation of ππ – ππ β ο‘ο½0.05,ο ππ.πππ = π. ππ, 0.48 (0.52) 0.40(0.60) 0.48 − 0.40 ± 1.96 + 250 150 0.08 ± 1.96 0.0510 = [−0.02, +0.18] Hence, the 95% confidence interval for the difference in before and after awareness of the product is -0.02 to +0.18. 21 Hypothesis Tests About ππ – ππ β Hypotheses We focus on tests involving no difference between the two population proportions ( i.e, π1 = π2 ) Left-tailed Right-tailed Two-tailed H 0 : p1 - p2 ο³ 0 H a : p1 - p2 οΌ 0 H 0 : p1 - p2 ο£ 0 H a : p1 - p2 οΎ 0 H 0 : p1 - p2 ο½ 0 H a : p1 - p2 οΉ 0 22 Hypothesis Tests About ππ – ππ β Pooled Estimate of Standard Error of ππ − ππ π π1−π2 = 1 1 π(1 − π)( + ) π1 π2 π1 π1 +π2 π2 Where: π = π1 +π2 23 Hypothesis Tests About ππ – ππ β Test Statistic π§= π1 − π2 1 1 π(1 − π)( + ) π1 π2 24 Hypothesis Tests about of ππ – ππ β Example: Market Research Associates β Can we conclude, using a 0.05 level of significance, that the proportion of households aware of the client’s product increased after the new advertising campaign? 25 Hypothesis Tests About ππ – ππ β P-value and Critical Value Approaches 1. Develop the hypothesis: π»π βΆ π1 – π2 ≤ 0 π»π βΆ π1 – π2 > 0 Where : p1 = proportion of the population of households “aware” of the p product after the new campaign p2 = proportion of the population of households “aware” of the product before the new campaign Hypothesis Tests About ππ – ππ β P-value and Critical Value Approaches 2. Compute the value of the test statistic 250(0.48)+150(0.40) π= = 0.45 250+150 1 1 0.45 (0.55)( + ) = 0.0514 250 150 0.48 − 0.4 − 0 0.08 π§= = = 1.56 0.0514 0.0514 π π1−π2 = Hypothesis Tests About ππ – ππ β Critical Value Approach For πΌ = 0.05, π§0.05 = 1.645. ο Reject π»π if z ≥ 1.645 Because 1.56 < 1.645, we cannot reject π»π . We cannot conclude that the proportion of households aware of the client’s product increased after the new campaign. 28 Hypothesis Tests About ππ – ππ β P-value Approach For z = 1.56, the p-value =0.0594 Because p-value > πΌ = 0.05, we cannot reject π»π . We cannot conclude that the proportion of households aware of the client’s product increased after the new campaign. Towards Inference about Population Variance ChiSquare Distribution The chi-square distribution is the sum of squared standardized normal random variables such as (π§1 )2 + (π§2 )2 + (π§3 )2 and so on. β The chi-square distribution is based on sampling from a normal population. β The sampling distribution of π − 1 π 2 /π 2 has a chi-square distribution whenever a simple random sample of size n is selected from a normal population. β We can use the chi-square distribution to develop interval estimates and conduct hypothesis tests about a population variance. β 30 Examples of Sampling Distribution of π − 1 π 2 /π 2 31 Chi-Square Distribution ππΆ 2 2 c β We will use the notation ο‘ to denote the value for the chi-square distribution 2that provides an area of ο‘ to the right of the stated cο‘ value. β For example, there is a .95 probability of obtaining a c2 (chi-square) value such that 2 2 c.975 ο£ c 2 ο£ c.025 32 Interval Estimation of ππ 2 c .975 ο£ (n - 1)s 2 ο³2 2 ο£ c .025 .025 .025 95% of the possible ο³2 values 2 0 2 c.975 2 c.025 33 Interval Estimation of ππ β There is (1-ο‘) probability of obtaining a c2 value such that: π cπ(π−πΆ) ≤ cπ ≤ c πΆ π π β Substituting π − 1 π 2 /π 2 for the c2 we get π π − π ππ π c(π−πΆ) ≤ ≤c π π πΆ/π π β Performing algebraic manipulation we get: π−π ππ cπ(πΆ) π ≤ ππ ≤ π−π ππ cπ(π−πΆ) π 34 Interval Estimation of ππ β Interval Estimate of a Population Variance π−π ππ c π πΆ (π) π ≤π ≤ π−π ππ cπ(π−πΆ) π where c2 values are based on a chi-square distribution with n-1 degrees of freedom and where (1-ο‘) is the confidence coefficient. 35 Interval Estimation of π β Interval Estimate of a Population Standard Deviation Taking the square root of the upper and lower limits of the variance interval provides the confidence interval for the population standard deviation. π−π ππ c π πΆ (π) ≤π≤ π−π ππ cπ(π−πΆ) π 36 Interval Estimation of ππ β Example; Buyer’s Digest (A) Buyer’s Digest rates thermostats manufactured for home temperature control. In a recent test, 10 thermostats manufactured by ThermoRite were selected and placed in a test room that was maintained at a temperature of 68oF. The temperature readings of the ten thermostats are shown on the next slide. 37 Interval Estimation of ππ β Example: Buyer’s Digest (A) Thermostat 1 2 3 4 5 6 7 8 9 10 Temperature 67.4 67.8 68.2 69.3 69.5 67.0 68.1 68.6 67.9 67.2 38 Interval Estimation of ππ For π − 1 = 10 − 1 = 9 π. π and ο‘ο ο½ο 0.05 Selected Values from the Chi-Square Distribution Table Area in Upper Tail Degrees 5 6 7 8 9 .99 0.554 0.872 1.239 1.647 2.088 .975 0.831 1.237 1.690 2.180 2.700 .95 1.145 1.635 2.167 2.733 3.325 .90 1.610 2.204 2.833 3.490 4.168 10 2.558 3.247 3.940 4.865 15.987 18.307 20.483 23.209 of Freedom .10 .05 .025 .01 9.236 11.070 12.832 15.086 10.645 12.592 14.449 16.812 12.017 14.067 16.013 18.475 13.362 15.507 17.535 20.090 14.684 16.919 19.023 21.666 2 Our c .975 value 39 Interval Estimation of ππ 2.700 ο£ .025 0 2.700 (n - 1)s 2 ο³2 2 ο£ c .025 Area in Upper Tail = .975 cπ 40 Interval Estimation of ππ For π − 1 = 10 − 1 = 9 π. π and ο‘ο ο½ο 0.05 Selected Values from the Chi-Square Distribution Table Area in Upper Tail Degrees 5 6 7 8 9 .99 0.554 0.872 1.239 1.647 2.088 10 2.558 3.247 of Freedom .975 0.831 1.237 1.690 2.180 2.700 .95 1.145 1.635 2.167 2.733 3.325 .90 1.610 2.204 2.833 3.490 4.168 .10 .05 .025 .01 9.236 11.070 12.832 15.086 10.645 12.592 14.449 16.812 12.017 14.067 16.013 18.475 13.362 15.507 17.535 20.090 14.684 16.919 19.023 21.666 3.940 Our4.865 value 18.307 20.483 23.209 c 2 15.987 .025 41 Interval Estimation of ππ 2.700 ο£ .025 0 2.700 (n - 1)s 2 ο³ 2 ο£ 19.023 Area in Upper Tail = .025 19.023 cπ 42 Interval Estimation of ππ β Sample variance s2 provides a point estimate of ππ π s = (ππ − π)π π. π = = π. ππ π−π π β A 95% confidence interval for the population variance is given by: ππ − π π. ππ ππ − π π. ππ ≤ ππ ≤ ππ. ππ π. ππ π. ππ ≤ ππ ≤ π. ππ 43
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )