[1] 2 1 10
[1] 8 7 10
2025-09-10
Last lecture we discussed:
[1] 2 3 6
[1] 2 3 6
A variable is a characteristic measured on individuals drawn from a population under study.
Data are measurements of one or more variables made on a collection of individuals. (i.e., your sample)
From: https://xkcd.com/1429. If you want to have more fun at the expense of language pedants, try developing an hypercorrection habit.
Numeric (also known as quantitative)
Categorical (also known as class or nominal variables)
Discrete: can only take some values within acceptable interval
Examples:
Continuous: Can take any value within acceptable interval
Examples:
Examples:
We predict the values of response variables from explanatory variables.
Outdated nomenclature: dependent and independent variables
Consider the fate of the approximatley 2,200 passengers of the titanic, including children and adults of both sexes.
This is a mosaic plot. We will learn about it in our next topic. Code based on snippets from Y. Brandvain.
Variables? Types? Explanatory & response variables?
Describe the population this result came from…
How far would you generalize from this to “Women & Children 1st?”
Experimental or observational study?
In Experimental Studies, researchers assign treatments to individuals.
In Observational Studies, researchers do not assign treatments to individuals.
But it can, of course, suggest it
Because researchers do not assign treatments in observational studies, observations cannot prove causation or disentangle cause and effect.
From: https://www.xkcd.com/552/. Correlation doesn’t imply causation, but it does waggle its eyebrows suggestively and gesture furtively while mouthing ‘look over there’.
The distance between jupiter and the sun correlates with the number of secretaries in-alaska
From: https://tylervigen.com/spurious/correlation/2733_the-distance-between-jupiter-and-the-sun_correlates-with_the-number-of-secretaries-in-alaska
As the distance between Jupiter and the Sun increases, the gravitational pull on Earth fluctuates, leading to a rise in cosmic productivity waves. These waves, when they reach Alaska, have been found to have a magnetic effect on the influx of secretarial energy, prompting more individuals to pursue careers in Alaska as professional secretaries. It’s like a celestial calling for secretarial excellence in the land of the midnight sun.
From: makeameme.org
B21: Biostatistics with R