labvanced logoLabVanced
  • Research
    • Publications
    • Researcher Interviews
    • Use Cases
      • Developmental Psychology
      • Linguistics
      • Clinical & Digital Health
      • Educational Psychology
      • Cognitive & Neuro
      • Social & Personality
      • Arts Research
      • Sports & Movement
      • Marketing & Consumer Behavior
      • Economics
      • HCI / UX
      • Commercial / Industry Use
    • Labvanced Blog
    • Services
  • Technology
    • Feature Overview
    • Code-Free Study Building
    • Eye Tracking
    • Mouse Tracking
    • Generative AI Integration
    • Multi User Studies
    • More ...
      • Reaction Time/Precise Timing
      • Text Transcription
      • Heart Rate Detection (rPPG)
      • Questionnaires/Surveys
      • Experimental Control
      • Data Privacy & Security
      • Desktop App
      • Mobile App
  • Learn
    • Guide
    • Videos
    • Walkthroughs
    • FAQ
    • Release Notes
    • Documents
    • Classroom
  • Experiments
    • Cognitive Tests
    • Sample Studies
    • Public Experiment Library
  • Pricing
    • Licenses
    • Top-Up Recordings
    • Subject Recruitment
    • Study Building
    • Dedicated Support
    • Checkout
  • About
    • About Us
    • Contact
    • Downloads
    • Careers
    • Impressum
    • Disclaimer
    • Privacy & Security
    • Terms & Conditions
  • Appgo to app icon
  • Logingo to app icon
Learn
Guide
Videos
Walkthroughs
FAQ
Newsletter Archive
Documents
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
Guide
Videos
Walkthroughs
FAQ
Newsletter Archive
Documents
Classroom
  • 中國人
  • Deutsch
  • Français
  • Español
  • English
  • 日本語
  • Guide
    • GETTING STARTED

      • Task Editor
      • Stimulus Presentation
      • Correctness of Response
      • Objects
      • Events
      • Variables
      • Task Wizard
      • Trial System
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
    • FEATURED TOPICS

      • Randomization & Balance
      • Eye Tracking
      • Questionnaires
      • Desktop App
      • Sample Studies
      • Participant Recruitment
      • API Access
        • REST API
        • Webhook API
        • WebSocket API
      • Other Topics

        • Precise Stimulus Timings
        • Multi User Studies
        • Head Tracking in Labvanced | Guide
    • MAIN APP TABS

      • Overview: Main Tabs
      • Dashboard
      • My Studies
      • Shared Studies
      • My Files
      • Experiment Library
      • My Account
      • My License
    • STUDY TABS

      • Overview: Study-Specific Tabs
      • Study Design
        • Tasks
        • Blocks
        • Sessions
        • Groups
      • Task Editor
        • Task Controls
        • The Trial System
        • Canvas and Page Frames
        • Objects
        • Object Property Tables
        • Variables
        • System Variables Tables
        • The Event System
        • Text Editor Functions
        • Eyetracking in a Task
        • Head Tracking in a Task
        • Multi-User Studies
      • Settings
      • Variables
      • Media
      • Texts & Translate
      • Launch & Participate
      • Subject Management
      • Dataview and Export
        • Dataview and Variable & Task Selection (OLD Version)
        • Accessing Recordings (OLD Version)
  • Videos
    • Video Overview
    • Getting Started in Labvanced
    • Creating Tasks
    • Element Videos
    • Events & Variables
    • Advanced Topics
  • Walkthroughs
    • Introduction
    • Stroop Task
    • Lexical Decision Task
    • Posner Gaze Cueing Task
    • Change Blindness Flicker Paradigm
    • Eye-tracking Sample Study
    • Infant Eye-tracking Study
    • Attentional Capture Study with Mouse Tracking
    • Rapid Serial Visual Presentation
    • ChatGPT Study
    • Eye Tracking Demo: SVGs as AOIs
    • Multi-User Demo: Show Subjects' Cursors
    • Gamepad / Joystick Controller- Basic Set Up
    • Desktop App Study with EEG Integration
    • Between-subjects Group Balancing and Variable Setup
  • FAQ
    • Features
    • Security & Data Privacy
    • Licensing
    • Precision of Labvanced
    • Programmatic Use & API
    • Using Labvanced Offline
    • Troubleshooting
    • Study Creation Questions
  • Newsletter Archive
  • Documents
  • Classroom

Correctness of Response in Labvanced

In many experiments, participants are asked to respond to a stimulus—for example by pressing a key, clicking a button, or typing an answer. Correctness of response refers to whether the participant’s answer matches the expected (correct) answer.

Labvanced allows you to define what counts as a correct response and automatically evaluate participant performance.

The Big Picture

In Labvanced, response correctness is typically handled using:

  • Input elements (how participants respond)
  • Variables (store responses and correct answers)
  • Conditions / logic (compare response vs. correct answer)

The general flow looks like this:

  1. Show a stimulus
  2. Collect a response
  3. Compare response to the correct answer
  4. Store whether it was correct or incorrect

Step 1: Collecting a Response

First, you need a way for participants to respond.

Common input elements:

  • Buttons (e.g., Yes / No)
  • Keyboard input (e.g., press F or J)
  • Text fields (typed answers)

Each response is automatically stored in a Variable.

Example:

  • Button click → variable named response = stores value yes

Step 2: Defining the Correct Answer

Next, you define what the correct response should be.

There are two common approaches:

Option A: Fixed Correct Answer

  • You manually set the correct answer
  • Example: Correct answer = yes

Option B: Variable-Based Correct Answer

  • The correct answer changes per trial using data frames or the Trial System
  • Stored in a variable (e.g., correct_answer)

Example:

  • Trial 1 → correct_answer = cat
  • Trial 2 → correct_answer = dog

This is useful when using multiple stimuli.

Step 3: Comparing Response to Correct Answer

Now you check whether the participant’s response is correct.

This is done using conditions (if statements):

Example logic:

if response == correct_answer, then:
Accuracy = 1
else:
Accuracy = 0

In Labvanced, this is created visually using the logic editor (no coding required).

Step 4: Storing Correctness

The result of the comparison is usually stored in a variable such as:

  • Accuracy (1 = correct, 0 = incorrect)

This allows you to:

  • Analyze accuracy later
  • Filter trials
  • Compute performance metrics

Step 5: Providing Feedback

You can show participants whether they were correct.

Common feedback:

  • “Correct!”
  • “Incorrect”
  • Visual cues (green/red screen)

This is done by:

  • Adding a feedback frame
  • Displaying different content based on the correctness variable

Example:

  • If correct → Jump to “Correct!” frame
  • If incorrect → Jump to “Incorrect” frame

Step 6: Using Correctness in Trial Flow

Correctness can also control what happens next.

Examples:

  • Repeat trial if incorrect
  • Move on only after correct response
  • Adjust difficulty dynamically

This is done using conditional branching.

Example: Simple Choice Task

Experiment flow:

  1. Show an image (e.g., a fruit)
  2. Participant presses a key:
    • F = Apple
    • J = Banana
  3. Compare response to correct answer
  4. Show feedback
  5. Next trial

In Labvanced:

  • Store correct answer per trial
  • Capture key press
  • Compare using logic
  • Save correctness

Tips for Beginners

  • Keep variable names clear (response, correct_answer, correctness)
  • Test your logic with a few trials
  • Use simple conditions before building complex ones
  • Double-check that response formats match (e.g., text vs. key codes)

Summary

Correctness of response in Labvanced involves:

  • Collecting responses (buttons, keys, input)
  • Defining correct answers (fixed or variable)
  • Comparing responses using logic
  • Storing results for analysis
  • Providing feedback to participants

Essentially, the approach you should pick depends on the task you are designing. If you need a suggestion, please reach out to our support!

Once set up, Labvanced automatically tracks accuracy, making it easy to analyze participant performance.

Prev
Stimulus Presentation
Next
Objects