## [(0.5)(0.3)]/[(0.5)(0.3)+(1/4)(0.7)]Exercise 3
Exercises for Final Exam
Exercise
- About 30% of human twins are identical, and the rest are fraternal. Identical twins are necessarily the same sex: half are males and the other half are females. One-quarter of fraternal twins are both male, one-quarter both female, and one-half are mixes: one male, one female. You have just become a parent of twins and are told they are both girls. Given this information, what is the probability that they are identical?
- A patient named Diana was diagnosed with Fibromyalgia, a long-term syndrome of body pain, and was prescribed anti-depressants. Being the skeptic that she is, Diana didn’t initially believe that anti-depressants would help her symptoms. However after a couple months of being on the medication she decides that the anti-depressants are working, because she feels like her symptoms are in fact getting better.
- Write the hypotheses in words for Diana’s skeptical position when she started taking the anti-depressants.
- What is a Type 1 Error in this context?
- What is a Type 2 Error in this context?
## (a)
## H0: Anti-depressants do not affect the symptoms of Fibromyalgia.
## HA: Anti-depressants do affect the symptoms of Fibromyalgia (either helping or harming).
## (b)
## Concluding that anti-depressants either help or worsen Fibromyalgia symptoms
## when they actually do neither.
## (c)
## Concluding that anti-depressants do not affect Fibromyalgia symptoms when they actually do.- A Rasmussen Reports survey of 1,000 US adults found that 42% believe raising the minimum wage will help the economy. Construct a 99% confidence interval for the true proportion of US adults who believe this.
# 0.42 -+ 2.58 (0.016)-
True or false.
- The chi-square distribution, just like the normal distribution, has two parameters, mean and standard deviation.
- Consider two sets of data that are paired with each other. Each observation in one data set has a natural correspondence with exactly one observation from the other data set.
- As the degrees of freedom increases, the \(t\)-distribution approaches normality.
- A correlation coefficient of -0.90 indicates a stronger linear relationship than a correlation of 0.5.
## F
## T
## T
## T- Consider a regression predicting weight (kg) from height (cm) for a sample of adult males. What are the units of the correlation coefficient, the intercept, and the slope?
# Correlation: no units. Intercept: kg. Slope: kg/cm.- Determine if I or II is higher or if they are equal. Explain your reasoning. For a regression line, the uncertainty associated with the slope estimate, \(b_1\), is higher when
- [I] there is a lot of scatter around the regression line
- [II] there is very little scatter around the regression line
# I is higher, the more the scatter the lower the correlation coefficient, and hence the higher the uncertainty around the regression line.- Is the gestational age (time between conception and birth) of a low birth-weight baby useful in predicting head circumference at birth? Twenty-five low birth-weight babies were studied at a Harvard teaching hospital; the investigators calculated the regression of head circumference (measured in centimeters) against gestational age (measured in weeks). The estimated regression line is \[\widehat{\text{head circumference}} = 3.91 + 0.78 \times \text{gestational age}\]
- What is the predicted head circumference for a baby whose gestational age is 28 weeks?
- The standard error for the coefficient of gestational age is 0. 35, which is associated with \(df = 23\). Does the model provide strong evidence that gestational age is significantly associated with head circumference?
# 3.91 + 0.78 * 28 = 25.75
# t_test = 2.23 p-value = 0.02- Lipitor (atorvastatin) is a drug used to control cholesterol. In clinical trials of Lipitor, 98 subjects were treated with Lipitor and 245 subjects were given a placebo. Among those treated with Lipitor, 6 developed infections. Among those given a placebo, 24 developed infections. Use a 0.05 significance level to test the claim that the rate of inflections was the same for those treated with Lipitor and those given a placebo.
- Test the claim using the critical-value and p-value methods.
- Test the claim by constructing a confidence interval.
2-sample test for equality of proportions without continuity correction
data: c(6, 24) out of c(98, 245)
X-squared = 1.1835, df = 1, p-value = 0.2766
alternative hypothesis: two.sided
95 percent confidence interval:
-0.09705436 0.02358497
sample estimates:
prop 1 prop 2
0.06122449 0.09795918
## test statistic = -1.09
## critical value = -1.96
## p-value = 0.2766
## CI = (-0.097, 0.0234)- A researcher has developed a model for predicting eye color. After examining a random sample of parents, she predicts the eye color of the first child. The table below lists the eye colors of offspring. On the basis of her theory, she predicted that 87% of the offspring would have brown eyes, 8% would have blue eyes, and 5% would have green eyes. Use 0.05 significance level to test the claim that the actual frequencies correspond to her predicted distribution.
| Eye Color | Brown | Blue | Green |
| Frequency | 127 | 21 | 5 |
obs <- c(127, 21, 5)
pi_0 <- c(0.87, 0.08, 0.05)
chisq.test(x = obs, p = pi_0)
Chi-squared test for given probabilities
data: obs
X-squared = 7.4678, df = 2, p-value = 0.0239
## critical value = 5.99- In a study of high school students at least 16 years of age, researchers obtained survey results summarized in the accompanying table. Use a 0.05 significance level to test the claim of independence between texting while driving and driving when drinking alcohol. Are these two risky behaviors independent of one another?
| Drove after drinking alcohol? | ||
|---|---|---|
| Yes | No | |
| Texted while driving | 720 | 3027 |
| Did not text while driving | 145 | 4472 |
[,1] [,2]
[1,] 720 3027
[2,] 145 4472
(ind_test <- chisq.test(x = contingency_table))
Pearson's Chi-squared test with Yates' continuity correction
data: contingency_table
X-squared = 574.68, df = 1, p-value < 2.2e-16
ind_test$expected [,1] [,2]
[1,] 387.5126 3359.487
[2,] 477.4874 4139.513
qchisq(0.05, df = (2 - 1) * (2 - 1), lower.tail = FALSE) [1] 3.841459
