1/115
Looks like no tags are added yet.
sample
a subset of the population used for statistical analysis and inference.
sampling bias
when the method used to select the sample causes it to differ from the population in a relevant way
explanatory variable
use to understand or predict the values of another, the response variable
association
two variables are associated if their values are related to one another
causally associated
if the value of one variable affects the value of the other variable
confounding variable
a third variable associated with both the explanatory variable and the response variable - cannot conclude causal association if a confounding variable is present
how can we eliminate a confounding variable
RANDOMLY assign the values of the explanatory variable
statistic
measures an attribute of a sample
parameter
an attribute of a population
categorical variables
record categories, labels, or qualities
quantitative variables
numerical measurements or counts where math operations make sense

histogram
groups frequencies by bins to give a sense of the distribution

symmetric histogram
similar on both sides

right-skewed histogram
long right “tail”

left-skewed histogram
long left “tail”

scatterplot
graphs the association between two quantitative variables
x
represents a variable
n
number of cases or sample size
x̄
sample mean
𝜇
population mean
median
middle value when the data are ordered highest to lowest
robust statistic
relatively unaffected by outliers
𝑠
sample standard deviation - how far each value is from the sample mean, squared and added
𝜎
population standard deviation - how far each value is from the population mean, squared and added
standard deviation
how spread out numbers are from the average
small standard deviation
numbers are close to the mean
large standard deviation
numbers are farther from the mean
bell-shaped histogram rule
about 95% of the sample values will be within two standard deviations of the mean

z-score
distance between a value and the mean, measured in standard deviations
correlation
a measure of the strength and direction of linear association between two quantitative variables
r
sample correlation
𝑟 > 0
positive association
𝑟 < 0
negative association
𝑟 ≅ 0
no association
standard error (SE)
standard deviation of sampling distribution
higher standard error
more spread out sampling distribution
lower standard error
less spread out sampling distribution
confidence interval
contains the population parameter for a given proportion of all samples
confidence level
proportion of intervals that actually contain the population parameter
population parameter
a number that describes the entire population (eg. avg age, population SD)
parameter
describes the population
statistic
describes the sample
p̂
proportion of a sample that has a specific trait p
confidence interval phrasing
we are 95% confident that the true population proportion p is b/w x and y
p̂ +- 2(SE) OR p̂ +- ME
95% confidence interval
2(SE)
Margin of error (ME)
bootstrap
creating a sampling dist. from one sample (simulated proportion)
bootstrap features
one original sample, resample from original, sample w/ replacement, keep same sample size, repeat many times, recalculate statistic each time
sample statistic
number from your sample used to estimate the parameter
Bootstrap distribution
distribution of the statistics calculated from all the bootstrap samples
sample statistic ± 2SE
95% CI
ME=2(SE)
Margin of error
95% confidence
if we repeated the sampling process many times, about 95% of the confidence intervals would contain the true population parameter.
Larger actual sample size
smaller SE → narrower CI → more precise.
Higher confidence level
wider CI (99%)
Difference CI (after subtraction & new CI) contains 0
no clear evidence of a difference
Bootstrap distribution symmetric/bell-shaped
formula method (sample statistic +- 2(SE)
Bootstrap distribution skewed
percentile method (remove lowest 2.5%, remove highest 2.5%)
Ho
Null hypothesis- no difference- contains =
Ha
Alternative hypothesis- difference we are looking for- contains >, <, or not equal
Randomization distribution
distribution of sample statistics assuming Ho is true
p-value
chance of getting your result or something more extreme if Ho is true
p-value decision
p<0.05 → reject H0o, p>0.05 → do not reject Ho
p<0.05
statistically significant, very unlikely
Ha: >
right tail
Ha: <
left tail
Ha: not equal sign
two tails
Difference between bootstrapping and randomization
Bootstrapping = How much would my statistic vary (SE, CI)? Randomization = How unusual is my statistic if Ho is true (p-values, hypothesis testing)?
For a two-sided test with o = 0.05, 95% CI excludes null value
reject Ho
For a two-sided test with o = 0.05, 95% CI includes null value
do not reject Ho
Type I
reject a true Ho, false positive
Type II
fail to reject a false Ho, false negative
P(Type I error) =
o or 0.05 (alpha is the probability of making a Type 1 Error)
1 categorical variable
bar chart
1 quantitative variable
histogram
quantitative variable compared across categories
side-by-side boxplots
2 categorical variables
side-by-side bar chart
2 quantitative variables
scatterplot
Random sample
lets you generalize to the population.
Random assignment
lets you make causal conclusions
right-skewed
mean > median
left-skewed
mean < median
positive z score
above mean
negative z score
below mean
95% rule for raw data:
xˉ±2s - tells you where about 95% of individual observations lie if the distribution is bell-shaped
95% confidence interval, estimates a population parameter.
statistic ± 2(SE)
Blinding
the subjects and/or investigators do not know which treatment group a subject is in
correlation inequality
−1 ≤ r ≤ 1
N
population size - number of observations in the whole population
n
sample size - number of observations in your sample
xi
one individual x-value - one data point
yi
one individual y-value - one data point for the second variable
μ
population mean - true average of the whole population
ˉx (x bar)
sample mean - average of your sample
o (alpha)
population standard deviation - spread of the population
s
sample standard deviation - spread of the sample - reminder! uses n-1
p
population correlation - true correlation in population
r
sample correlation - correlation calculated from sample
m
median - middle value
Q1
25th percentile, lower quartile