Download Chapter_12_13_fa13

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
Transcript
Chapter 12
Two by two table for survey questions “What is your Sex” and “Do you believe female and male
college sports programs should receive equal financial support?”
Tabulated statistics: Sex, Equal Support
Rows: Sex
Columns: Equal Support
No
Yes
All
Female
16
16.49
81
83.51
97
100.00
Male
11
47.83
12
52.17
23
100.00
All
27
22.50
93
77.50
120
100.00
Cell Contents:
Count
% of Row
Commonly the explanatory variable is placed on the row and the response variable on the
vertical. So for this data Gender would be explaining the attitude toward monetary support.
Conditional percents for rows are comprised by the taking a cell total divided by the row total;
for columns this conditional percent is taken by cell total divided by column total. For example,
of Females the conditional percent who said “Yes” to women receiving equal support is 81/97 =
83.51%; for Men this conditional percent who said “Yes” is 12/23 = 52.17%. As to columns, of
those that said “Yes” the conditional percent that were Female is 81/93 = 87.1%
Probability, Risk, and Odds
If we randomly selected a student, what is probability that the student said “Yes”? 93/120 =
0.775
What is the risk that a randomly selected student said “Yes?” Again, 93/120 = 0.775
What is the proportion of those who said “Yes”? Again, 93/120 = 0.775
What is the percent of those who said “Yes”? Similarly 93/120 = 0.775 times 100% 77.5%
As we can see, these four are equivalently saying the same thing just using different phrasing.
What are the odds a person says “Yes”? This is now 93/ 27 which is approximately 3.4 to 1.
Questions to class:
What is probability that a Male says “Yes”? 12/23 = 0.5217
What is the risk that a Male says “Yes”? 12/23 = 0.5217
1
How about the proportion and percentage of Males who say Yes? Proportion also 0.5217 while
the percentage is 52.17%
What are the odds that a Male says Yes? 12/11 or roughly 1.1 to 1 or roughly even odds (i.e. 1 to
1 would be even odds implying for every male saying ‘Yes’ there is a male saying ‘No’. How are
the odds interpreted? We would say then that the odds of a Male saying Yes is 1.1 to 1; in other
words, for every two males roughly one says Yes and one says No.
Relative Risk is when two risks are compared. For instance the relative risk that Females say
Yes to Males that say Yes would be calculated by the ratio of risk for Females saying Yes to the
risk of Males saying Yes. The Female-Yes risk is 81/97 and the Male-Yes risk is 12/23. This
would make the relative risk (81/97)/(12/23). This computes to 0.8351/0.5217 about 1.6 The
interpretation is that the risk of agreeing that females deserve equal pay in sports as males is
about 1.6 times greater for Females than for Males.
Baseline risk is the risk to which another risk is compared to in a relative risk. That is it is the
risk in the denominator of the relative risk. In the previous example, Female risk of Yes was
compare to the Male risk of Yes putting the male risk in the denominator. This makes the
baseline risk the risk of Males saying Yes.
Odds ratio is similar to relative risk except it is the ratio of two odds. The odds ratio that
Females say Yes to Males say Yes is (81/16)/ (12/11) = 4.5 meaning the odds of Females saying
Yes is about 4.5 times the odds of Males saying Yes.
Important To Interpret
When reading a report that provides a risk it is extremely important to know or be given the
baseline risk. For instance, say a study reported that women who binge drink are 3 times more
likely to develop liver disease than women who do not drink. This may alarm some females,
understandably. But what if the risk of getting liver disease for women who do not binge drink
(i.e. the baseline risk) was 0.001 or 1 out of a 1000 women who do not binge drink are likely to
develop liver disease. This would mean that risk of females who do binge drink developing liver
disease is 3/1000 or 0.003 Not that alarming!
To calculate:
Odds are the (number of interest with trait)/(number of interest without trait)
Risk is the (number of interest with trait)/(over total number of interest)
2
Chapter 13
Ho: The two variables are not related in population (i.e. they are independent)
Ha: The two variables are related in the population (i.e. they are dependent)
Keeping with the Sex and Equal Support from chapter 12, how would tables look as they went
from independent to dependent?
Tabulated statistics: Sex, Equal Support
Rows: Sex
Columns: Equal Support
No
Yes
All
Female
16
16.49
21.82
81
83.51
75.17
97
100.00
97.00
Male
11
47.83
5.17
12
52.17
17.82
23
100.00
23.00
All
27
22.50
93
77.50
120
100.00
Cell Contents:
Count
% of Row
Expected count
Pearson Chi-Square = 10.466, DF = 1, P-Value = 0.001
What will indicate a relationship is a change in direction in the conditional percents from one
level of the explanatory to another level. As in the third 2x2 table the percentage changes of Yes
for Females is very different than that for Males. But what determines HOW Different?
We apply what is called a Chi-square Test of Independence. This is done by first taking the
observed values to compute what you would expect to see if the two variables were independent.
This is done by creating expected counts in each cell of the table by using the row and column
tables compared to the overall total.
Finding Expected Table (i.e. based on the data collected, these are the counts we would
expect to find if the variables were independent)
Female
Male
Total
NO
(97x27)/120
= 21.8
(23x27)/120
= 5.2
27
Yes
(97x93)/120
= 75.2
(23x93)/120
= 17.8
93
Total
97
23
120
3
Observed Counts from Data Collection
Female
Male
Total
NO
16
11
27
Yes
81
12
93
Total
97
23
120
Expected Counts if Two Variables Independent – based on observed data
Female
Male
Total
NO
21.8
5.2
27
Yes
75.2
17.8
93
Total
97
23
120
This computes to, if independent, we would expect to see conditional percentages for Females
and Males of 22.5% and 77.5% (for No and Yes, respectively). That is, based on this sample data
if a student’s sex and attitude toward equal support were independent, we would have expected
about 22.5% of the students to say No and about 77.5% say Yes.
The next step is to statistical compare what we would observed to what we expected. To do this
we calculate a chi-square test statistic and associated p-value (for this class the p-value will be
provided).
The general formula is: 
2
 (Observed  Expectect)

2
Expected
Applying that to this data:
(16  21.8) 2 (81  75.2) 2 (11  5.2) 2 (12  17.8) 2
 



 10.5
21.8
75.2
5.2
17.8
2
The p-value for this comes to 0.001
Decision and conclusion: As with the test for a correlation the p-value is the probability the
sample data would produce a result given the null hypothesis is true. If the p-value is small then
this indicates that the variables are related. Again will use 0.05 as a level of significance to
compare with our p-value. Here the p-value of 0.001 is less than 0.05 so we reject the null
hypothesis and conclude that sex and attitude about equal level of support are related where
Females are more likely to believe in equal monetary support for the sexes than Males.
NOTE: Keep in mind that the results can only be extended to sample group unless the data was
randomly selected and we cannot conclude a causal relationship unless random assignment was
involved.
Possible Effect of Confounding Variables in Categorical Data Relationships
Sometimes when a confounding variable is present (i.e. a variable that affects the relationship but
was not considered in the study) the statistical results may not reflect the true relationship. This
4
can lead to what is called Simpson’s Paradox. Simpson’s Paradox occurs when combined data
leads to one result but when we separate the data by another lurking variable we get opposite
results.
Example: Following a 1972 Supreme Court ruling to eliminate racial disparities in capital cases,
several studies were conducted to follow-up on sentences of those found guilty of capital
offenses. One such study considered homicides in Florida between 1976 and 1977 to examine if
a relationship existed between race and assignment of the death penalty (see Michael Ravelet,
American Sociological Review, 1981 vol. 46).
Overall table:
Defendant/Death Penalty
White
Black
Total
NO
141
149
290
Yes
19
17
36
Total
160
166
326
% Yes
11.9%
10.2%
From this table it shows that White defendants that were guilty were slightly more likely to get
the death penalty than Black guilty defendants.
However, a lurking variable victim’s race provides a different look:
Victim: White
Defendant/Death Penalty
White
Black
Total
NO
132
52
184
Yes
19
11
30
Victim: Black
Defendant/Death Penalty
White
Black
Total
NO
9
97
106
Yes
0
6
6
Total
% Yes
12.6
17.5%
Total
% Yes
0%
5.85
151
63
214
9
103
112
As we can see, in both instances when the victim’s race is considered the percentage of White
defendant’s who receive the death penalty is now lower than the percentage of defendant’s who
were Black.
5