Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Think Like a PhD Student

Free · sign in to start and track progress

1 · Asking the question

  • 1The cycle and the question
  • 2Reading and searching the literature
  • 3Measuring what matters

2 · Designing and running the study

  • 4Designing the experiment
  • 5Pre-registration and trials

    Exercise answers

    • Answer: Write and tag the pre-registration
    • Answer: Build a blind paired review
  • 6Open coding of failures
  • 7Running an annotation study

3 · Trusting and telling

  • 8Reproducibility and research hygiene
  • 9Analysis and honest reporting
  • 10Writing it up and peer review
CapstoneA small study on the triage agentReference implementation

Module 2 · Designing and running the study · Lesson 5

Pre-registration and trials

Freeze the hypotheses, metrics and exact analysis before the first run, see how forking paths and hypotheses written after the results produce findings that don't hold, blind whoever judges the outputs, and decide when an offline study is enough and when a live trial is justified.

80 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvThe Quillmoor triage kit

By the end of this lesson you can

  • Write a pre-registration field by field (status, hypotheses, outcomes, conditions, sample, exclusions, analysis, stopping rule, exploratory plans, what would change your mind) and timestamp it with a git tag before the first run
  • Explain the garden of forking paths and HARKing, and recognise each in an agent-evaluation example
  • Report a study with the confirmatory result first, exploratory work labelled, and every deviation from the plan listed
  • Design a blind paired review of two conditions' outputs and say which biases the blinding and the randomised order remove
  • Decide whether a change needs only an offline study or also an online trial, and fix the trial's stopping rule in advance

On this page

  • The garden of forking paths
  • HARKing
  • The pre-registration, field by field
  • Revisions are free until the tag
  • Timestamping it
  • Confirmatory first, exploratory labelled
  • Trials: randomisation, blinding and stopping
  • Blind paired review
  • When an online trial is justified
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01The garden of forking paths
  2. 02The pre-registration, field by field
  3. 03Confirmatory first, exploratory labelled
  4. 04Trials: randomisation, blinding and stopping
  5. 05When an online trial is justified
  6. 06Connections
  7. 07Summary

Sources & further reading

  • Preregistering NLP ResearchPaper · van Miltenburg, van der Lee, Krahmer · 2021The case for pre-registration in language-technology research, with the AsPredicted questions, a qualitative variant whose stopping rule can be saturation, and NLP-specific questions for experiments and error analyses (Tables 1 to 3). Section 4 introduces registered reports.
  • The garden of forking paths: Why multiple comparisons can be a problem, even when there is no "fishing expedition" or "p-hacking" and the research hypothesis was posited ahead of timePaper · Gelman, Loken · Columbia University · 2013The paper that named the problem. Section 1 is the argument that a single, honestly chosen analysis can still be one of many the data would have led you to; the examples that follow are from psychology and political science, and the logic carries over unchanged.
  • A Two-Sided Discussion of Preregistration of NLP ResearchPaper · Søgaard, Hershcovich, de Lhoneux · 2023The counter-arguments, written as a dialogue: pre-registration may bias a field towards confirmatory work, must allow reclassifying a study as exploratory, and can still be gamed. Read it to know where the practice is weak.
  • Questionable practices in machine learningPaper · Leech, Vazquez, Kupper, Yagudin, Aitchison · 2024A catalogue of 44 questionable research practices in model evaluation, with LLM examples. Section 3.2.8 (prompt hacking) and section 3.4.1 (fishing and HARKing) are the ones this lesson's examples come from.
  • HARK Side of Deep Learning: From Grad Student Descent to Automated Machine LearningPaper · Gencoglu et al. · 2019Short and pointed on hypothesising after the results are known in machine learning, and on why trial-and-error followed by a story is not a test. Sections 1 and 2.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 7 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks