Each row of the data matrix represents a case or an observation.
There are 1691 particapants in the survey.
gender: Categorical
age: Numerical Continuous
maritalStatus: Categorical
highestQualification: Categorical ordinal
nationality: Categorical
ethnicity: Categorical
Gross Income: Categorical ordinal
region: Categorical
Smoke: Categorical
amtWeekends: Numerical Discrete.
amtWeekedays: Numerical Discrete.
type: Categorical
The population of interest are children between the age of 5 and 15. The sample is 160 children.
It is said that researchers conducted an EXPERIMENT. If the experiment was PROPERLY done and met ALL the following principles: Control, Randomize, Replicate, Block it means that the results of the study can be generalized to the population and the results of the study can be used to esteblish casual relationships.
“Researchers analyzed data from 23,123 health plan members who participated in a voluntary exam and health behavior survey from 1978 to 1985, when they were 50-60 years old. 23 years later, about 25% of the group had dementia, including 1,136 with Alzheimer’s disease and 416 with vascular dementia. After adjusting for other factors, the researchers concluded that pack-a- day smokers were 37% more likely than nonsmokers to develop dementia, and the risks went up with increased smoking; 44% for one to two packs a day; and twice the risk for more than two packs.”
We can not conclude that smoking causes dementia later in life as sample was not randomized. The participants were only volunteers so the result can be biased.
This is an observation and not an experiment with randomly picked sample. Even if we say that there is some correlation in the observation, but it is not imply causation. Confounding Variables can be the real reasons of the dementia.
A researcher is interested in the e↵ects of exercise on mental health and he proposes the following study: Use stratified random sampling to ensure rep- resentative 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.he results.
What type of study is this?
Prospective experiment
What are the treatment and control groups in this study?
Treatment group: group that excercising twice a week. Control group: group not excercising at all.
Does this study make use of blocking? If so, what is the blocking variable?
Answer: Yes. Blocking variables are variables that are known or suspected to affect the response variable. In this case blocking variable is Age.
Does this study make use of blinding?
It is not clear form the experiment if the experimental units know whether they are in the control or treatment group. If the experimental units do not know then study use blinding.
Comment on whether or not the results of the study can be used to establish a causal rela- tionship between exercise and mental health, and indicate whether or not the conclusions can be generalized to the population at large.
If the experiment was PROPERLY done and met ALL the following principles: Control, Randomize, Replicate, Block it means that the results of the study can be generalized to the populationa and the results of the study can be used to esteblish casual relationships. From the details provided the study is a proper experiment and can be used to esteblish casual relationships.
I think duration and quality of sleep, diet, intensiveness of work are all the examples of blocks for the experiment.
scores <- c(57, 66, 69, 71, 72, 73, 74, 77, 78, 78, 79, 79, 81, 81, 82, 83, 83, 88, 89, 94)
summary(scores)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 57.00 72.75 78.50 77.70 82.25 94.00
boxplot(scores, main = "Final Exam Scores")
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.
Distribution is a right skewed as there are less number of houses that cost more than 1000000 forming a long tail to the right. For a skewed distribution IQR or median will be the best representation of a typical observation in the data. The houses with prices above 6000000 is an outlier and can change mean or standard deviation significantly.
Data is symmetrically distributed. Median/IQR is preferred because of existence of a few outliers.
Distribution is a right skewed. Median/IQR are preferred for the reasons explained in the answer a) question.
Data is symmetrically distributed. Median/IQR is preferred because of existence of a few outliers.
Based on the mosaic plot survival is dependent on the treatment, but we can get the result by chance.
The box plot suggest that the heart transplant increases the survival rate for a longer period of time.
Based on the mosaic graph: Treatment group: 3/5 Control group: 6/7
What are the claims being tested? H0 - survival does NOT depend on the treatment H1 - survival does depend on the treatment
The paragraph below describes the set up for such approach, if we were to do it with- out using statistical software. Fill in the blanks with a number or phrase, whichever is appropriate.
We write alive on the cards equivalent to the number of people in control and treatment group (1/7 and 2/5 respectively) representing patients who were alive at the end of the study, and dead on cards equivalent to the number of people in control and treatment group (6/7 and 3/5 respectively) representing patients who were not. Then, we shuffle these cards and split them into two groups: one group of size equivalent to the original treatment group representing treatment, and another group of size equivalent of the original control group 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 3/5 - 6/7 (-0.257).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 simulation results allows to reject the NULL hypothesis. We can conclude that heart transplat increase time being alive. The observed differences between the two proportions was due to effect of transplantation.