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:

FALSE. A confidence interval is used to estimate the population proportion, not the sample proportion.

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

  1. 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:

FALSE : we can’t say for sure what the true proportion is, and the correct interval depends on correctly estimating the proportion.

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

Answer:

FALSE : 90% confidence interval will have a lower margin of error for the same standard error (SE) as the z-score for 90% confidence interval is only 1.645, which is lower than that for a 95% confidence interval.

6.12 Legalization of marijuana, Part I.

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

It is a sample statistics since it is derived from the sample data

We are 95% confident that between 45.24% and 50.76% of US residents think marijuana should be legalised.

(c) 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:

For the sampling distribution of \(\hat{p}\) to be nearly normal :

The observations must be independent independent, the sample size must be less than 10% of the population. For this survey, these are reasonably true.

Also, the Success-failure rates must be greater than 10. This is also true for this case => 48% and 52% of 1,259 are greater than 10

(d) 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

This might be possible since the upper limit of the confidence interval (0.5076233) is above 50%, but there is more evidence pointing that more of the this is also below 50%.

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 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 = 0.02
p = 0.48
z = qnorm(0.975)
se = ME/z
n = (p*(1-p))/se^2

round(n,0)+1
## [1] 2398

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.

Answer:

Let’s apply the formula for the difference of 2 proportions assuming that the sampling is near normal:

HO : No difference in sleep deprivation HA: There is difference in sleep deprivation

 #standard error for California
(SE_cal =  sqrt((0.08 * (1 - 0.08))/11545))
## [1] 0.002524887
#standard error for Oregon 
(SE_org =  sqrt((0.088 * (1 - 0.088))/4691))
## [1] 0.004136243
standard error for the difference in proportion between Oregon and California
(SE_org_cal = sqrt(SE_cal + SE_org))
## [1] 0.08161575
computing the confidinterval for the difference between the proportions of Oregonians and Californians who are sleep deprived
(lowerLimit = (0.088 - 0.08) - (qnorm(0.975)*SE_org_cal))
## [1] -0.1519639
(upperLimit = (0.088 - 0.08) + (qnorm(0.975)*SE_org_cal))
## [1] 0.1679639

The confidence interval contains 0, we fail to reject nH. (null hypothesis).Sleep deprivation is not significantly different.

results<- c("SE CALIFORNIA"=SE_cal, "SE OREGON"=SE_org, "SE Dif Proportion"=SE_org_cal, "Lower Limit"=lowerLimit, "Upper Limit"=upperLimit)
results
##     SE CALIFORNIA         SE OREGON SE Dif Proportion       Lower Limit 
##       0.002524887       0.004136243       0.081615745      -0.151963922 
##       Upper Limit 
##       0.167963922

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 (a) Write the hypotheses for testing if barking deer prefer to forage in certain habitats over others.

Answer:

H0: The barking deer does not prefer a certain habitat to forage. HA: The barking deer has certain habitats that it prefer to forage.

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

A chi-square test can be used

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

Answer:

Before performing a chi-square test:

Independence: we can We assume that all the barking deer habitat variables are independent of each other

Each particular scenario must have at least 5 expected cases. The woods habitat has only 4.8 cases =>>>>>this is in the lower boundary of what is accepted.Therefore, wee assume though that this is an acceptable count.

wP = round(426*.048,1)
gP = round(426*.147,1)
fP = round(426*.396,1)
oP = round(426*.409,1)
proportions = c(wP,gP,fP,oP)
proportions
## [1]  20.4  62.6 168.7 174.2
  1. 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.
x = c(4,16,67,345)
k = 4
dF = 3
chi = 0
for(biome in 1:4)
  {
  chi = chi + ((x[biome]-proportions[biome])^2/proportions[biome])
}

(p = pchisq(chi,dF,lower.tail = FALSE))
## [1] 1.124065e-59
We reject the null hypothesis in favor of the alternative hypothesis. Barking deer do not bark in a proportion to land mass between biomes.

6.48 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 caffeinated co???ee consumption

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

We would use a chi-square test to evaluate if there is independence between depression and coffee intake.

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

HO : Coffee intake and depression are independent HA: Coffe intake and depression are dependent.

  1. Calculate the overall proportion of women who do and do not suffer from depression.
womenWithDep = 2607/50739
womenWithoutDep = 1 - womenWithDep

paste('womem with depression: ', womenWithDep)
## [1] "womem with depression:  0.051380594808727"
paste('womem without depression: ', womenWithoutDep)
## [1] "womem without depression:  0.948619405191273"
  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.
groups = 5
dF = 4
expected = womenWithDep*6617
cellFactor = (373 - expected)^2/expected
cellFactor
## [1] 3.205914
  1. The test statistic is #2 = 20.93. What is the p-value?
(pchisq(20.93,dF,lower.tail = FALSE))
## [1] 0.0003269507
  1. What is the conclusion of the hypothesis test?

We reject the null hypothesis. Coffee intake and depression are dependent.

  1. 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. Do you agree with this statement? Explain your reasoning.

I agree with this statement since this was an observational study and cannot be used to demonstrate causation.