1/56
Looks like no tags are added yet.
Inference
used when we X have full access to the thing we want to study
group may be too large, distant, hard to measure
may be highly variable & poorly understood
may X have resources to study this thing in entirety
Subset
collected as a sample w/ inference
sample of population/all of the thing we’re interested in
Purpose of Inferential Stats
to determine how likely it is that subsets can from population
is only a guess, & always will be
Data Collection vs Experimentation
can collect observations & study them
can observe natural experiments
or conduct controlled experiments to test hypotheses.
Samples
subsets that are accessible to us as experimenters
Populations
group we’re trying to learn about, by generalizing what we see in a sample
Point Estimate
a single value estimate of a population parameter, often derived from sample data.
calc a mean or SD of a sample w/ intent to estimate the population
Parameters
numerical characteristics or measures obtained by using all the data values from a specific population.
Questions for Planning an Experiment
what is the actual question we’re asking & how do we answer it
how many observations do we need in our sample → what’s a good sample size
how might we goof up
how do we interpret the output
Experiments
performed to answer a question about how the world works
gen testing fewer indep variables at a time is easier
core = hypothesis
Hypothesis
educated guess about how the dep variable is affected by the indep variables studied
studies might analyze many diff indep variables & their effect on 1+ dep variables
Independent Variable
what we as scientists are controlling
controlled variables
confounding variables
Controlled Variable
things we’ve known & accounted for in our study
independent variable
Confounding Variables
things we X or couldn’t know & account for in our study
independent variable
Dependent Variable
our outputs that we measure
Factors
sometimes indep variables are called this
studies may have multiple factors w/ multiple levels each
Levels
diff groups/categories w/in a factor
if sex is a factor → levels: female, male, intersex, trans-male, trans-female
if age is a factor → levels: infant, child, teenager, young adult, middle-aged, elderly
Alternative/Research Hypothesis (H1)
states there’s something special about experimental groups
ex → rats on anxiolytics spend more time in the middle of the field compared to rats in the control group
Null Hypothesis (H0)
states there’s nothing special about experimental groups
X differences/nothing of interest, same as giving water
ex → rats on anxiolytics spend the same amount of time in the middle of the field as rats in the control group
Statistical Thought
is about when we should reject or retain H0
never accept/prove H1
never accept H0
Graphical Example of Statistical Thought
goal is to determine & distinguish both, trying to determine 2 groups (1 controlling, 1 unique)
retain/tolerate or reject H0
H1 → 1 distrib might exist & our rats come from it, looking at multiple distribs
H0 → says all of our rats are from that its control distrib w/ same/avg score
Impact of increasing Sample Size
makes it unlikely all come from low end
dec likelihood of seeing a non-representative or biased sample, but never elim it
dec w/ square of sample size
Sampling
is the process of selecting a subset of individuals from a population to estimate characteristics of the whole population.
want to get fair distrib of where animals come from
selecting orgs before testing that match baseline/pop distrib
want to inc likelihood of good selection
larger sample = inc likelihood of matching pop well, perfect only if every org is selected
Random Sampling
used when surveying to obtain a snapshot of the pop
X perfectly representative just bc it’s random
picking n from entire pop randomly
mostly average, some ±
want to get a sample that represents pop
ex → rats we get from a supplier would be randomly picked
Random Assignment
process used in an experiment to minimize bias in your experimental groups
take n & divide into control & experimental group
groups may still end up biased due to random chance
small but X impossible, X completely avoid it
ex → glip a coin to assign rats to experimental or control group
How is a sample size chosen?
Sample size is chosen based on statistical power calculations, the desired level of precision, and the expected effect size, ensuring the sample adequately represents the population to minimize sampling error.
generally larger is better/more accurate
uneven/weird sizes are low chance but possible, X reason other than coincidence for error, still a random sample but X rep well
Mistakes of Coincidence
The errors that occur in random sampling or assignment due to chance rather than any systematic bias. These mistakes arise when a sample appears to have a particular characteristic purely by random selection.
random chance might produce weird results
Outcomes of a Hypothesis Test: Retain H0
retaining:
true H0 → correct decision
false H0 → type II error/miss
Outcomes of a Hypothesis Test: Reject H0
rejecting:
true H0 → type I error/false alarm
false H0 → correct decision
Error Types
Type I & Type II
Type I Error
alpha, false alarm/false positive
rejecting a null hypo that’s actually true
believe you observed an effect that X exist
ex → saying drug as anxiolytic properties when it actually X do more than placebo
Type II Error
beta, false negative/miss
failing to reject a null hypothesis that’s actually false
believing that no effect exists when there actually is one
ex → saying a new drug has no effect when it actually works better than placebo
What is alpha?
probability of making a type 1 error
p value is compared to it to determine statistical significance in hypothesis testing.
p </= a → statistically significant (p </= .05)
p > a → X significant (p >.05)
Role of Alpha
acts as a decision rule, tells us when something is/X significant
can be anything, selecting acceptable false + rate
make it small = increased risk of Type II error
Minimizing Alpha
reduces the likelihood of Type I errors but increases the risk of Type II errors, making it important to balance the two in experimental design.
What level of significance is appropiate?
Typically set at 0.05 or 0.01, depending on the context of the study. This level indicates an acceptable rate for Type I errors in hypothesis testing.
can pick whatever as our alpha → pick our own acceptable false + risk
a = 0.05 is common for basic science, lower a in medicine (less risk of misdiagnosis)
smaller a = inc b/risk of false neg
pick before analysis/test
1 Tailed vs 2 Tailed Tests
1 Tail → evals prob of directional effect
2 Tail → assess likelihood of an effect in both directions
What is a 2 tailed test suitable for?
testing differences w/o a specific prediction of the outcome
1 Tailed Test
directional test, checks for an effect/diff in 1 specific direction, smaller or larger
lower tail critical → evaluates probabilities only on one side of the distribution, typically assessing if a value is greater than or less than a specified threshold.
upper tail critical → evaluates probabilities only on the opposite side, typically checking if a value exceeds a specified threshold.
2 Tailed Test
non-directional test
checks for an effect/diff in either direction both larger & smaller
seen as more honest
reject hypo if something is smaller or larger in either direction
When should a 1 tailed test be chosen?
confident that hypo could only possibly result in a change in 1 direction
only interested in a change in 1 direction
est as the exp & analytical protocol before any analysis occurs
if conseq of being diff in 1D X matter
When should a 1 tailed test NOT be chosen?
w/o very strong justification, seen as sketchy way of making something look significant
What is beta?
probability of making a Type II error
reflects the likelihood of not detecting an effect or difference when one truly exists
risk of false negatives
measure of distance b/w means of control & exp group
Minimizing Beta
maximize diff b/w control & experimental groups as much as possible
dec variability of observations
inc alpha
inc sample size
Most Reliable Way to Minimize Beta
inc sample size
dec beta error rate exponentially = dec chance of false neg
increases the power of the test
Opposite of Beta
statistical power → probability of seeing an effect, if it exists
inverse/= to 1-B
X know B exactly, but can guess how big of an n needed for a certain B
Cohen’s d
a measure of effect size that assesses the strength of the relationship between two variables
how big of a difference the treatment actually makes
difference b/w the means of 2 groups/pooled standard deviation
small effect = d=0.2 → drug makes rat slightly less anxious
medium effect = =0.5, noticeable drop in anxiety
large effect = d=0.8, significant reduction in anxiety
Effect Size
a quantitative measure of the magnitude of a phenomenon or relationship, often used to assess the strength of a treatment effect in statistical analyses.
diff b/w means of the 2 groups we’re comparing
small = 0.2, medium = 0.5, large = 0.8
ex → small = rats less anxious, large = rats are super chill
Statistical Power
1- beta, prob that experiment will successfully catch a real effect if one actually exists
inverse of missing a false negative (2 negs) = positive/seeing effect
P Value
prob of getting results as extreme as yours/ones found if H0 is assumed to be true
how unlikely thing is to happen (high = very unlikely, low = very unlikley/actually likely)
lower value = stronger evidence against null hypothesis
nothing is actually happening & it’s all random luck
measure of confidence in results of statistical analysis
how likely making an error that something is happening but isn’t
What do p values measure?
how far sample mean is from population mean
tells how unlikely data is to be a mere coincidence
Standard Error
measures how much sample mean is expected to bounce around from true population due to random sampling
helps to quantify the precision of the sample mean as an estimate of the population mean.
sample’s sd/ sqr n
greater n = SE gets smaller, more precise estimate
smaller n = bigger SE
Confidence Interval
symmetric range around sample mean w/ chosen probability of containing true population mean
somwhere b/w values is the true population mean
.95 = 95%, very confident, X fully 100%, never fully sure
0.2 = 2%, low confidence
sample mean ± (zconf)(sd/sqr n)
Relationship b/w CI & SE
greater CI = smaller SE, more precision in est pop mean
smaller CI = greater SE, less precision in est pop mean
CI & Bar Graphs
Visual representation of confidence intervals using error bars to show uncertainty around sample means
antennaes = 95% CI
if the error bars of 2 groups X overlap = significant difference b/w groups
if the error bars of 2 groups overlap = X significant different b/w groups
Z Test
checks if a sample’s average is significantly diff from known population average
ex → see if a class did better on the MCAT than the population
Calculating a Z-test
find sample mean
find standard error
calculate z score
decide if the z score falls in or out of the normal range (in = X stat significant, out = stat significant)