Descriptive statistics, their usefulness in medicine, and the principles of statistical tests
Programme objectives:Descriptive statisticsDescriptive statistical methods and their usefulness in medicinePrinciples of statistical tests
Content: Location: mean and median · Spread: standard deviation, quartiles, box plot · What descriptive statistics are for · The principle of a test, p-value, α and the two errors · Histogram by hand, normality and the Shapiro-Wilk test · Three ways to compare two variables and the decision table · The cross-sectional study: poll, survey or scientific study · Ethics committee and data protection (CNDP, GDPR).
Summarising a quantitative variable: location
- Mean: sum of the values divided by n. Sensitive to extreme values.
- Median: the middle value, half of the patients below. Robust.
- Mean ≈ median → symmetrical distribution. They drift apart → skewness (lengths of stay, viral loads, costs).
- Cohort: mean age 48.2 years, median 49 years — symmetrical.
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 (6) — download them for your own notes
Describe two variables of the cohort, compare them visually by physical activity, choose the summary suited to their distribution, and run a first chi-square test on the question of slide 4.
- 1
Describe blood pressure
- Exploration → Descriptives:
sbp_mmhgin Variables. Statistics: Mean, Median, Std. deviation, Quartiles. Plots: histogram with density, box plot.
Expected result: Mean 117.7, standard deviation 13.6, median 119, Q1 108, Q3 126 mmHg. 5.0% of the patients have an SBP ≥ 140.
- Exploration → Descriptives:
- 2
Split by physical activity
- Add
physical_activityin Split by. Compare the three box plots with the figure of slide 2.
Expected result: Medians: Low 121, Moderate 118, High 112 mmHg.
- Add
- 3
Which summary for blood glucose?
fasting_glucose_g_lin Variables: mean, standard deviation, median, quartiles, histogram, Shapiro-Wilk.- Decide: mean ± SD, or median [Q1, Q3]?
Expected result: Mean 0.90 ± 0.20 g/L; median 0.90 [0.80, 1.10]; Shapiro-Wilk p = 0.120 → mean ± SD is acceptable.
- 4
A first test: do men smoke more than women?
- Analyses → Frequencies → Independent Samples — χ² test of association. Rows:
sex; Columns:smoking. Cells: row percentages. - State H₀ before reading the result. Then read p and conclude — the test itself is the subject of session 5.
Expected result: χ² = 6.57, df = 1, p = 0.010: H₀ is rejected, men smoke more often in this cohort.
- Analyses → Frequencies → Independent Samples — χ² test of association. Rows: