In our first week, we got a bit of a grip on data. To this point, the data we’ve played with has all come from some CSV file or it’s been scraped off of the web. Now we’ll learn a bit about how data is gathered at a more fundamental level. In particular, we’ll explore
Let’s work in the context of a specific research question - do stents help prevent stroke in patients who’ve had heart surgery? Consider the following three approaches:
You can’t clearly articulate a research question without first clearly identifying the population that you’re working with, together with some related terms:
In the stent/stroke example, the population might be all patients who’ve had heart surgery while the sample would be all patients in a specific study.
Often we are interested in the relationship between two variables - specifically, is there a correlation or even a causal relationship between two variables. In the context of a study, we should clearly identify:
Generally, an explanatory variable is one that a researcher suspects might affect the response variable. Correlation, however, does not always imply causation.
Example: We suspect that folks who use more sunscreen have a higher incidence of skin cancer. What are the explanatory and response variables - as well as any confounding variables?
Again, the basic idea is that the data collection does not interfere with how the data arises.
Suppose we’d like to know the average height of women enrolled at UNCA. According to the UNCA Factbook, there were 2147 women enrolled in the Fall of 2017. I’m not even sure how many were enrolled this past year; it might be hard to round up all of them.
So, here’s a more practical approach: I had 42 women enrolled in my statistics classes that semester who filled out my online survey survey. The average height of those women was 5’5’’. We might hope that could be a good estimate to the average height of all women at UNCA.
This is a fundamental idea in statistics: we wish to study some parameter for a large population but doing so is a too unwieldy or down right impossible. Thus, we choose manageable sample from the population and estimate the parameter with the corresponding statistic computed from the sample. In the example above,
A number of key questions arise:
The first question will consume much of last two-thirds of our semester under the general topic of inference. As we’ll learn, we need a random sample of sufficient size.
This approach of sampling is in contrast to the idea of just grabbing the whole population - often called a census.
Potential issues:
Here are a few strategies to implement the big ideas
Simple random samples: The idea is so simple - choose \(n\) people from the population independently and with equal probability. It’s a bit hard to achieve in practice, though.
Other strategies:
The experimental approach to the Music / GPA question might go like so: Select 100 third graders. Randomly assign them into one of two groups - one who takes music lessons and one that doesn’t. Examine the groups over the course of several years and compare their grades.
If we find differences between the groups we can examine whether they are statistically significant or not.
The stent/stroke example is presented as an introductory case study in section 1.1 of our textbook The data is available as well, In that study, 451 patients were broken into treatment and control groups with the following results after 1 year:
no event | stroke | |
---|---|---|
control | 199 | 28 |
treatment | 179 | 45 |
It appears that the stents have helped since 25% of the patients in the control group had a stroke while only 14% of the treatment group had a stroke. Near the end of the semester we’ll develop some tests to quantify the statistical significance of this type of result.
We’ve already used Mosaic plots to visualize the relationship between categorical variables. Here’s the Mosaic plot for the Stent/Stroke experiment.
We will talk later about making quantifying the relationship using a \(\chi\)-square test.
When we have two numerical variables that we suspect are related, we can investigate with a scatter plot. For example, it makes sense that height and weight would be related. The following scatter plot shows the heights and weights of a random sample of 100 individuals taken from our CDC data set.
We will talk later about making quantifying the relationship using linear regression.