Lecture 1
BIOC13 - Ekologi
Department of Biology, Lund University
2025-09-30


Population
The totality of individual observations about which inferences are to be made, existing anywhere in the world or at least within a definitely specified sampling area limited in space and time (Sokal and Rohlf 1995).
Sample
A collection of individual observations selected by a specified procedure (Sokal and Rohlf 1995).
Populations
Samples
03:00
 For this example, our population will be all the fish in a small pond. The body length (mm) and sex of the fish are shown below:
Task
In pairs, take a random sample (n=3) of males and females and calculate a mean for each. Subtract the means from each other (\(\bar{x}_{male}-\bar{x}_{female}\)).
I rolled a 10 sided dice 6 times:

Confidence intervals

Hypothesis testing
Sample of 6 males from the fish in the pond
03:00
 Task
In pairs, resample with replacement (n=6) values from my sample to get a new “bootstrap sample”, then calculate the mean.

\[ s = \sqrt{\frac{\sum_{i}^n (x_i - \bar{x})^2}{n-1}} \]
\[ s = \sqrt{\frac{ (96 - 104.2)^2 + (98 - 104.2)^2 + (112 - 104.2)^2 + \newline (101 - 104.2)^2 + (114 - 104.2)^2 + (106 - 104.2)^2 }{6-1}} \]
\[ s = \sqrt{\frac{(-8.2)^2 + (-6.2)^2 + (7.8)^2 + (-3.2)^2 + (9.8)^2 + (1.8)^2}{5}} \]
\[ s = \sqrt{\frac{67.24 + 38.44 + 60.84 + 10.24 + 96.04 + 3.24}{5}} \]
\[ s = \sqrt{\frac{276.04}{5}} \]
\[ s = \sqrt{55.208} \]
\[ s = 7.43 \text{mm} \]

If we collected another sample of the same size, how much would our test statistic be likely to vary?



02:00
 “Breakthrough Drug Reduces COVID-19 Hospitalizations by 12%!”
Task
Think for 30 seconds, then discuss in pairs or small groups for 1.5 minutes about the effect of including the confidence interval in the statement.

| Sex | Body Length (mm) | 
|---|---|
| Male | 96 | 
| Male | 112 | 
| Male | 101 | 
| Male | 101 | 
| Male | 114 | 
| Male | 104 | 
| Female | 115 | 
| Female | 104 | 
| Female | 105 | 
| Female | 101 | 
| Female | 93 | 
| Female | 121 | 
| Sex | Body Length (mm) | 
|---|---|
| Male | 96 | 
| Male | 112 | 
| Male | 101 | 
| Male | 101 | 
| Male | 114 | 
| Male | 104 | 
| Female | 115 | 
| Female | 104 | 
| Female | 105 | 
| Female | 101 | 
| Female | 93 | 
| Female | 121 | 
| Sex | Body Length (mm) | 
|---|---|
| Male | 96 | 
| Male | 112 | 
| Male | 101 | 
| Male | 101 | 
| Male | 114 | 
| Male | 104 | 
| Female | 115 | 
| Female | 104 | 
| Female | 105 | 
| Female | 101 | 
| Female | 93 | 
| Female | 121 | 
| Sex | Body Length (mm) | 
|---|---|
| Female | 96 | 
| Male | 112 | 
| Female | 101 | 
| Male | 101 | 
| Female | 114 | 
| Male | 104 | 
| Male | 115 | 
| Female | 104 | 
| Male | 105 | 
| Female | 101 | 
| Male | 93 | 
| Female | 121 | 
03:00
 Task
On the paper you have been given, randomly assign 6 of the rows male and 6 female, and calculate the mean difference in body length.

01:30
 Task
Think for 30 seconds, then discuss for 1 minute. What should my conclusion be?