6.6 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.

  1. We are 95% confident that between 43% and 49% of Americans in this sample support the decision of the U.S. Supreme Court on the 2010 healthcare law.

    Answer: This statement is false since the confidence interval is projected against the overall population, but NOT the sample.

  2. We are 95% confident that between 43% and 49% of Americans support the decision of the U.S. Supreme Court on the 2010 healthcare law.

    Answer: True. Since it has been a random sample, it can effectively represent the entire American population. When applied the margin of error 46 +- 3%, it gives us 43% to 49%.

  3. If we considered many random samples of 1,012 Americans, and we calculated the sample proportions of those who support the decision of the U.S. Supreme Court, 95% of those sample proportions will be between 43% and 49%.

    Answer: True. As per the confidence interval of 95%.

  4. The margin of error at a 90% confidence level would be higher than 3%.

    Answer: False, the margin of error would be lower as confidence interval goes lower.



6.12 Legalization of marijuana, Part I. The 2010 General Social Survey asked 1,259 US residents: “Do you think the use of marijuana should be made legal, or not?” 48% of the respondents said it should be made legal.

  1. Is 48% a sample statistic or a population parameter? Explain.

    Answer: 48% corresponds to sample statistic, since this number was a direct representation from a survey.

  2. Construct a 95% confidence interval for the proportion of US residents who think marijuana should be made legal, and interpret it in the context of the data.

z <- 1.96
n<-1259
p<-.48
se <- sqrt(p*(1-p)/n)
me <- round(z*se,2)
**Answer: There CI <- .48 + 0.03 to .48 - 0.03 i.e., 0.51 to 0.45**
  1. A critic points out that this 95% confidence interval is only accurate if the statistic follows a normal distribution, or if the normal model is a good approximation. Is this true for these data? Explain.

    Answer: Along with the statistic following a normal model it should also be following success-failure condition i.e., atleast of min of 10 success and failure observations. And the above sample statistic follows it.

  2. A news piece on this survey’s findings states, “Majority of Americans think marijuana should be legalized.” Based on your confidence interval, is this news piece’s statement justified?

    Answer: No, since the lower limit of the confidence interval is below 50%, we cannot suggest that this is an opinion of majority of Americans.



6.20 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 ma de 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 ?

p <- .48
z <- 1.96
me <- .02
se <- me/z
n <- (p * (1-p) * z^2)/ (me^2)
**Answer: We need atleast 2397 people to project a confidence interval of 95% with a margin of error of 2%**



6.28 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 insufficient 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

p1 <- .08
n1 <- 11545

p2 <- .088
n2 <- 4691

z <- 1.96

SE <- sqrt((p1*(1-p1)/n1) + (p2*(1-p2)/n2))

ME <- z * SE

ci1 <- (p1 - p2) - ME
ci2 <- (p1 - p2) + ME
**Answer: With a 95% confidence interval we can state that the difference b/w proportions of CA and OR sleep deprived residents is b/w   -1.75% and  0.15% **



6.44 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

Woods Cultivated grassplot Deciduous forests Other Total
4 16 67 345 426

  1. Write the hypotheses for testing if barking deer prefer to forage in certain habitats over others.

    Answer:
    H0 - Barking deers prefers to forage all habitat equally.
    H1 - Barking deers do not prefer to forage all habitat equally.

  2. What type of test can we use to answer this research question?

    Answer: Chi-square methodology can be used to answer this since it’s preferred when we want to find if the sample represents the actual population.

  3. Check if the assumptions and conditions required for this test are satisfied.

    Answer: The sample size should be normal and the expected counts should be atleast 5 in each all categories.

  4. Do these data provide convincing evidence that barking deer prefer to forage in certain habitats over others? Conduct an appropriate hypothesis test to answer this research question.

    H0 - Barking deers prefers to forage all habitat as population proportions
    H1 - Barking deers do not prefer to forage all habitat as expected

    ** Data Woods | Cultivated grassplot | Deciduous forests | Other | Total |
    ** Observed 4 16 67 345 426
    Expected 20 63 169 174 426

zo1 <- 4
ze1 <- .048*426

z1 <- (zo1 - ze1)^2/(ze1)
z1
## [1] 13.23047
zo2 <- 16
ze2 <- .147*426

z2 <- (zo2 - ze2)^2/(ze2)
z2
## [1] 34.71002
zo3 <- 67
ze3 <- .396*426

z3 <- (zo3 - ze3)^2/(ze3)
z3
## [1] 61.306
zo4 <- 345
ze4 <- .409*426

z4 <- (zo4 - ze4)^2/(ze4)
z4
## [1] 167.367
z <- z1 + z2 + z3 + z4

df <- 4-1
z
## [1] 276.6135
df
## [1] 3
  **The p value calculated from the chi square table is less than .05. Therefore we reject null hypothesis.**
  




6.48 Coffee and Depression. 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.

  1. What type of test is appropriate for evaluating if there is an association between coffee intake and depression?

    Answer: To derive better results it is preferred to use chi square test (using 2 way tables) in this case.

  2. Write the hypotheses for the test you identified in part (a).

    Answer: H0 - There is no impact of caffeinated coffee consumption in causing depression women H0 - There is an impact of caffeinated coffee consumption in causing depression women

  3. Calculate the overall proportion of women who do and do not suffer from depression.

depression <- 2607
total <- 50739

suffer <- depression/total
dontsuffer <-  1 - suffer
**Answer: The proportion of women who suffer depression is 5.1% and who do not suffer is 94.9%**
  1. Identify the expected count for the highlighted cell, and calculate the contribution of this cell to the test statistic, i.e. (Observed ??? Expected)2/Expected.
row1Total <- 2607
col2Total <- 6617
expected <-  row1Total * col2Total / total

observed <- 373

(observed - expected)^2 / expected
## [1] 3.205914
  1. The test statistic is #2 = 20.93. What is the p-value?
rc <- 2
cc <- 5
df <- (rc-1) * (cc-1)
**Answer: P value for degree of freedom of 4 and test statistic of 20.93 is less than .001**
  1. What is the conclusion of the hypothesis test?

    Answer: Since the p value is less than .05, the hypothesis test fails. There is an impact of caffeniated coffee on depression in women.

  2. One of the authors of this study was quoted on the NYTimes as saying it was “too early to recommend that women load up on extra coffee” based on just this study.64 Do you agree with this statement? Explain your reasoning.

    Answer: Since we rejected the null hypothesis, we could be making a Type I error. Also, we do not know if the impact if positive or negative i.e., if consumption of caffeniated coffee could be increasing or decreasing chances of depression.