Practice: 1.7 (available in R using the data(iris) command), 1.9, 1.23, 1.33, 1.55, 1.69
Graded: 1.8, 1.10, 1.28, 1.36, 1.48, 1.50, 1.56, 1.70
For 1.48, the following R code will create a vector scores that can be used to answer the question:
scores <- c(57, 66, 69, 71, 72, 73, 74, 77, 78, 78, 79, 79, 81, 81, 82, 83, 83, 88, 89, 94)
A survey was conducted to study the smoking habits of UK residents. Below is a data matrix displaying a portion of the data collected in this survey. Note that ⣠stands for British Pounds Sterling, âcig stands for cigarettes, and âN/A refers to a missing component of the data.
sex: categorical, nominal age: numberical, discrete marital: categorical, nominal grossIncome: categorical, ordinal smoke: categorical, nominal amtWeekends: numerical, discrete — althouh technically you could smoke part of a cigarette, which would make it continuous amtWeekdays: numerical, discrete — althouh technically you could smoke part of a cigarette, which would make it continuous
Exercise 1.5 introduces a study where researchers studying the relationship between honesty, age, and self-control conducted an experiment on 160 children between the ages of 5 and 15. The researchers asked each child to toss a fair coin in private and to record the outcome (white or black) on a paper sheet, and said they would only reward children who report white. Half the students were explicitly told not to cheat and the others were not given any explicit instructions. Diâµerences were observed in the cheating rates in the instruction and no instruction groups, as well as some diâµerences across childrenâs characteristics within each group.
Identify the population of interest and the sample in this study. ####population: all children between 5 and 15 ####sample: the 160 children between 5 and 15 in the experiment
Comment on whether or not the results of the study can be generalized to the population, and if the findings of the study can be used to establish causal relationships.
The question doesn’t specify whether the 160 children were randomly sampled or were volunteers. If they were randomly sampled, that would make the results generalizable to wthe population. Otherwise, the results would not be generalizable.
Below are excerpts from two articles published in the NY Times:
Based on this study, can we conclude that smoking causes dementia later in life? Explain your reasoning.
A friend of yours who read the article says, The study shows that sleep disorders lead to bullying in school children. Is this statement justified? If not, how best can you describe the conclusion that can be drawn from this study?
A researcher is interested in the effects of exercise on mental health and he proposes the following study: Use stratified random sampling to ensure representative proportions of 18-30, 31-40 and 41- 55 year olds from the population. Next, randomly assign half the subjects from each age group to exercise twice a week, and instruct the rest not to exercise. Conduct a mental health exam at the beginning and at the end of the study, and compare the results.
Comment on whether or not the results of the study can be used to establish a causal relationship between exercise and mental health, and indicate whether or not the conclusions can be generalized to the population at large. Since there was both random sampling and assignment, the results can be used to establish a causal relationship & generalized to the popultion.
Suppose you are given the task of determining if this proposed study should get funding. Would you have any reservations about the study proposal? Yes, I would ask if it is necessary to blind the researchers.
57, 66, 69, 71, 72, 73, 74, 77, 78, 78, 79, 79, 81, 81, 82, 83, 83, 88, 89, 94 Create a box plot of the distribution of these scores. The five number summary provided below may be useful. Min Q1 Q2 (Median) Q3 Max 57 72.5 78.5 82.5 94
scores <- c(57, 66, 69, 71, 72, 73, 74, 77, 78, 78, 79, 79, 81, 81, 82, 83, 83, 88, 89, 94)
boxplot(scores, range = 0)
#1.50 Mix-and-match. Describe the distribution in the histograms below and match them to the box plots. (a) 2, symetrical distribution (b) 3, roughly uniform distribution (c) 1, right-skewed distribution
For each of the following, state whether you expect the distribution to be symmetric, right skewed, or left skewed.
Also specify whether the mean or median would best represent a typical observation in the data,
and whether the variability of observations would be best represented using the standard deviation or IQR. Explain your reasoning.
It will be right-skewed since there the 3rd quartile is less densely distributed than the first 2 quartiles and since there are a meaningful number of houses worth multiple times the value of the other houses.
The median would best represent the typical observation since it will mitigate the effect of the extreme values.
The variability would be best represented by the IQR because the SD would be sensitive to the extreme values.
It will be a mostly symetrical distribution since the quartile ranges are very similar.
The median would best represent the typical observation since it will mitigate the effect of the extreme values.
The variability would be best represented by the IQR because the SD would be sensitive to the extreme values.
It will be left-skewed distribution since most of the students will be at the minimum value of zero and since very few drink excessively.
The median would best represent the typical observation since it will mitigate the effects of the all the non-drinkers and the excessive drinkers.
The variability would be best represented by the IQR because the SD would be sensitive to all the non-drinkers and the excessive drinkers.
It will be a mostly symetrical distribution.
The median would best represent the typical observation since it will mitigate the effect of the extreme values of the high-level executives.
The variability would be best represented by the IQR because the SD would be sensitive to the extreme values of the high-level executives.
The Stanford University Heart Transplant Study was conducted to determine whether an experimental heart transplant program increased lifespan. Each patient entering the program was designated an official heart transplant candidate, meaning that he was gravely ill and would most likely benefit from a new heart. Some patients got a transplant and some did not. The variable transplant indicates which group the patients were in; patients in the treatment group got a transplant and those in the control group did not. Another variable called survived was used to indicate whether or not the patient was alive at the end of the study. Of the 34 patients in the control group, 30 died. Of the 69 people in the treatment group, 45 died.
No, survival isn’t independent of the transplant variable. A significantly higher proportion of those who received the transplant survived than those who in the placebo group.
The transplant is at least marginally to moderately effective. While the transplant didn’t save the majority of the patients, it did save a much greater proportion than the placebo group.
30/34
## [1] 0.8823529
45/69
## [1] 0.6521739
# 0.8823529
# 0.6521739
30/34 - 45/69
## [1] 0.230179
# 0.230179
What are the claims being tested? The experimental heart transplant program increased lifespan
The paragraph below describes the set up for such approach, if we were to do it without using statistical software. Fill in the blanks with a number or phrase, whichever is appropriate.
We write alive on 28 cards representing patients who were alive at the end of the study, and dead on 75 cards representing patients who were not Then, we shuâe these cards and split them into two groups: one group of size 69 representing treatment, and another group of size 34 representing control. We calculate the diâµerence between the proportion of dead cards in the treatment and control groups (treatment - control) and record this value. We repeat this 100 times to build a distribution centered at 0 Lastly, we calculate the fraction of simulations where the simulated diâµerences in proportions are at least as extreme or greater. If this fraction is low, we conclude that it is unlikely to have observed such an outcome by chance and that the null hypothesis should be rejected in favor of the alternative.