1.8 Smoking habits of UK residents. 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.58 sex age marital grossIncome smoke amtWeekends amtWeekdays 1 Female 42 Single Under £2,600 Yes 12 cig/day 12 cig/day 2 Male 44 Single£10,400 to £15,600 No N/A N/A 3 Male 53 Married Above £36,400 Yes 6 cig/day 6 cig/day. 1691 Male 40 Single £2,600 to £5,200 Yes 8 cig/day 8 cig/day
Each row in the dataset represents the smoking habits of residents in the United Kingdom.
The survery contains 1691 participants.
Sex: Categorical Age: continuous Matrital: Categorical Gross Income: discrete smoke: Categorical amt Weekends:discrete amt Weekdays: discrete
1.10 Cheaters, scope of inference. 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.
In this study there are 160 Children between ages 5 and 15.
The study doesn’t state that the children were assigned randomly, so the study couldn’t be used for generalized to the population.
1.28 Reading the paper. Below are excerpts from two articles published in the NY Times:
Explain your reasoning.
Since this study was voluntary and the sample were not random, we cannot conclude that the study can prove that smoking can cause dementia later in life.
Explain your reasoning.
The study doesn’t state where or how the students were selected - local/random, etc. This conclusion can be drawn that there is a correlation but cant say there is causation.
1.36 Exercise and mental health. A researcher is interested in the eects of exercise on mental health and he proposes the following study: Use stratied 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.
Stratied random sampling
The treament group will exercise twice a week and the control group will not exercise.
Does this study make use of blocking? If so, what is the blocking variable? No
Does this study make use of blinding? No
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. Yes - for this experiment we used random sampling, took a mental health exam at the beginning and end and compared with results from people who did exercise to those who didn’t.
Suppose you are given the task of determining if this proposed study should get funding. Would you have any reservations about the study proposal? I feel that the only improvment would be to maybe to blind the researches - that way they wouldn’t know which group they were in as to not accidently add any bias.
1.48 Stats scores. Below are the ???nal exam scores of twenty introductory statistics students. 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 ???ve number summary provided below may be useful.
scores <- c(57, 66, 69, 71, 72, 73, 74, 77, 78, 78, 79, 79, 81, 81, 82, 83, 83, 88, 89, 94)
boxplot(scores)
summary(scores)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 57.00 72.75 78.50 77.70 82.25 94.00
1.50 Mix-and-match. Describe the distribution in the histograms below and match them to the box plots
1.56 Distributions and appropriate statistics, Part II. 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.
Right skew, median, and IQR. The extreme values over 6mil would skew the data. The Median and IQR are better observations of the data when there are extreme values.
Symetric distribution. The median and IQR would be better observations because of the few houses above 1.2mil.
Right skew, median and IQR. The few students who drink excessively would skew the data.
Right skew, median, and IQR. The few very high salaries would skew the data to the right.
1.70 Heart transplants. 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 ocial heart transplant candidate, meaning that he was gravely ill and would most likely bene???t 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
Based off the mosaic plot, the survial is dependent on whether the patient got a heart transplant or not. From reading the mosaic plot it shows that patients that received a heart transplant lived longer and more people were alive at the end of this study.
On the box plot it shows that the heart transplant is effective for increasing life expectancy.
From reading the article it showed:
Control Group
alive = 4
dead = 30
control = 34
Treatment Group
alive = 24
dead = 45
total = 69
H0 -Heart transplant and survival rate are independent and without no relationship. The survival rate of transplant patients was due to chance.
HA- transplant and survival rates are not independent. The survival rates were not due to chance
We write alive on cards 28 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 difference 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 differences in proportions are . 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.
The transplant program via the simulation results was effective since the results were centered around 0/ below .23. We then reject H0.