Exercise: Turn an analysis into a claim a reader can check#

Prepare a short results brief for a colleague deciding whether word frequency is useful for predicting reaction time in new participants. Distinguish that prediction task from a claim about changing a person’s vocabulary.

See the shared submission guidance and rubric. Run from book/exercises; the setup below supplies data, not completed answers.

# Shared simulator and small utility functions; no live service is called.
source("../R/course.R")
d <- simulate_trials(seed=125,n_subjects=36,n_items=24)
split <- split_groups(d$subject,seed=125)
train <- d[split$train, ]; test <- d[split$test, ]

1. Build the evidence behind the headline#

Compare a training-mean baseline, a length-only linear model, and a length+frequency linear model on the same participant holdout. Report MSE and RMSE with their different units. State that items overlap and the data are synthetic. Keep the simplest baseline in the report even if it loses.

# Fit the three declared procedures and produce held-out metrics.

Your explanation and evidence:

2. Connect each sentence to a result#

Create a claim ledger with columns claim, numerical/graphical support, source object or code cell, and limitation. Include one descriptive claim, one prediction claim, and one causal claim that the analysis cannot support. Replace the unsupported claim with a question for a future study.

# Assemble the ledger and any additional summary needed for its claims.

Your explanation and evidence:

3. Write and revise the brief#

Write a 250–350 word brief with one figure and a self-contained caption. Use a headline that the evidence warrants, report the baseline comparison, and include the new-item limitation. Audit every number against an object in the notebook. Include a short revision note showing one claim you narrowed after checking the evidence.

# Generate the final figure and mechanically check the numbers quoted in the brief.

Your explanation and evidence:

What to submit#

A model-comparison table, claim ledger, and 250–350 word illustrated brief. Assess readability and traceability as well as statistical accuracy.