2010 Healthcare Law. On June 28, 2012 the U.S. Supreme Court upheld the much debated 2010 healthcare law, declaring it constitutional. A Gallup poll released the day after this decision indicates that 46% of 1,012 Americans agree with this decision. At a 95% confidence level, this sample has a 3% margin of error. Based on this information, determine if the following statements are true or false, and explain your reasoning.
Answer a)
FALSE. The confidence interval applies to the entire population and not just to the sample taken.
Answer b)
FALSE. The 43% to 49% confidence interval range is not a probability taken for the sample mean.
Answer c)
TRUE.
Answer d)
FALSE. For the same standard error (SE), 90% confidence interval will have a lower margin of error since we are throwing a narrower net. The z-score for 90% confidence interval is only 1.645 against 1.96 for a 95% confidence interval.
Legalization of marijuana, Part I. The 2010 General Social Survey asked 1,259 US res- idents: “Do you think the use of marijuana should be made legal, or not?” 48% of the respondents said it should be made legal.44
Answer a)
48% is a sample statistic. 48% of 1,259 US residents surveyed (sample data)
Answer b)
SE = sqrt((0.48 * (1 - 0.48))/1259); SE # standard error
## [1] 0.01408022
LI = 0.48 - (qnorm(0.975)*SE); LI # lower limit
## [1] 0.4524033
HI = 0.48 + (qnorm(0.975)*SE); HI # upper limit
## [1] 0.5075967
Answer c)
There are 2 conditions for the sampling distribution of p̂ being nearly normal -
Observations are independent. The sample taken must have been and should not be more than 10% of the population. For this survey, we can reasonably say that this is true.
Success-failure condition. The sample size must also be sufficiently large - that is the success and failure rates must be greater than 10. In this case, this condition is true - 48% and 52% of 1,259 are greater than 10.
Answer d)
Yes, it is justified based on our confidence interval since our upper limit is around 51%. Since this is barely a majority though, it is also probably true that based on our findings, the new piece of survey may not be justified.
Legalize Marijuana, Part II. As discussed in Exercise 6.12, the 2010 General Social Survey reported a sample where about 48% of US residents thought marijuana should be made legal. If we wanted to limit the margin of error of a 95% confidence interval to 2%, about how many Americans would we need to survey ?
Answer)
# ME = (qnorm(0.975) * sqrt((0.48 * (1 - 0.48))/n) margin of error
# sample size at 2% margin of error and 95% control interval
n = (0.48 * (1 - 0.48)) / (0.02 / (qnorm(0.975)))^2; ceiling(n)
## [1] 2398
Sleep deprivation, CA vs. OR, Part I. According to a report on sleep deprivation by the Centers for Disease Control and Prevention, the proportion of California residents who reported insu
Answer)
We assume that the sampling is near normal and thus we can apply the formula for the difference of 2 proportions.
SE_cal = sqrt((0.08 * (1 - 0.08))/11545); SE_cal #standard error for California
## [1] 0.002524887
SE_org = sqrt((0.088 * (1 - 0.088))/4691); SE_org #standard error for Oregon
## [1] 0.004136243
#standard error for the difference in proportion between Oregon and California
SE_org_cal = sqrt(SE_cal + SE_org); SE_org_cal
## [1] 0.08161575
#confridence interval for the difference between the proportions of Oregonians and Californians
#who are sleep deprived
LL = (0.088 - 0.08) - (qnorm(0.975)*SE_org_cal); LL # lower limit
## [1] -0.1519639
UL = (0.088 - 0.08) + (qnorm(0.975)*SE_org_cal); UL # upper limit
## [1] 0.1679639
The 95% confidence interval between the difference in the proportion of sleep depreviation between Oregonians and Californians is between ~-15% to ~17%. This means that the proportion of Oregonians who are sleep deprived can be as much as 15% less than Californians or the proportions of Oregonians that are sleep deprived can be as much as 17% more than Californians for 95% of the samples taken with the given sample sizes. This means that there may also be no difference in the proportion of sleep deprived Californians and Oregonians since the interval includes 0.
Barking deer. Microhabitat factors associated with forage and bed sites of barking deer in Hainan Island, China were examined from 2001 to 2002. In this region woods make up 4.8% of the land, cultivated grass plot makes up 14.7% and deciduous forests makes up 39.6%. Of the 426 sites where the deer forage, 4 were categorized as woods, 16 as cultivated grassplot, and 61 as deciduous forests. The table below summarizes these data.62
Woods Cultivatedgrassplot Deciduousforests Other Total 4 16 67 345 426
Answer a)
H0: The barking deer does not prefer a certain habitat to forage. HA: The barking deer has certain habitats that it prefer to forage
Answer b)
A chi-square test. Since we have cases that can be classified into several groups (deer habitats where they forage), we can determine if the forage habitats proportion is representative of the land make up.
Answer c)
There are two conditions that must be checked before performing a chi-square test:
Independence. Each case that contributes a count to the table must be independent of all the other cases in the table. We assume that all the barking deer habitat variables (4) are independent of each other
Sample size / distribution. Each particular scenario (i.e. cell count) must have at least 5 expected cases. The woods habitat has only 4.8 cases - so this is in the lower boundary of what is accepted. We assume though that this is an acceptable count.
Answer d)
H0: The barking deer does not prefer a certain habitat to forage. HA: The barking deer has certain habitats that it prefer to forage.
# Z_woods = (Obs_cnt_woods - Null_cnt_woods)/SE; SE = sqrt(Null_cnt_woods)
# = (Obs_cnt_woods - Null_cnt_woods)^2/Null_cnt_woods
Z_woods_chisq = (0.9 - 4.8)^2/4.8
# Z_grass = (Obs_cnt_grass - Null_cnt_grass)/SE; SE = sqrt(Null_cnt_grass)
# = (Obs_cnt_grass - Null_cnt_grass)^2/Null_cnt_grass
Z_grass_chisq = (3.8 - 14.7)^2/14.7
# Z_forest = (Obs_cnt_forest - Null_cnt_forest)/SE; SE = sqrt(Null_cnt_forest)
# = (Obs_cnt_forest - Null_cnt_forest)^2/Null_cnt_forest
Z_forest_chisq = (14.3 - 39.6)^2/39.6
# Z_oth = (Obs_cnt_oth - Null_cnt_oth)/SE; SE = sqrt(Null_cnt_oth)
# = (Obs_cnt_oth - Null_cnt_oth)^2/Null_cnt_oth
Z_oth_chisq = (81.0 - 40.9)^2/40.9
Z_all = Z_woods_chisq + Z_grass_chisq + Z_forest_chisq + Z_oth_chisq; Z_all
## [1] 66.7306
1 - pchisq(Z_all, 3)
## [1] 2.14273e-14
Since the p-value for the chi square distribution is very small, we can strongly reject the null hypothesis that deers have no preference in the habitats were they forage.
Coffee and Depression. Researchers conducted a study investigating the relationship between ca↵einated co↵ee consumption and risk of depression in women. They collected data on 50,739 women free of depression symptoms at the start of the study in the year 1996, and these women were followed through 2006. The researchers used questionnaires to collect data on ca↵einated co↵ee consumption, asked each individual about physician-diagnosed depression, and also asked about the use of antidepressants. The table below shows the distribution of incidences of depression by amount of ca↵einated co↵ee consumption.63
Answer a)
chi square test to test for independence in 2 way table
Answer b)
H0: There is no relationship between coffee consumption and clinical depression.
HA: There is a relationship between coffee consumption and clinical depression.
Answer c)
p_depressed = (2607/50739) * 100; round(p_depressed, digits=2) #women who are depressed
## [1] 5.14
p_normal = (48132/50739) * 100; round(p_normal, digits=2) #women who are normal
## [1] 94.86
Answer d)
exp_cnt = 6617 * 0.0514; round(exp_cnt,digit=0)
## [1] 340
obs_cnt = 373
(obs_cnt - exp_cnt)^2/exp_cnt
## [1] 3.179824
Answer e)
df = (5-1)*(2-1); df
## [1] 4
1 - pchisq(20.93,df)
## [1] 0.0003269507
Answer f)
Since the p-value is very small (0.0003), for similar samples there is only a 0.0003 chance that we reject the null hypothesis that there is no relationship between depression and coffee consumption among women.
Answer g)
Yes, I agree with his statement. Based on this study, there is a very weak relationship between coffee consumption and depression among women.