Artificial Intelligence & Data Science is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

User research and personas

User research discovers real users, their needs and behaviour; personas are compact, evidence-based fictional users derived from research to guide design decisions.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

User research tells engineers who will use their system, what those users need, and what tasks they must support. Personas (fictional, evidence-based user archetypes) help engineers make consistent design choices, write requirements, and communicate assumptions to teammates and stakeholders.

Key ideas

Start with definitions (I define each term before using it):

  • User research: a set of methods to gather evidence about real users' goals, behaviour, context, needs and pain points. It includes qualitative methods (interviews, observation) and quantitative methods (surveys, analytics).
  • Qualitative research: exploratory, collects non-numeric data (words, descriptions). It is used to discover motivations, context and detailed problems. Typical assumption: small, purposive samples and depth over breadth.
  • Quantitative research: gathers numeric data to measure how common behaviours or attitudes are. It assumes representative samples or tracked large datasets for generalisation.
  • Primary research: you collect data directly (interviews, surveys you run). Secondary research: you analyse existing sources (reports, analytics).
  • Sampling: process of selecting participants. Probability sampling (each member of population has known chance to be selected) supports statistical generalisation. Non-probability sampling (convenience, purposive) is common in UX and supports exploratory insights.
  • Saturation: in qualitative research, the point when new interviews add little new information. This is a practical stopping rule, not a strict statistical law.
  • Persona: a compact, fictional character that represents a cluster of real users with common goals, behaviours, needs and pain points. A persona must be labelled with source evidence (number of interviews, key quotes) and show demographics, goals, frustrations, context of use and technical comfort.

Exact statements often required in university answers:

  • When you claim statistical generalisation from a survey, you must state the sampling method (probability vs non-probability), sample size and confidence level. Without probability sampling, do not claim population-level inference.
  • Persona validity: A persona is valid for design only if it is grounded in user data; the minimum evidence shown should include the number of participants that formed the cluster and the key supporting quotes or metrics.

Derivation commonly asked: sample size for estimating a proportion with given confidence and margin of error. Steps to derive (full derivation universities expect):

  1. Start with approximate normal-based confidence interval for a proportion p (assuming large n and that np̂ and n(1−p̂) are both ≥ 5): CI ≈ p̂ ± Z·sqrt(p̂(1−p̂)/n).
  2. Margin of error E = Z·sqrt(p(1−p)/n). Solve for n: n = (Z²·p(1−p))/E².
  3. For planning when p unknown, use worst-case p = 0.5 to maximise p(1−p) = 0.25. Assumptions: sampling is independent and random; normal approximation holds (large n). If population is small, apply finite population correction.

Diagrams to draw in exam answers (describe exactly):

  • User research process flowchart: draw a horizontal flow of boxes labelled: Define goals → Choose methods → Recruit participants → Collect data → Analyse data → Create artefacts (personas, journey maps) → Validate. Add arrows left to right and label each box.
  • Persona card layout: draw a rectangle. Top-left: small circle labelled "photo placeholder". Top-right: bold name and role. Below: three columns/rows with labels: Age, Occupation, Tech comfort (scale 1–5). Next section titled "Goals" (3 bullet lines), next "Frustrations" (3 bullet lines), next "Context/Scenario" (short paragraph), footer: "Evidence" listing number/type of interviews and a quoted user sentence.

Ethics and practical constraints: always state informed consent, data privacy, and recruitment fairness. These are part of validity and may be asked in exams.

Formulas

CI = p̂ ± Z * sqrt( p̂ * (1 - p̂) / n ) — where p̂ is sample proportion (unitless), Z is z-score for chosen confidence (unitless), n is sample size (count). Applies for large-sample normal approximation. Common Z: 90% = 1.645, 95% = 1.96, 99% = 2.576.

E = Z * sqrt( p * (1 - p) / n ) — where E is margin of error (unitless proportion). Use when planning required precision.

n = (Z^2 * p * (1 - p)) / E^2 — where n is required sample size (count, unitless). Use to compute survey sample size given desired E and confidence.

SE = sqrt( p̂ * (1 - p̂) / n ) — standard error of a proportion (unitless). Use in hypothesis testing and CIs.

Note: proportions are unitless (no SI unit). Z is unitless. These formulas apply when sampling is random and np̂ and n(1−p̂) are both at least about 5 (rule-of-thumb). For small populations use finite population correction: multiply variance by (N-n)/(N-1). Equivalently, standard error is multiplied by sqrt((N-n)/(N-1)), and a common adjusted sample size formula is n_adj = n0 / (1 + (n0 - 1)/N), where n0 is the uncorrected size.

Worked examples

Example 1 — Compute sample size for a survey Question: You want a 95% confidence survey with margin of error E = 5% (0.05). Use worst-case p = 0.5. What sample size n is needed? (Use Z = 1.96 for 95%.) Steps:

  1. Write formula: n = (Z^2 * p * (1-p)) / E^2.
  2. Substitute numbers: Z = 1.96, p = 0.5, E = 0.05.
  3. Compute numerator: Z^2 * p * (1-p) = 1.96^2 * 0.5 * 0.5 = 3.8416 * 0.25 = 0.9604.
  4. Compute denominator: E^2 = 0.05^2 = 0.0025.
  5. n = 0.9604 / 0.0025 = 384.16.
  6. Round up to next whole person: n = 385. Final answer: 385 participants required.

Example 2 — Calculate a 95% confidence interval from survey data Question: In a usability survey of n = 400 users, 240 prefer option A. Compute the 95% CI for the proportion who prefer A. Steps:

  1. p̂ = 240/400 = 0.60.
  2. SE = sqrt( p̂(1−p̂)/n ) = sqrt(0.6*0.4/400) = sqrt(0.24/400) = sqrt(0.0006) ≈ 0.024495.
  3. Margin = Z * SE = 1.96 * 0.024495 ≈ 0.0480.
  4. CI = 0.60 ± 0.0480 → (0.552, 0.648). Final answer: 95% CI = (0.552, 0.648), i.e. 55.2% to 64.8%.

Example 3 — Creating a persona from qualitative interviews (model answer) Question: You conducted 10 contextual interviews about a campus app. Sketch how to convert notes to one persona. Model steps:

  1. Affinity mapping: write each observation on a card and group similar observations (e.g., "forgets schedules", "uses phone between lectures").
  2. Identify clusters and name one cluster (e.g., "time-poor commuter student").
  3. Fill persona template: Name: "Ravi, 22, Day-scholar (B.E. 3rd year)". Goals: "arrive on time, minimise app steps to check timetable". Frustrations: "too many clicks, unclear notifications". Tech comfort: "medium (uses WhatsApp and apps daily)". Evidence: "derived from 7 interviews where commuting students mentioned being late; supporting quote: 'I open three apps just to check today's schedule.'"
  4. Validate: show persona draft to two participants from original set; revise language to match real quotes. Final answer: Provide completed persona card and supporting evidence; mention validation.

Common mistakes

  • Not rounding up sample size (you must round up, not down).
  • Creating personas without citing the user data (number of interviews, sources) — then they are just stereotypes.
  • Confusing qualitative saturation with a fixed numeric rule; saturations vary by topic and method.
  • Forgetting to state confidence level when reporting margins of error or CIs.

For your exam

Types of questions you will see: definitions (define persona, user research), short notes (compare qualitative vs quantitative), derivations (derive sample-size formula), numericals (compute n or CI), diagrams (draw persona card or process flow), and case-style answers (choose methods for a project and justify). What a full-marks answer includes:

  • Precise definitions using bold terms where appropriate.
  • Clear statement of assumptions (sampling method, normal approximation, confidence level).
  • Correct derivation with algebraic steps for formulas.
  • For diagrams: labelled boxes and short captions explaining each element.
  • When asking for personas: show persona fields plus evidence and validation steps.

Quick check

  1. What is a persona? (one sentence)
  2. Which sampling method allows unbiased statistical generalisation? (one term)
  3. For a 95% CI and margin of error 3% with p unknown, what p should you use when planning sample size? Answers: 1. A persona is a fictional, evidence-based user archetype that represents a group of real users with shared needs and behaviours. 2. Probability sampling. 3. Use p = 0.5 (worst-case) when p is unknown).

Notes for the reviewer: I aimed for clear exam-style derivations and practical advice. I flagged uncertain items below.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?