Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Stats 3000 Week 1 - Winter 2011
1.
2. m m m m m m Inferences about categorical data Many experiments result in measurements that are qualitative or categoricalrather than quantitative. People classified by ethnic origin Cars classified by color M&M®s classified by type (plain or peanut)
3.
4.
5. A goodness-of-fittest: is an inferential procedure used to determine whether a frequency distribution in the population follows a specific distribution (No Preference-uniform distribution; No difference from another known population). is used to make inferences about the population frequency distribution from the samplefrequency distribution. determines how well a frequency distribution for a sample fits a distribution predicted by the null hypothesis (about the population frequency distribution).
6. We consider sample data consisting of observed frequency counts arranged in a single row or column (called a one-way frequency table or one dimensional table). We will test the claim that the observed frequency counts agree with some claimed distribution (specified by the null hypothesis), so that there is a good fit of the observed data with the claimed distribution.
7.
8. Expected frequency counts. The expected frequency counts at each level of the categorical variable are equal to the sample size times the hypothesized proportion (in the population) at each level of the categorical variable from the null hypothesis E = np**************** where E is the expected frequency count for a specific level of the categorical variable, n is the total sample size, and p is the hypothesized proportion of observations for a specific level of the categorical variable
13. Observed Frequencies Does the distribution specified by the null correspond to the observed distribution?
14.
15.
16. A large disagreement between observed and expected values will lead to a large value of 2.
17.
18.
19.
20.
21.
22. P-Values Obtain an approximateP-value by determining the area under the chi-square distribution with k-1 degrees of freedom to the right of the test statistic from Appendix 2 page 697 OR Use computer software to obtain more precise P-value The area to the right of a 2value is P-value. Gives the probability of a value at least this extreme, if the null hypothesis were true .
50. Contingency Tables Contingency tables are described by the number of levels of each categorical variable E.g., a 2 2 table summarizes frequency counts for two dichotomous variables (e.g., male/female, smoker/nonsmoker) The number of cells in the table is the product of the number of levels for each variable: 2 2 table = 4 cells 3 3 table = 9 cells
51. The null hypothesis is that the variables are not associated; in other words, they are independent. The alternative hypothesis is that the variables are associated, or dependent.
55. The idea behind test of independence is to compare actual frequency counts to the counts we would expect if the null hypothesis were true . If a significant difference between the actual counts and expected counts exists, we would take this as evidence against the null hypothesis (stating that the variables are independent).
56. A researcher wanted to investigate whether there was a relationship between personality type (introvert, extrovert) and choice of recreational activity (going to an amusement park, taking 1 day meditation retreat).
57. We want to know whether personality and preferred recreational activity are dependent or independent so the hypotheses are: H0: personality and preferred recreational activity are independent H1: personality and preferred recreational activity are dependent
58. Expected Frequencies in a Chi-Square Test for Independence To find the expected frequencies in a cell when performing a chi-square independence test, multiply the row total of the row containing the cell by the column total of the column containing the cell and divide this result by the grand total. That is,
61. where R is the number of rows and C is the number of columns in the contingency table.
62. There are R= 2 rows and C=2 columns so we find the P-value using (2-1)(2-1) = 1 degrees of freedom. The P-value is the area under the chi-square distribution with 1 degrees of freedom to the right of which is smaller than 0.005.
64. Since the P-value is less than the level of significance = 0.01,we reject the null hypothesis. There is sufficient evidence to conclude that personality and activity preference are dependent at the = 0.01 level of significance.
65. Relative Risk Analysis after a significant Chi-Square test of independence (2 x2 tables) : risk ratio Does the distribution of subjects across the levels of one variable change as a function of levels of the other variable? Are introvert distributed across activity the same way as extrovert? Look at proportion of row totals. For people who prefer amusement park, is the proportion of introvert the same as the proportion of extrovert?
66. Are the proportion of people who prefer amusement park the same for introvert and extrovert? Comparing 30% vs 71.7% (risk ratio) .3/.717=0.4186=relative risk for preferring amusement park relative risk= the probability of preferring amusement park if you are introvert (12/40) is 0.418 times lower than the probability of preferring amusement park if you are extrovert (43/60). Is this a significant difference?
67. Are the proportion of people who prefer retreat the same for introvert and extrovert? Comparing 70% vs 28.3% (risk ratio) .7/.283=2.47=relative risk for preferring retreat relative risk= the probability of preferring retreat if you are introvert (28/40) is 2.47 times higher than the probability of preferring amusement park if you are extrovert (17/60).Is this a significant difference?
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80. Office hours Tuesdays 3-4pm and Thursdays from 12-1pmExercises Exercises 12 and 13: Webct exercise folder Readings for next class: Chapter 9 Pages 246-247 Sections: 9.1, 9.2, 9.5, 9.7, 9.3, 9.4