THE CLINICAL PREDICTION GAZETTE VOL. CLXXVI · CLINICAL PREDICTION EDITION · "TRUTH IN CALIBRATION" A MEDICAL STUDENT'S FIELD GUIDE

Clinical Concepts

A Visual Broadsheet on Medical Statistics, Clinical Prediction Modeling & Model Validation

Start Here · Lesson 1 of 24 Methodology & Sources
Module 1 · Lesson 1 of 24

Start with a CSV: Your Clinical Data Table

Before equations or machine learning algorithms, every clinical prediction study begins with a structured patient cohort stored in a row-and-column table.

Everyday Analogy: The Hospital Floor Census

Think of a CSV file as a morning hospital census chart. Each row is a unique patient in a bed. Each column is a specific clinical vital or lab recorded on admission. If a nurse didn't draw a blood glucose, that cell is empty (missing). You cannot begin treating the patient without understanding the census first.

Here is how a clinical research team inspects an acute ischemic stroke cohort loaded from a CSV using Python's pandas library:

import pandas as pd

# 1. Load the admission stroke cohort
df = pd.read_csv("stroke_cohort.csv")

# 2. Check cohort size: (patients, clinical predictors)
print(df.shape)  # e.g., (626, 14) -> 626 patients, 14 variables

# 3. Inspect data types and missingness
print(df.dtypes)
print(df.isna().sum())

df.shape tells you your sample size immediately. In clinical modeling, sample size governs how many parameters your model can safely estimate without overfitting.

In ischemic stroke thrombectomy studies, key baseline predictors include:

  • NIHSS (0–42): National Institutes of Health Stroke Scale (ordinal neurological severity).
  • Infarct Volume (mm³): Core ischemic volume estimated from CT Perfusion.
  • Admission NWU (%): Net Water Uptake measuring early ischemic brain edema.
  • Time Metrics (hours): Last Known Well (LKW) to hospital arrival.
Interactive Patient Cohort Table n=626 Patients Sample

Explore the admission stroke cohort. Missing values are flagged in orange.

ID Age Sex NIHSS Infarct (mL) NWU (%) mRS (90d)
#10168M1642.58.4%2
#10274F2178.114.2%4
#10359M918.05.1%1
#10482F1965.4Missing5
#10563M1434.27.9%2
Key Clinical Takeaway: Before running regressions or ML algorithms, always inspect variable distributions, units, and missingness patterns.