2010 Healthcare Law. (6.48, p. 248) 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.
This is false because the confidence interval is used for the population and we know that 46% of the sample support the decision of the U.S. Supreme Court on the 2010 healthcare law.
This is true because the margin of error is 3% so we can assume with 95% confidence that 46% + 3% and 46% - 3% support the decision of the U.S. Supreme Court on the 2010 healthcare law.
This is false because the 95% confidence interval would show the true percentage of Americans who support the U.S. Supreme Court.
Legalization of marijuana, Part I. (6.10, p. 216) 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.
48% is a sample statistic because it found from the 1259 US residents.
SE <- (((0.48) * (0.52)) / (1259))^ (0.5)
upper_tail <- 0.48 + 1.96 * SE
lower_tail <- 0.48 - 1.96 * SE
c(lower_tail, upper_tail)
## [1] 0.4524028 0.5075972
The 95% confidence interval for the proportion of US residents who think marijuana should be made legal is (0.4524, 0.5076).
This is true because we have a sample size that is 1259, so it large enough to assume a normal distribution. Also (1259 * 0.48) and (1259 * (1 - 0.48)) are both grater than 10.
Legalize Marijuana, Part II. (6.16, p. 216) As discussed in Exercise above, 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 ?
(0.48 * 0.52) / (0.02 / 1.96)^ 2
## [1] 2397.158
Sleep deprivation, CA vs. OR, Part I. (6.22, p. 226) According to a report on sleep deprivation by the Centers for Disease Control and Prevention, the proportion of California residents who reported insuffient rest or sleep during each of the preceding 30 days is 8.0%, while this proportion is 8.8% for Oregon residents. These data are based on simple random samples of 11,545 California and 4,691 Oregon residents. Calculate a 95% confidence interval for the difference between the proportions of Californians and Oregonians who are sleep deprived and interpret it in context of the data.
SE_2 <- sqrt(((0.08 * (1 - 0.08)) / 11545) + ((0.088 * (1 - 0.088) / 4691)))
ME <- 1.96 * SE_2
lower_tail_2 <- 0.088 - 0.08 - ME
upper_tail_2 <- 0.088 - 0.08 + ME
c(lower_tail_2, upper_tail_2)
## [1] -0.001498128 0.017498128
Barking deer. (6.34, p. 239) 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.
H0: There is no preference for barking deer to forage in certain habitats over others. H1: There is a preferecne for barking deer to forage in certain habitats over others.
The type of test we can use to answer this research question is a chi-squared test.
The assumptions and conditions for this test are satisfied. We can assume each observation is independent. Also each scenario is expected to have at least 5 cases. We can see this for all scenarios.
0.048 * 426 # Woods
## [1] 20.448
0.147 * 426 # Grassplot
## [1] 62.622
0.396 * 426 # Forests
## [1] 168.696
(1 - (0.048 + 0.147 + 0.396)) * 426 # Other
## [1] 174.234
chisq.test(x = c(4, 16, 67, 345), p = c(0.048, 0.147, 0.396, 0.409))
##
## Chi-squared test for given probabilities
##
## data: c(4, 16, 67, 345)
## X-squared = 272.69, df = 3, p-value < 2.2e-16
Coffee and Depression. (6.50, p. 248) Researchers conducted a study investigating the relationship between caffeinated coffee 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 caffeinated coffee 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 caffeinated coffee consumption.
{}
The type of test that is appropriate for evaluating if there is an association between coffee intake and depression is a chi-squared test.
H0: There is no an association between coffee intake and depression in women. H1: There is an association between coffee intake and depression in women.
2607 / 50739 # depressed women
## [1] 0.05138059
48132 / 50739 # nondepressed women
## [1] 0.9486194
The proportion of women who do suffer from depression is 5.14%. The proporion of women who do not suffer from depression is 94.86%.
expected_count <- 5.138 / 100 * 6617
expected_count
## [1] 339.9815
(373 - expected_count)^ 2 / expected_count
## [1] 3.206716
The highest cell is 373. The expected count for this cell is 339.98 and the contribution to the test statistic is 3.21.
chisq <- 20.93
df <- (2 - 1) * (5 - 1)
1 - pchisq(chisq, df)
## [1] 0.0003269507
The p-value is 0.00033.
The conclusion of the hypothesis test is there is an association between coffee intake and depression in women. Since the value of p is less than 0.05, we reject H0 and accept H1.
Yes, I agree with this statement because this test was done by observation and not by experiments. There could be other factors that could lead to depression in the women in the survey. More studies have to be done to show the benefits and side effects of coffee. An experimental test would have to be done to conclude that more coffee intake can reduce depression.