Computer Engineering 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.

Interaction design vs UX

Clear, exam-focused notes that contrast Interaction Design and User Experience (UX) within pervasive computing, with laws (Fitts, Hick, KLM), definitions, formulas, worked examples, common mistakes and exam guidance.

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

Engineers design pervasive systems (smart devices, wearables, context-aware environments) where users interact continuously. Understanding Interaction design and User Experience (UX) helps engineers build interfaces that are easy to use, safe, and fit real-world contexts — reducing errors, improving adoption and meeting non-functional requirements in pervasive computing.

Key ideas

Start simple: define each main term before using it.

  • Interaction design: the process of defining the structure and behaviour of interactive systems so people can complete tasks with them. This includes designing the layout of controls, the sequence of actions, feedback, and constraints that guide user actions. (Use: designing screens, gestures, voice prompts on pervasive devices.)

  • User Experience (UX): the user's overall perceptions and responses that result from using or anticipating the use of a product, system or service. UX covers usability, usefulness, accessibility, emotional response, and the context of use. UX is broader than interaction design: interaction design is one contributor to UX.

  • Usability: the degree to which an interactive product can be used by specified users to achieve specified goals with effectiveness, efficiency and satisfaction in a specified context of use. Define: effectiveness = accuracy/completeness of goals; efficiency = resources (time) used; satisfaction = comfort and acceptability.

  • Affordance: a property of an object that enables or suggests possible actions (e.g., a button affords pressing). Distinguish from signifiers: signifiers communicate the affordance to the user (e.g., label, highlight). Bold when used: Affordance.

  • Feedback: information returned to the user about what action has been done and what has been accomplished.

  • Context of use: all factors that define where, when, how and by whom a device is used (physical environment, social setting, user goals, device constraints). In pervasive computing this links directly to the topics Context and context-aware computing and Mobility, spatial and temporal awareness.

Important laws and models used in interaction design (exact statements):

  • Fitts' Law (for pointing tasks). Exact statement: "Movement time for a rapid, aimed movement is a linear function of the logarithm of the ratio between target distance and target width." Formally written as: MT = a + b·log2(2D/W). Assumptions: single rapid movement to a target, motor control dominates, target and start positions fixed, movement is visually guided.

  • Hick's Law (for choice reaction time). Exact statement: "Decision time increases with the logarithm of the number of stimulus–response alternatives." Formally: T = a + b·log2(n + 1). For equiprobable choices many texts also use T = a + b·log2(n); the +1 variant is common in HCI to better fit small n. Assumptions: choices are equally probable and independent; decision stage dominates; simple mapping from stimulus to response.

  • Keystroke-Level Model (KLM). Exact statement: "Execution time for expert users performing routine tasks can be estimated by summing fixed times for primitive operators (mental preparation, key presses, pointer movements, homing, system response) applied in sequence." Primitive operators usually listed: K (keystroke or button press), P (pointing with a pointer device), H (homing: moving hands between devices), D (drawing), M (mental preparation), R(t) (system response/wait, duration t depends on the system). Assumptions: user is an expert, error-free, no learning time, operators are atomic and sequenced.

How to draw diagrams (if asked in exams):

  • For Fitts' Law: draw a horizontal line from a start point to a rectangular target at distance D; label D (distance from start centre to target centre) and W (target width measured along movement axis). Label arrow for movement direction and annotate start and target.
  • For Interaction design vs UX: draw two overlapping circles (Venn diagram). Left circle label Interaction design (structure, controls, feedback, constraints). Right circle label UX (usability, emotions, accessibility, context, business). Overlap label common items: usability, feedback, affordances.

Connections to pervasive computing topics: interaction design and UX must consider constraints of Pervasive devices, interfaces and connectivity, Wearable and handheld devices (small screens, limited input), Voice-enabled pervasive computing (few or no visual signifiers), and Context and context-aware computing (interfaces adapt to context). Do not re-teach those topics here — reference them when relevant.

Formulas

MT = a + b·log2(2D / W)

  • MT = movement time (seconds), a,b = empirically determined constants (seconds), D = distance to target (metres), W = target width along movement axis (metres). Applies to rapid aimed pointing tasks (see Fitts' Law).

T = a + b·log2(n + 1)

  • T = decision time (seconds), a,b = empirically determined constants (seconds), n = number of choices (dimensionless). Applies to simple choice reaction situations (Hick's Law).

T_total = Σ t_i (KLM sum)

  • T_total = estimated execution time (seconds), t_i = time for each primitive operator (seconds), operators include K (keystroke), P (point), H (home), M (mental), R (system response). Applies to modelling expert, error-free task performance.

Notes on units: time values in seconds (SI unit). Distances in any consistent length unit (e.g., metres, millimetres, pixels) because D/W is dimensionless—just be consistent or convert. Log is base 2 in the above laws.

Worked examples

Example 1 — Fitts' Law numeric (university exam style): Given: distance D = 0.20 m, target width W = 0.02 m, suppose a = 0.10 s and b = 0.15 s for this device (these a and b are given for the problem). Calculate movement time MT.

  1. Formula: MT = a + b·log2(2D / W).
  2. Compute index: 2D / W = 2·0.20 / 0.02 = 20.
  3. log2(20) = 4.3219 (approx).
  4. MT = 0.10 + 0.15 · 4.3219 = 0.10 + 0.648285 = 0.748285 s. Final answer: MT ≈ 0.75 s.

Example 2 — Hick's Law numeric: Given: number of choices n = 8, a = 0.05 s, b = 0.15 s (given). Compute decision time T.

  1. Formula: T = a + b·log2(n + 1).
  2. n + 1 = 9, log2(9) = 3.1699.
  3. T = 0.05 + 0.15 · 3.1699 = 0.05 + 0.475485 = 0.525485 s. Final answer: T ≈ 0.53 s.

Example 3 — Theory model answer: "Compare interaction design and UX for a wearable health monitor in a hospital ward." (exam style long note)

  • Start with definitions (as above). Say interaction design focuses on the device controls (single-button, swipe, voice), feedback (LED, vibration, voice), safety constraints (avoid accidental input when patient moves); UX includes emotional comfort (non-intrusive), accessibility (for staff wearing gloves), context-aware behavior (adjust brightness based on lighting).
  • Explain trade-offs: minimal controls (good for simplicity) vs discoverability (may hurt learnability); voice control good for hands-free (connect to Voice-enabled pervasive computing) but fails in noisy wards.
  • Conclude with recommended approach: iterate prototypes with clinicians, measure usability (efficiency, effectiveness) and emotional responses, use KLM for expert paths and Fitts' Law to size touch targets. This answer should reference context-awareness and device constraints, then finish with a short design checklist.

Common mistakes

  • Forgetting units (use metres for D and W when using SI) or mixing mm and metres without conversion.
  • Applying Hick's Law when choices are not independent or are visually grouped (violates assumptions).
  • Treating KLM times as universal constants — they are empirical and device-dependent; state assumed values when used.
  • Omitting context of use in answers for pervasive computing (must mention environment, mobility, social factors).
  • Drawing diagrams without labels (always label D, W, start/target and axes).
  • Using log base 10 instead of log base 2 in Fitts' or Hick's laws. Also, ignoring accuracy/error rate when applying Fitts' Law—either keep error rate constant across conditions or use effective width (We) and effective index of difficulty (IDe).

For your exam

Kinds of questions you will get: definitions, short notes, derivations, applying laws to compute times, design-describe-justify questions, diagram drawing, and comparison essays. What a full-marks answer includes:

  • Definitions written exactly and clearly (Interaction design vs UX).
  • Explicit assumptions before applying any law or model (e.g., expert user for KLM; equally probable choices for Hick's Law; rapid pointing for Fitts' Law).
  • Correct formulas with units, and labelled diagrams where required.
  • For numeric problems: show steps, substitute units, carry units through, round final answer appropriately and state final unit.
  • For design questions: mention context (link to other course topics like Context and context-aware computing, Wearable and handheld devices), trade-offs, and testing/validation methods (usability testing, prototypes).

Quick check

  1. Define Interaction design in one sentence.
  2. Write Fitts' Law formula and what W means.
  3. Name two primitive operators in the Keystroke-Level Model. Answers: 1) The process of defining structure and behaviour of interactive systems so people can complete tasks with them. 2) MT = a + b·log2(2D / W); W is target width measured along the movement axis (metres). 3) K (keystroke/button press), P (pointing).

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

Stuck on something here?