Basic principles of biostatistics, main probability laws and sampling fluctuations
Programme objectives:Basic principles of biostatisticsMain probability lawsSampling fluctuations
Content: Types of variables · Probability, the language of uncertainty · The normal and binomial laws · Sampling fluctuation and the standard error.
What biostatistics does
- Biostatistics answers a single question: what can we conclude beyond the patients we have observed?
- Three steps, three sessions: describe the sample (session 4), estimate the population (session 3), compare groups (session 5).
- Everything starts with the data table and the type of each variable.
Data to download
cohort_efm1_2026.csv
200 outpatients: age, measurements, smoking, physical activity, blood pressure, blood glucose. Simulated data for the course. 200 rows, 11 variables.
Variable dictionary
| Variable | Type | Content |
|---|---|---|
| id | identifier | patient number |
| sex | qualitative nominal | F / M |
| age | quantitative continuous | years |
| height_cm | quantitative continuous | centimetres |
| weight_kg | quantitative continuous | kilograms |
| bmi | quantitative continuous | kg/m², computed |
| smoking | qualitative nominal | Yes / No — current smoker |
| physical_activity | qualitative ordinal | Low < Moderate < High |
| sbp_mmhg | quantitative continuous | systolic blood pressure, mmHg |
| fasting_glucose_g_l | quantitative continuous | fasting blood glucose, g/L |
| hypertension | qualitative nominal | Yes if SBP ≥ 140 mmHg |
Format: comma separator, decimal point, UTF-8 encoding — jamovi opens it with no settings. In Excel, use Data → From Text/CSV if the columns are not split.
Figures of the session (2) — download them for your own notes
Check the type of every variable in the cohort, then look at the shape of two measurements and test their normality.
- 1
Check the type of each variable
- Open
cohort_efm1_2026.csv. In the Data tab, the icon in the column header shows the type: ruler = continuous, bars = ordinal, “a” = nominal. - Double-click
physical_activity→ type Ordinal, then order the levels Low < Moderate < High.
Expected result: Three nominal (sex, smoking, hypertension), one ordinal (physical_activity), six continuous, one identifier.
- Open
- 2
Is age normally distributed?
- Exploration → Descriptives:
agein Variables. Plots: histogram with Density. Statistics → Normality: Shapiro-Wilk. - Apply the 68 – 95 – 99.7 rule: compute mean ± 2 SD and check that about 95% of the patients fall inside.
Expected result: Mean 48.2, SD 11.5: 95% of the patients expected between 25 and 71 years.
- Exploration → Descriptives:
- 3
Is blood glucose normally distributed?
- Same thing for
fasting_glucose_g_l: histogram with density and Shapiro-Wilk.
Expected result: Shapiro-Wilk p = 0.120: normality is not rejected. Mean 0.90 ± 0.20 g/L.
- Same thing for
- 4
See the fluctuation yourself
- Data tab → Filters →
id <= 30: the mean age of the first 30 patients. Thenid > 170: the last 30. Two samples, two means.
- Data tab → Filters →