FCPS Part 1 Biostatistics and epidemiology

Types of data

Types of Data, Measurement Scales and Graphs in Biostatistics

Nominal, ordinal, discrete and continuous data, interval versus ratio scales, and which graph, summary statistic and test fits each type of data. Also covers histograms, box plots, ogives, pie charts, population pyramids and the data sources used in Pakistan.

Why data type matters

  • The type of a variable decides three things: which average you may use, which graph shows it fairly and which statistical test compares groups. Most FCPS questions on this topic are really asking you to classify a variable first.

Types of variables

TypeSubtypeDescriptionExamples
Qualitative (categorical)NominalNamed categories with no orderBlood group, sex, religion, diagnosis, eye colour
Binary (dichotomous)A nominal variable with two categoriesPresence or absence of vomiting, alive or dead, smoker or non-smoker
OrdinalCategories with a natural order but unequal gapsPain (mild, moderate, severe), cancer stage, Likert scales, Apgar, GCS, ASA grade, NYHA class, social class
Quantitative (numerical)DiscreteWhole-number countsNumber of children, pregnancies, admissions, decayed teeth
ContinuousAny value within a rangeHeight, weight, BP, haemoglobin, age, temperature
  • Ordinal data carry rank but not distance: the step from ASA I to II is not necessarily the same as from III to IV, so averaging ordinal scores is unsafe.
  • A continuous variable can be turned into categories (BMI into underweight, normal, overweight), but this loses information and statistical power.

Exam trap Presence or absence of a symptom is nominal (binary) data, not ordinal: there is no order between yes and no.

Scales of measurement

ScaleOrderEqual intervalsTrue zeroExamples
NominalNoNoNoBlood group
OrdinalYesNoNoStage, rank, ASA grade
IntervalYesYesNo: ratios meaninglessTemperature in °C or °F, calendar year, IQ
RatioYesYesYesWeight, height, pulse, temperature in kelvin, income
  • 40 °C is not "twice as hot" as 20 °C because 0 °C is an arbitrary point; 80 kg is twice 40 kg because zero weight means no weight.

Remember Nominal names, ordinal orders, interval measures equal steps, ratio has a true zero.

Matching data type to summary and test

Data typeAverageSpreadTypical test comparing two groups
NominalMode, proportionNoneChi-squared (2 × 2 table); Fisher exact for small numbers
OrdinalMedianIQRMann–Whitney U
Continuous, normalMeanSDt-test
Continuous, skewedMedianIQRMann–Whitney U
  • A 2 × 2 table of two categorical variables is analysed with the chi-squared test; a t-test compares means of a numerical variable between two groups.

Choosing a graph

Data or purposeGraph
Categories (nominal or ordinal)Bar chart: separate bars, height shows frequency
Parts of a whole, percentages adding to 100%Pie chart: sector angle proportional to share
Comparing a percentage between groups (40% vs 20% on HRT)Bar chart
Distribution of one continuous variableHistogram: bars touch, area proportional to frequency; frequency polygon; stem-and-leaf plot (keeps raw values)
Median, IQR, range and outliers; comparing groupsBox-and-whisker plot
Cumulative frequency (read median and percentiles)Ogive
Relationship between two continuous variablesScatter plot
Trend over timeLine graph
Cases by date of onset in an outbreakEpidemic curve
Geographic spreadSpot map; shaded (choropleth) map
Survival over timeKaplan–Meier curve
Pooled studies; publication biasForest plot; funnel plot
Age–sex structurePopulation pyramid
Components within groupsStacked (component) bar chart
Test cut-offsROC curve
Laboratory quality controlLevey–Jennings chart
  • A pictogram uses pictures for lay audiences.
  • In a histogram with unequal class widths, bar area (not height) must match frequency.
  • Graphs mislead when axes are truncated, intervals are unequal or 3-D effects distort size.

Exam trap A histogram is for continuous data with touching bars; a bar chart is for categories with gaps between bars.

Tables and frequency distributions

  • A good table stands alone: clear title, units, row and column labels, totals and source.
  • A frequency distribution table groups continuous data into class intervals and shows frequency, relative frequency (%) and cumulative frequency; the cumulative column is plotted as an ogive.

Population pyramids

  • Horizontal bars for each age group, males on one side and females on the other.
  • Broad base, narrow top (expansive): high birth rate, high mortality, young population, as in Pakistan.
  • Straight sides (stationary) or narrow base (constrictive): low fertility and ageing population, as in Japan and much of Europe.

Data handling

  • Coding categories as numbers for analysis, data cleaning and handling missing values.
  • Log transformation makes right-skewed data (triglycerides, viral load, antibody titres) closer to normal.
  • Primary data are collected by the researcher for the study; secondary data come from existing sources (records, registries, census, published studies). Combining results from several published studies is a meta-analysis of secondary data.

Sources of health data

  • Census: Pakistan counts its population about every 10 years; the 2023 census was the first digital one. A de facto census counts people where they are found; de jure counts them where they usually live.
  • Civil registration of births and deaths (incomplete in Pakistan), sample registration, hospital records, disease registers (cancer), surveys (Pakistan Demographic and Health Survey, National Nutrition Survey), notifiable disease reports.
  • Diagnoses are coded using the International Classification of Diseases (ICD-11).

How FCPS asks about this

  • Presence or absence of vomiting: nominal (binary) data.
  • ASA grade, cancer stage, pain score: ordinal data.
  • Temperature in °C: interval scale (no true zero); weight is ratio.
  • Best graph for percentages of a whole: pie chart; for comparing categories, bar chart.
  • Graph for two continuous variables: scatter plot; continuous distribution, histogram (touching bars).
  • Test for a 2 × 2 table of categorical data: chi-squared; t-test compares two means.
  • Graph showing median and IQR: box-and-whisker plot; cumulative frequency, ogive.

Test yourself on this topic

5 of the 13 questions in our bank on this topic. Choose an answer to see why every option is right or wrong.

Question 1Medium

The number of children in a family is which type of data?

Question 2Medium

Which diagram is most suitable for showing the monthly number of dengue cases in a district over three years?

Question 3Medium

How often is a national census conducted in most countries, including Pakistan?

Question 4Medium

Staging of cervical cancer as stage I, II, III or IV is which type of data?

Question 5Medium

What is the key difference between a histogram and a bar chart?

Practise all 13 questions on this topic

Where this sits in the CPSP syllabus

  • Paper 1: Biostatistics, Types of data, scales and presentation (graphs, tables)

Read next