Biostatistics Hypothesis Testing, t-Tests, ANOVA & Power

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/124

encourage image

There's no tags or description

Looks like no tags are added yet.

125 Terms

1
New cards

Statistical hypothesis

A claim about population parameters

2
New cards

p-value

Probability, under the null model, of a test statistic at least as extreme as the one observed. NOT the probability the null is true

3
New cards

If p > alpha, what do you report?

That the study did not detect an effect (not that the null is proven)

4
New cards

Equivalence and biological importance

Assessed separately from statistical significance

5
New cards

Type I error

Reject a true null hypothesis; false positive

6
New cards

Type II error

Fail to reject a false null hypothesis; false negative

7
New cards

Significance level (alpha)

The chosen Type I error threshold for the testing procedure

8
New cards

Power

Probability of rejecting a false null for a specified alternative; 1 - beta

9
New cards

Three ways to increase power

More independent units, larger true effects, or lower unexplained variation

10
New cards

Risks of deleting an inconvenient outlier

Biases results and hides influential data; exclusions must be documented and justified independently of the effect on significance

11
New cards

Risk of counting subsamples as replicates

Pseudoreplication: treats non-independent measurements as independent, inflating the apparent sample size and false positives

12
New cards

One mean versus a specified value

One-sample t-test

13
New cards

Two linked measurements per independent subject

Paired t-test

14
New cards

Two independent means, unequal variances

Welch's t-test

15
New cards

Two independent means, equal variances

Student's pooled t-test

16
New cards

Independent ordinal or non-normal responses (two groups)

Mann-Whitney or Wilcoxon rank-sum

17
New cards

df for a one-sample t-test

n - 1 (n = 14 gives df = 13)

18
New cards

df for a paired t-test

n - 1, where n counts independent pairs (14 units measured twice gives df = 13)

19
New cards

What values enter a paired t-test?

The within-unit differences (one per pair), not the raw readings

20
New cards

Why is treating 28 readings from 14 units as independent wrong?

Two readings from the same unit are linked; the independent observations are the 14 units/pairs

21
New cards

Assumption check: one-sample t-test

Distribution of observations for small samples; independence from design

22
New cards

Assumption check: paired t-test

The differences, and independence between pairs

23
New cards

Larger samples and non-normality

Larger samples improve robustness to some non-normality

24
New cards

If you transform the data

Apply the transformation consistently and reassess assumptions

25
New cards

Two-sided test

Considers departures in either direction (positive and negative)

26
New cards

One-sided alternative

Specifies a direction before examining results

27
New cards

Link between 95% CI and two-sided test at alpha = 0.05

The test rejects a null value that falls outside the 95% confidence interval

28
New cards

Meaning of a 95% confidence procedure

Covers the fixed parameter in 95% of repeated samples under its assumptions

29
New cards

What a confidence interval summarizes

Precision of the estimate for the parameter

30
New cards

What to report for a t-test

The biological comparison, direction and size of effect, uncertainty, test statistic, df, and p-value

31
New cards

One-way ANOVA null hypothesis

All population means are equal

32
New cards

F ratio

F = MS between / MS error; variation among group means compared with variation within groups

33
New cards

F when MS between = 15 and MS error = 3

F = 5

34
New cards

What a significant ANOVA F tells you

At least two means differ; it does not say which

35
New cards

Why use post-hoc tests with adjustment?

Unadjusted pairwise tests raise the risk of at least one false positive

36
New cards

Residual in one-way ANOVA

Observation minus its fitted group mean

37
New cards

Residual Q-Q plot is used to check

Approximate normality of residuals

38
New cards

Funnel shape in residuals vs. fitted values

Suggests unequal variance

39
New cards

Where do you assess independence?

From the experimental design

40
New cards

ANOVA alternatives when variances differ

Welch's one-way ANOVA (if residuals approx. normal), a justified transformation, or rank-based Kruskal-Wallis

41
New cards

Post-hoc: classical ANOVA, all pairwise

Tukey HSD

42
New cards

Post-hoc: each treatment vs. a control

Dunnett's comparisons

43
New cards

Post-hoc: after Welch's one-way ANOVA

Games-Howell

44
New cards

Post-hoc: after Kruskal-Wallis

Dunn's comparisons with multiplicity adjustment

45
New cards

Factorial ANOVA

Includes more than one factor

46
New cards

Interaction

One factor's effect depends on the level of another factor

47
New cards

Interaction before main effects

Graph and assess interactions before interpreting main effects

48
New cards

Balanced design

Equal counts in each factor combination

49
New cards

Without an interaction, Type II tests

Adjust each main effect for the other main effects

50
New cards

Interaction example: nutrients and temperature

Added nutrients improve growth when warm but have little effect when cool (non-parallel lines on an interaction plot)

51
New cards

Pearson r

Ranges from -1 to +1; measures linear direction and strength

52
New cards

Near-zero r

Can still occur with a nonlinear relationship

53
New cards

Simple linear regression equation

Predicted Y = intercept + slope x X

54
New cards

Slope

Change in predicted Y for a one-unit increase in X

55
New cards

Intercept

Predicted Y at X = 0 (check whether zero is within the sampled range)

56
New cards

R squared

Share of observed response variation accounted for by the model

57
New cards

Slope test

Commonly tests whether the population slope equals zero; a small p supports a nonzero slope under model assumptions

58
New cards

Residual in regression

Observed response minus fitted response

59
New cards

Regression assumptions to check

Linearity, independence, and residual variance

60
New cards

Influential observations

Investigate before deciding how to handle them

61
New cards

Interpolation vs. extrapolation

Interpolation predicts within the observed X range; extrapolation goes beyond the range where the relationship was checked

62
New cards

Prediction uncertainty and X

Generally increases farther from the center of sampled X values

63
New cards

Prediction interval vs. CI for the mean

Prediction interval (one new response) includes individual variability, so it is wider

64
New cards

Predicted biomass = 7 + 1.5 x light (h): prediction at 6 h

7 + 1.5(6) = 16 g

65
New cards

Interpret slope 1.5 in the biomass model

Predicted biomass increases 1.5 g for each additional hour of light

66
New cards

Interpret R squared = 0.36

The model accounts for 36% of the variation in observed biomass

67
New cards

Why prediction at 15 h is less defensible (data span 2-8 h)

Extrapolation beyond the sampled range; linearity unverified there

68
New cards

Why R squared, small slope p, and strong visual association don't prove causation

Causation depends on study design; confounding and other explanations can remain

69
New cards

Multiple regression

More than one predictor; interpret each coefficient conditional on the other predictors

70
New cards

Interaction in regression

A predictor's effect depends on another predictor

71
New cards

ANCOVA

Combines continuous predictors and categorical factors

72
New cards

Confounding

Can persist after adjustment for measured variables

73
New cards

Objects vs. functions in R

Objects store values; functions operate on them

74
New cards

R comments

Begin with #

75
New cards

x[3]

Selects the third element of vector x

76
New cards

data[row, column]

Selects entries by row and column; data[2, 3] is row 2, column 3

77
New cards

data$Height

Selects the Height column

78
New cards

str(data)

Checks column classes after importing

79
New cards

Storing measurements

As numeric values

80
New cards

Treatment labels

Convert to factors when appropriate

81
New cards

Packages in R

Install before loading with library()

82
New cards

Good script practice

Save an annotated script for importing and analysis; meaningful object names; document file paths

83
New cards

filter()

Selects rows

84
New cards

mutate()

Creates or changes columns

85
New cards

group_by()

Defines groups

86
New cards

summarize()

Creates group summaries

87
New cards

%>% (pipe)

Passes output to the next operation

88
New cards

pivot_longer() and pivot_wider()

Reshape data (wide to long and long to wide)

89
New cards

Data workflow order

Keep raw data, select rows, derive variables, summarize, check, and graph

90
New cards

aes()

Maps variables to visual properties such as color or shape

91
New cards

Geoms and facets

Geoms add marks; facets create panels for subsets

92
New cards

Comparing group distributions in a graph

Box plots with individual points

93
New cards

Continuous predictor vs. time sequence

Scatterplots for continuous predictors; line plots for meaningful time sequences

94
New cards

Graph labeling rules

Units, readable scales, distinguishable colors/shapes, and a label for uncertainty bars

95
New cards

Before interpreting fitted trends

Inspect raw observations first

96
New cards

Outlier

Can be a recording error or a valid extreme observation

97
New cards

What to check for an unusual observation

Original records, units, decimals, instrument notes, formulas, specimen IDs

98
New cards

Data quality red flags

Impossible values, unexpected missing codes, inconsistent category labels

99
New cards

A proportion outside 0-1

Check measurements and calculations

100
New cards

Documented errors and exclusions

Correct documented errors; document any exclusion and justify it independently of the effect on significance; report how influential valid observations affect results