1 / 37

Economics 105: Statistics

Economics 105: Statistics. Any questions?. Two-Sample Tests. Two-Sample Tests. Population Means, Independent Samples. Population Proportions, Independent Samples. Population Means, Related Samples. Population Variances. Examples:. Population 1 vs. independent Population 2.

sheena
Télécharger la présentation

Economics 105: Statistics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Economics 105: Statistics Any questions?

  2. Two-Sample Tests Two-Sample Tests Population Means, Independent Samples Population Proportions, Independent Samples Population Means, Related Samples Population Variances Examples: Population 1 vs. independent Population 2 Same population before vs. after treatment Proportion 1 vs. independent Proportion 2 Variance 1 vs. Variance 2

  3. 2 Test for Differences Among More Than Two Proportions • Extend the 2 test to the case with more than two independent populations: H0: π1 = π2 = … = πc H1: Not all of the πj are equal (j = 1, 2, …, c)

  4. The Chi-Square Test Statistic The Chi-square test statistic is: • where: fo = observed frequency in a particular cell of the 2 x c table fe = expected frequency in a particular cell if H0 is true 2 for the 2 x c case has (2-1)(c-1) = c - 1 degrees of freedom (Assumed: each cell in the contingency table has expected frequency of at least 1)

  5. Computing the Overall Proportion The overall proportion is: • Expected cell frequencies for the c categories are calculated as in the 2 x 2 case, and the decision rule is the same: Decision Rule: If 2 > 2U, reject H0, otherwise, do not reject H0 Where 2U is from the chi-squared distribution with c – 1 degrees of freedom

  6. The Marascuilo Procedure • Used when the null hypothesis of equal proportions is rejected • Enables you to make comparisons between all pairs • Start with the observed differences, pj– pj’, for all pairs (for j ≠ j’) . . . • . . .then compare the absolute difference to a calculated critical range

  7. The Marascuilo Procedure (continued) • Critical Range for the Marascuilo Procedure: • (Note: the critical range is different for each pairwise comparison) • A particular pair of proportions is significantly different if |pj– pj’| > critical range for j and j’

  8. Marascuilo Procedure Example A University is thinking of switching to a trimester academic calendar. A random sample of 100 administrators, 50 students, and 50 faculty members were surveyed Opinion Administrators Students Faculty Favor 63 20 37 Oppose 37 30 13 Totals 100 50 50 Using a 1% level of significance, which groups have a different attitude?

  9. Marascuilo Procedure: Solution Excel Output: compare At 1% level of significance, there is evidence of a difference in attitude between students and faculty

  10. 2 Test of Independence • Similar to the 2 test for equality of more than two proportions, but extends the concept to contingency tables with r rows and c columns H0: The two categorical variables are independent (i.e., there is no relationship between them) H1: The two categorical variables are dependent (i.e., there is a relationship between them)

  11. 2 Test of Independence (continued) The Chi-square test statistic is: • where: • fo = observed frequency in a particular cell of the r x c table • fe = expected frequency in a particular cell if H0 is true • 2 for the r x c case has (r-1)(c-1) degrees of freedom • (Assumed: each cell in the contingency table has expected frequency of at least 1)

  12. Expected Cell Frequencies • Expected cell frequencies: where: row total = sum of all frequencies in the row column total = sum of all frequencies in the column n = overall sample size

  13. Decision Rule • The decision rule is If 2 > 2U, reject H0, otherwise, do not reject H0 Where 2U is from the chi-squared distribution with (r – 1)(c – 1) degrees of freedom

  14. Example add example from high-brown low choice .. pag 266 of Read, Lowenstein, Kalya (J Behav Dec Mak,1999) • The meal plan selected by 200 students is shown below:

  15. Example (continued) • The hypothesis to be tested is: H0: Meal plan and class standing are independent (i.e., there is no relationship between them) H1: Meal plan and class standing are dependent (i.e., there is a relationship between them)

  16. Example: Expected Cell Frequencies (continued) Observed: Expected cell frequencies if H0 is true: Example for one cell:

  17. Example: The Test Statistic (continued) • The test statistic value is: 2U = 12.592 for  = 0.05 from the chi-squared distribution with (4 – 1)(3 – 1) = 6 degrees of freedom

  18. Example: Decision and Interpretation (continued) Decision Rule: If 2 > 12.592, reject H0, otherwise, do not reject H0 Here, 2 = 0.709 < 2U = 12.592, so do not reject H0 Conclusion: there is not sufficient evidence that meal plan and class standing are related at  = 0.05  0 2 Do not reject H0 Reject H0 2U=12.592

  19. Wilcoxon Rank-Sum Test for Differences Between 2 Medians • Test two independent population medians • Populations need not be normally distributed • Distribution free procedure • Used when only rank data are available • Must use normal approximation if either of the sample sizes is larger than 10

  20. Wilcoxon Rank-Sum Test: Small Samples • Can use when both n1 , n2≤ 10 • Assign ranks to the combined n1 + n2 sample observations • If unequal sample sizes, let n1 refer to smaller-sized sample • Smallest value rank = 1, largest value rank = n1 + n2 • Assign average rank for ties • Sum the ranks for each sample: T1 and T2 • Obtain test statistic, T1 (from smaller sample)

  21. Checking the Rankings • The sum of the rankings must satisfy the formula below • Can use this to verify the sums T1 and T2 where n = n1 + n2

  22. Wilcoxon Rank-Sum Test:Hypothesis and Decision Rule M1 = median of population 1; M2 = median of population 2 Test statistic = T1 (Sum of ranks from smaller sample) Two-Tail Test Left-Tail Test Right-Tail Test H0: M1 = M2 H1: M1¹ M2 H0: M1³ M2 H1: M1< M2 H0: M1£ M2 H1: M1> M2 Do Not Reject Do Not Reject Reject Reject Reject Reject Do Not Reject T1L T1U T1L T1U Reject H0 if T1 < T1L or if T1 > T1U Reject H0 if T1 < T1L Reject H0 if T1 > T1U

  23. Sample data are collected on the capacity rates (% of capacity) for two factories. Are the median operating rates for two factories the same? For factory A, the rates are 71, 82, 77, 94, 88 For factory B, the rates are 85, 82, 92, 97 Test for equality of the population medians at the 0.05 significance level Wilcoxon Rank-Sum Test: Small Sample Example

  24. Wilcoxon Rank-Sum Test: Small Sample Example (continued) Ranked Capacity values: Tie in 3rd and 4th places

  25. Wilcoxon Rank-Sum Test: Small Sample Example (continued) Factory B has the smaller sample size, so the test statistic is the sum of the Factory B ranks: T1 = 24.5 The sample sizes are: n1 = 4 (factory B) n2 = 5 (factory A) The level of significance is  = .05

  26. Wilcoxon Rank-Sum Test: Small Sample Example (continued) • Lower and Upper Critical Values for T1 from Appendix table E.8, page 829 in BLK 10e: T1L = 11 and T1U = 29

  27. Wilcoxon Rank-Sum Test:Small Sample Solution (continued) • a = .05 • n1 = 4 , n2 = 5 Test Statistic (Sum of ranks from smaller sample): T1 = 24.5 Decision: Conclusion: Two-Tail Test H0: M1 = M2 H1: M1¹ M2 Do not reject at a = 0.05 Do Not Reject Reject Reject T1L=11 T1U=29 There is not enough evidence to conclude that the pop medians are different. Reject H0 if T1 < T1L=11 or if T1 > T1U=29

  28. Wilcoxon Rank-Sum Test (Large Sample) • For large samples, the test statistic T1is approximately normal with mean and standard deviation : • Must use the normal approximation if either n1 or n2 > 10 • Assign n1 to be the smaller of the two sample sizes • Could use the normal approximation for small samples

  29. Wilcoxon Rank-Sum Test (Large Sample) (continued) • The Z test statistic is • Where Z ~ N(0,1)

  30. Interpreting Electoral Polls* • WASHINGTON (Reuters - 09/09/00) - A new Newsweek poll on Saturday showed Vice President Al Gore maintaining a strong lead over Texas Gov. George Bush in the presidential race, but a CNN/USA Today survey found the candidates virtually tied. • According to the Newsweek poll, Democratic nominee Gore leads Republican nominee Bush 47 percent to 39 percent among registered voters, with Green Party candidate Ralph Nader at 3 percent and Reform Party candidate Pat Buchanan at 1 percent. • Among likely voters, Gore led Bush 49 percent to 41 percent, the same margin as among registered voters. • The poll was conducted by Princeton Survey Research Associates Sept. 7-8 among 756 registered voters, including 595 who said they were likely to vote in the election. • The margin of error was 4 percentage points for the survey of registered voters and 5 percentage points for likely voters. *Source: http://www.kellogg.northwestern.edu/faculty/weber/decs-433/Presidential_Polls.htm

  31. Interpreting Electoral Polls*

  32. Interpreting Electoral Polls*

  33. Interpreting Electoral Polls*

  34. Interpreting Electoral Polls • Where do the 4% points and 5% points come from? • Recall … • A rough calculation for margin of error is • Sample SizeMargin of Error 10,000 .01 2,500 .02 1,112 .03 625 .04 400 .05

  35. Interpreting Electoral Polls • What are the precise margins of error on each candidate’s support? • CandidateSample pPrecise Margin of error Gore 47 3.55 % points Bush 39 3.47 Nader 3 1.21 Buchanan 1 .71 • Conclusions is upper bound for margin of error at 95% confidence level • But it is much too big for proportions far from 50%

  36. Interpreting Electoral Polls • Is Gore statistically ahead? • Rule of thumb to use when watching Fox/MSNBC/etc: • Double the margin of error reported in the news article & compare that to the difference in sample proportions • D will then be the difference between the proportion of voters supporting Gore and the proportion supporting Bush • Find E[D] and Var[D]

  37. Interpreting Electoral Polls • Is Gore statistically ahead? Yes … • Rule of thumb to use when watching Fox/MSNBC/etc: • Double the margin of error reported in the news article & compare that to the difference in sample proportions • 95% CI for the “lead”

More Related