Biostatistics: Standard Error, Quantiles, Probability Distributions, and Boxplots
Foundations: Variance, Standard Deviation, and Residuals
Exploratory Data Inspection and Summaries:
Tabular data import and exploratory analysis provide the baseline for characterizing biological measurements.
Histograms illustrate empirical data distributions by plotting either absolute frequencies (counts) or relative frequencies across discrete bin intervals, constructible manually or programmatically in R.
Selection between central tendency measures depends on the analytical objective:
Arithmetic Mean (): Sensitive to extreme values and outliers.
Median: Robust against outliers and skewed values.
Residuum (Residual):
Defined as the directed difference (distance) between an observed value () and the arithmetic mean ():

Sample Variance ():
Measures the average squared dispersion of data points around their sample mean:
The denominator uses (Bessel's correction) degrees of freedom to ensure an unbiased estimator of the population variance.
Sample Standard Deviation ():
The positive square root of the sample variance:
Unlike variance, standard deviation shares the exact unit of measurement as the original variable and its arithmetic mean, making it directly interpretable in biological contexts.
Standard Error of the Mean (SEM)
Parameter vs. Statistic:
Population Parameter: A fixed, true numerical characteristic of an entire population, denoted for the mean by the Greek letter .
Sample Statistic: An empirical estimate calculated from a drawn sample, denoted for the sample mean by .
The sample statistic serves as an estimator for the unknown population parameter .

Definition and Function of SEM:
The Standard Error of the Mean ( or ) quantifies the precision of the sample mean estimate.
Crucial distinction: is not a metric for data dispersion or variability within a population; that role is fulfilled solely by standard deviation () and variance ().
For normally distributed data, the true population mean falls within an interval of one standard error () around the sample mean with an approximate probability of .
Mathematical Formulation:
Where is the sample standard deviation and is the total number of observations (sample size).
Factors Influencing Precision:
Variability (): A smaller standard deviation produces a smaller , increasing estimation precision.
Sample Size (): A larger sample size reduces proportionally to , narrowing the confidence margin of the estimate.
Concrete examples illustrating relationships:
Baseline condition: ,
Reduced dispersion: ,
Reduced sample size: ,

Application in Group Comparisons:
is applied when displaying error bars to evaluate differences between group means, such as comparing heights among multiple tree species (e.g., Eichen [oaks], Buchen [beeches], and Mammutbäume [giant sequoias]).

Computation in R:
Calculation of standard deviation:
sd_umfang <- sd(eschendatenumfang)Standard error calculation using square root function
sqrt():sem_umfang <- sd_umfang / sqrt(n_umfang)
Quantiles and Percentiles
Definitions and Mathematical Partitioning:
The -quantile (where ) divides an ordered set of data points into two defined fractions:
Exactly of all values lie to the left (below or equal to) the -quantile.
Exactly of all values lie to the right (above) the -quantile.
Scale Terminology:
Quantile: Scaled over the closed real interval .
Percentile: Expressed as a percentage over the interval .
Key Reference Quantiles:
Minimum ( smaller): Lowest observed value ().
Quantile (): Threshold delimiting the lowest tenth of observations.
Lower Quartile ( smaller): First quartile (, ).
Median ( smaller): Second quartile (, ); numerical quantile algorithms can yield small deviations from traditional median definitions due to interpolation procedures.
Upper Quartile ( smaller): Third quartile (, ).
Quantile (): Threshold above which only the top of observations remain.
Maximum ( smaller): Highest observed value ().

Biological Applications:
Identifying whether an individual organism is atypically small or large within its population.
Trimming extreme values (e.g., removing the lowest and top of records) to minimize leverage in downstream statistical tests.
Computation in R:
Calculated via the
quantile()function:q10 <- quantile(eschendaten$umfang, probs = 0.1)Console output showing the 10th percentile for ash circumference:
> q10 10% 29
Statistical Distributions: Overview and Types
Fundamental Classification:
Frequency Distribution (Häufigkeitsverteilung): An empirical record showing how frequently each individual value or discrete class of values occurs within an actual sample.
Probability Distribution (Wahrscheinlichkeitsverteilung): A theoretical mathematical model specifying how probabilities are apportioned across all potential random outcomes.
Methodological Significance:
The underlying distributional properties of empirical data dictate the validity of candidate inferential tests.
Many classical parametric hypothesis tests mandate that data satisfy the assumption of normality.
In linear models, the specific distribution of error terms (residuals) governs the appropriate mathematical modeling approach (e.g., ordinary linear regression versus generalized linear models).
Survey of Major Statistical Distributions:
Continuous Distributions:
Normal Distribution (symmetric, unbounded real values).
Log-Normal Distribution (strictly positive, right-skewed).
Discrete Distributions:
Discrete Uniform Distribution (Gleichverteilung, e.g., standard six-sided die roll where each outcome exhibits ).
Binomial Distribution (bounded discrete successes in repeated binary trials).
Poisson Distribution (unbounded count data representing rare events across time or space).


The Normal Distribution (Gaussian Distribution)
Biological Example and Law of Large Numbers:
In a study measuring sprint hunting velocities () of cheetahs (Acinonyx jubatus), as the sample size increases (), the empirical relative frequency histogram progressively smooths and converges onto the continuous theoretical bell curve (Gaussian curve).

Properties of the Normal Distribution:
A continuous distribution spanning the entire domain of real numbers ().
Perfectly symmetric around the mean.
Probability Density Function (PDF):
The mathematical formula defining probability density is:
Parameters:
: Population mean (expected value).
: Population standard deviation.
Important parameter note: Population parameters and are utilized here rather than sample estimates and .
Concept of Probability Density:
In any continuous probability distribution, the probability of obtaining an exact, infinitesimally precise point value is zero:
The function value represents probability density rather than discrete probability.
Actual probability is computed by integrating the probability density over an interval , representing the geometric area under the curve:
Numerical example: For a cheetah velocity distribution with and , the probability of recording a velocity between and is:
Modulation of Parameters:
Altering translates the distribution along the horizontal axis without altering its geometry (e.g., moving the central peak from to with fixed ).
Altering alters the breadth and height: increasing from to (with fixed ) widens and flattens the distribution curve.

Empirical Rule (68–95 Rule):
Approximately of all observations reside within one standard deviation of the mean:
Approximately of all observations reside within two standard deviations of the mean:

The Poisson Distribution
Characteristics of Count Data (Zähldaten):
Models non-negative integer values ().
Strictly bounded on the left by zero, extending infinitely upward with no fixed upper limit ( is unbounded or infinite).
Connected line plots shown in graphical representations serve exclusively as visual aids; intermediate real values do not exist.
Biological Application:
Number of flower heads (capitula) per plant: observed with an average count of .
The distribution is asymmetric and right-skewed (skewed toward higher values), with many plants possessing fewer than three capitula.
Single-Parameter Structure:
Controlled by a single parameter (lambda), which simultaneously specifies both the expected mean and the variance:
Probability mass function:
Where represents the factorial function:
With .
Behavior as Changes:
For low values of (), the distribution is right-skewed with peak mass at low counts.
As increases (), the distribution shifts rightward, broadens, and becomes symmetrical, increasingly approximating a normal distribution.

The Binomial Distribution
Properties of Bernoulli Trials:
Models discrete count data arising from a fixed, predetermined total number of trials ().
Each individual trial permits exactly two mutually exclusive outcomes: "success" (with probability ) or "failure" (with probability ).
Examples:
Coin tossing: Heads or Tails (, ).
Board game dice rolls: Rolling a six (, ).
Plant ecology: Seedling establishing versus failing to establish.
Focuses on aggregate outcomes over multiple independent trials (e.g., getting exactly 2 heads in 3 coin tosses, getting zero sixes in 3 dice rolls, or at least 50 established seedlings out of 100 plantings).
Key Contrast with Poisson Distribution:
In a binomial distribution, the total potential trial pool () is finite and explicitly known (observing successes out of attempts), unlike unbounded Poisson count processes.
Mathematical Formulations:
Mean (expected value):
Variance:
Influence of Success Probability ():
As approaches , the distribution achieves maximum variance and becomes symmetrical.
As shifts toward either or , the distribution narrows and becomes asymmetric.
Ecological case study: Tagging European moles (Talpa europaea). When evaluating survival through a spring flooding event with per-individual survival probabilities , the distribution of surviving individuals displays maximal spread at , collapsing to zero variance at .

Cumulative Probability Functions
Definition:
The cumulative probability function () represents the probability that a random variable takes on a value less than or equal to a specified threshold :
For continuous variables, is the definite integral of the probability density function evaluated from negative infinity to :
As , cumulative probability converges strictly to :
Cumulative Probability in the Normal Distribution:
For cheetah velocities with and :
Probability of a velocity :
Probability of a velocity :
Interval probability between and :


Cumulative Probability in Discrete Distributions:
Poisson Distribution Example:
Calculating the probability of observing between 4 and 6 flower heads per plant:
Binomial Distribution Example:
Calculating the probability that 81 or more of the 100 marked moles survive the flood:


Distribution Morphology: Skewness and Kurtosis
Skewness (Schiefe):
Quantifies the degree of horizontal asymmetry of a probability distribution around its center.
Modalwert (Mode): The value of corresponding to the peak frequency or maximum probability density.
Symmetric Distributions (e.g., Normal Distribution):
Right-Skewed / Positive Skew (rechtsschief):
Characterized by an elongated tail extending to the right toward larger positive values.
Relationship between central tendency metrics:
Left-Skewed / Negative Skew (linksschief):
Characterized by an elongated tail extending to the left toward smaller or negative values.
Relationship between central tendency metrics:

Kurtosis (Wölbung):
Measures the tailedness and central concentration (peakedness) of a distribution relative to a standard Gaussian curve.
Characterizes how steeply the distribution ascends toward its central peak and tapers down.
Morphological Categories:
Steilgipflig (Leptokurtic): Sharply peaked with heavy tails.
Normalverteilt (Mesokurtic): Standard baseline curvature characteristic of a Gaussian distribution.
Flachgipflig (Platykurtic): Broad, flattened central peak with thinner tails.
Exploratory Data Analysis: Boxplots
Purpose and Relative Utility:
Graphical representation condensing univariate data distributions into five summary statistics.
While histograms require substantial visual space to depict full bin frequencies, boxplots aggregate distributional properties into a compact space, enabling side-by-side multigroup comparisons.
Structural Anatomy of a Boxplot:
Median (, Quantile): Solid horizontal bar dividing the box.
Interquartile Range ( / Box Height):
Lower Box Hinge (): Lower quartile, representing the quantile (-quantile).
Upper Box Hinge (): Upper quartile, representing the quantile (-quantile).
The interior of the box spans the central of all observed data points.
Whiskers (Antennen):
Upper Whisker: Extends to the largest observed data point that does not exceed above the upper quartile ().
Lower Whisker: Extends to the smallest observed data point that is not further than below the lower quartile ().
Outliers (Ausreißer): Any data point positioned beyond the boundary, depicted individually as standalone open circles.

Implementation in R:
Single Variable Boxplot:
r boxplot(eschen$umfang, ylab = "Umfang (cm)", main = "Umfang von 100 Eschen")
Multigroup Grouped Boxplot:
Data file (
"03_Baeume.txt") containing tree species (Art) and corresponding height records (Hoehe) for Birke (birch), Buche (beech), and Eiche (oak).r baeume <- read.table("03_Baeume.txt", header = TRUE) boxplot(Hoehe ~ Art, data = baeume, xlab = "Baumart", ylab = "Höhe (m)")
Model Formula Notation: The formula syntax
y ~ xinstructs R to model the dependent response variable conditioned across levels of the categorical predictor (here: tree height conditioned on tree species).

Data Subsetting in R
Purpose and Use Case:
Isolates subsets of records from a full data frame based on logical evaluation of one or more variables.
The
subset()Function:Syntax structure:
r nur_eichen <- subset(baeume, Art == "Eiche") Arguments:
First parameter specifies the target data frame (
baeume).Second parameter specifies the logical filter condition (
Art == "Eiche").
Logical Operators:
==: Logical identity equality check (composed of two consecutive equal signs).!=: Logical inequality check (not equal to).
Downstream Computation on Subsets:
Standard descriptive functions applied to isolated variables:
r mean(nur_eichenHoehe)
Console output:
> mean(nur_eichenHoehe) [1] 22.7422