Back to the programme
Session 4 · 2 h

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).

Session 4 — slide 1 / 16

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.
Histogram of the age of the 200 patients in 5-year classes, with the lines of the mean and the median.
Quantitative variable → histogram.
Swipe to turn the page

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.

Download the CSV
Variable dictionary
VariableTypeContent
ididentifierpatient number
sexqualitative nominalF / M
agequantitative continuousyears
height_cmquantitative continuouscentimetres
weight_kgquantitative continuouskilograms
bmiquantitative continuouskg/m², computed
smokingqualitative nominalYes / No — current smoker
physical_activityqualitative ordinalLow < Moderate < High
sbp_mmhgquantitative continuoussystolic blood pressure, mmHg
fasting_glucose_g_lquantitative continuousfasting blood glucose, g/L
hypertensionqualitative nominalYes 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
jamovi workshop — session 4

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. 1

    Describe blood pressure

    • Exploration → Descriptives: sbp_mmhg in 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.

  2. 2

    Split by physical activity

    • Add physical_activity in Split by. Compare the three box plots with the figure of slide 2.

    Expected result: Medians: Low 121, Moderate 118, High 112 mmHg.

  3. 3

    Which summary for blood glucose?

    • fasting_glucose_g_l in 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. 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.