To prepare for an Anthropic Data Scientist interview, practice turning an AI product change into an outcome you can measure at the right grain. For a shared Claude Artifacts feature, define useful work before opening the event table. Assign treatment at the workspace level, keep inactive workspaces in the denominator, and say what would make you hold the change even if artifact creation rises.
Anthropic’s Data Scientist, Product listing describes forming hypotheses, applying controlled experiments and other causal methods, and turning analysis into product recommendations. Claude’s public product documentation describes Artifacts as a place to create and work with standalone outputs alongside a conversation. The scenario below is an original exercise using that product surface. It complements the Anthropic Data Scientist practice bank. Anthropic product role · Claude Help Center
Where does the product evidence end?
The public posting tells you the work values a causal question, a way to analyze it, and a decision. It gives you a reason to bring relevant work examples. It does not tell you the format, topic, or scoring rules of a current interview. A PracHub account from a Data Scientist applicant describes a recruiter conversation. It offers no corroboration of a technical assessment. Recruiter-screen candidate account Use the existing guide for broader prep and ask the recruiter about the exact exercise. Anthropic Data Scientist guide
The feature here is fictional. An eligible Claude workspace would see a “Resume work” entry point for an existing artifact. The proposal is to surface it where collaborators start new work. Assume the workspace has a supported artifact workflow and an appropriate collaboration plan. The experiment evaluates whether surfacing an existing artifact helps people return to a piece of work that can be useful again.
What is a good product metric for returning to an artifact?
Define success as the workspace having at least one eligible artifact receive a meaningful follow-up action on a later day of its first seven complete UTC days after assignment. In this exercise, an edit or export serves as the proxy. A page view cannot distinguish successful work from a user looking for something. A repeated open in one tab also tells you little. Ask the product team whether those actions actually correspond to useful completion. An edit can be a correction after failure, so validate the proxy with authorized research or complementary signals.
Choose one workspace as the unit of analysis. Workspaces differ greatly in seat count, and a weighted member-level rate can be dominated by a handful of large accounts. A workspace-weighted primary metric measures whether the feature benefits more workspaces. Add a predeclared seat-size breakdown and a member-level diagnostic if you need to understand who benefited. Keep the denominator of each explicit. A member can share an artifact within a team and change what their colleagues see.
The metric should span the old and new paths. If you only log “Resume work clicked,” control workspaces have no way to succeed under that definition. Capture the meaningful action itself and the route to it as separate fields. Standardize deduplication and event names across paths. A successful launch can change the route people use without increasing total useful work.
Why can the assignment denominator reverse the result?
Randomize at the workspace because the treatment changes a shared feature and teammates may affect each other. Keep assignment stable across sessions and invitations. Select eligibility using information measured before assignment, and write it into the exposure contract. A common temptation is to compare only workspaces that opened an artifact. Opening is a consequence of the treatment. Conditioning on it can compare fundamentally different groups.
| Assigned arm | Eligible workspaces | Opened an artifact | Returned for meaningful work | Per opener | Per eligible assignment |
|---|---|---|---|---|---|
| Control | 1,000 | 200 | 80 | 40% | 8% |
| Treatment | 1,000 | 400 | 120 | 30% | 12% |
Under these fictional counts, follow-up per opener fell 10 points while follow-up per assigned eligible workspace rose 4 points. The treatment might have helped more workspaces reach the action by drawing in users with lower initial intent. The intent-to-treat estimate addresses offering the entry point, including whether people use it. The conditional result is a diagnostic. It cannot establish that the entry point made any opener less likely to return.
Some workspaces may share users across orgs, creating spillover even with workspace randomization. Check how common that is before choosing exclusions or a larger grouping. If you rerandomize, decide before observing outcomes. For an experiment already running, explain the likely contamination and make a narrower interpretation. An assignment cluster creates dependence among people inside it and should inform both sample planning and inference.
How do you express the cohort in SQL?
Use an eligibility-stamped assignment table with one row per workspace for this experiment. The example uses integer UTC day indices to keep the cohort boundary inspectable. start_day is the first complete day after assignment, and complete_before_day is the earliest UTC day with incomplete event coverage, supplied from your data quality checks. Define a valid return as an edit or export on a later day for an artifact opened during the window. Assume events are deduplicated on stable event IDs upstream.
WITH mature AS (
SELECT workspace_id, arm, start_day
FROM workspace_assignment
WHERE eligible = 1 AND start_day + 7 <= :complete_before_day
),
opened AS (
SELECT m.workspace_id, e.artifact_id, MIN(e.utc_day) AS first_day
FROM mature m
JOIN artifact_events e ON e.workspace_id = m.workspace_id
WHERE e.action = 'open'
AND e.utc_day >= m.start_day AND e.utc_day < m.start_day + 7
GROUP BY m.workspace_id, e.artifact_id
),
returned AS (
SELECT DISTINCT m.workspace_id
FROM mature m
JOIN opened o ON o.workspace_id = m.workspace_id
JOIN artifact_events e ON e.workspace_id = o.workspace_id
AND e.artifact_id = o.artifact_id
WHERE e.utc_day > o.first_day AND e.utc_day < m.start_day + 7
AND e.action IN ('edit', 'export')
)
SELECT m.arm, COUNT(*) AS workspaces,
COUNT(r.workspace_id) AS returns,
1.0 * COUNT(r.workspace_id) / COUNT(*) AS return_rate
FROM mature m
LEFT JOIN returned r ON r.workspace_id = m.workspace_id
GROUP BY m.arm
The final left join preserves eligible workspaces with no opening or return. A later action for another artifact cannot match the original artifact key. A cohort with only six complete event days does not enter either count. For a real analysis, qualify events by the allowed feature surface and event purpose, handle late data consistently across arms, and check assignment uniqueness before joining. If someone needs a rolling 168-hour metric, change the event boundaries and explain the new difference from complete calendar days.
Test where the SQL could count the wrong workspace. Verify that an unexposed eligible workspace contributes to the denominator, that a subject with multiple qualifying edits counts once, and that an exact end-boundary event is excluded. Check that assignment counts match the planned allocation within expected uncertainty. A change in event delivery volume by arm can mimic treatment effects.
What guardrails could make you stop?
Separate product friction from data integrity and permissions. For the first, monitor artifact open latency, redirects into dead ends, and failures when collaborators act. For integrity, monitor event completeness, missing workspace IDs and timestamp delays by arm. For permission, assert that the entry point honors the underlying access control and that telemetry describes the action without copying artifact contents. A confirmed access failure is a reason to pause immediately and bring in the owners of the feature.
Set practical thresholds before you look at arm outcomes. The figure 12% versus 8% is insufficient by itself. You need uncertainty at the randomization unit and evidence that the event stream measures the same action in both experiences. If treatment increases export because people cannot continue in the editor, the underlying experience may be worse. Investigate support contact reasons or the success of downstream actions with approved metadata, and distinguish exploratory slices from decisions planned ahead.
If the rollout cannot randomize, propose a comparison design only after identifying why. For example, regions with staggered releases may support a controlled observational comparison. Examine pre-period trends, concurrent product changes and whether the rollout assignment reacts to performance. You can describe how a synthetic control would use suitable donor series. State which assumptions remain untestable and lower the certainty of your recommendation.
How would you validate the measurement before randomizing?
Run the event contract through a small sequence with synthetic actors first. An owner makes an artifact on day one, a teammate opens it on day two, and a different teammate edits the same artifact on day three. For the workspace metric, that counts once even though no single actor did all three actions. If the product question is instead whether the same person returns, include a stable actor key in the join and define privacy and retention for it. Write both interpretations down before adding fields.
In a preflight or A/A check, run the same interface for both randomly assigned groups. Verify that events remain available to the authorized pipeline, that active and inactive workspaces coexist in the output, and that the join returns only one assignment row per workspace. A null artifact identifier should be visible as a logging defect. If it appears more often for invited teammates, a future difference in collaborator activity may be hard to interpret. Revisit the event contract before exposing users to a version that alters collaboration.
The same exercise can support qualitative research without inspecting the content of a conversation. Ask what outcome people returned to accomplish and whether they were interrupted by the new surface. Keep access and purpose clear at the point of collection. Qualitative evidence can help explain an observed pattern in the metric. It gives you a reason to refine the experiment, not a numerical substitute for the planned comparison.
Estimate power at the workspace level before choosing a calendar end. Check how many eligible workspaces enter per week, the historic return rate under the same metric, and the smallest lift that would justify keeping the entry point. A seven-day observation horizon means the last cohort requires a full additional week before the final data cut. A company might enroll many users in a small number of large workspaces. Those users can help explain behavior within their workspace, while the number of independently assigned workspaces still limits precision.
How do you give a decision in the interview?
Lead with the outcome and the unit. Then state the cleanest reason the team should trust your result, such as matching assignment counts and a completed cohort. Tie the technical caveat to a concrete action. In this scenario, if the ITT difference is favorable and the guardrails pass, consider extending to another workspace size with explicit monitoring. If cohort data is unfinished or a permissions failure is unresolved, hold. Offer a check that could remove the hold.
For a past project, bring one example where product asked you to measure adoption and you had to define an outcome. Draw the actual keys and timing. Be ready to explain why you accepted one proxy, what it misses, and which stakeholder used the result. If you observed only an association, put the claim in those terms. Specific distinctions between assignment, exposure, and outcome are more credible than a confident claim that an experiment “worked.”
Practice with PracHub
These exercises train the underlying skills. They are practice material and do not establish the questions you will get at Anthropic.
| PracHub practice question | Focus for your rehearsal |
|---|---|
| Monthly Cohort Retention | Name the cohort unit and time window |
| Define and compute retention and churn precisely | Separate activity, retention and eligible membership |
| Design a clustered notification experiment with guardrails | Select a cluster and defend guardrails |
| Success Metrics for a Feature at Launch: North Star, Guardrails and Experiment Plan | Define an outcome for a newly exposed surface |
| Estimate a Launch Impact with Difference in Differences | Discuss selection and pre-period trends |
Open the Anthropic Data Scientist practice bank, then rehearse the artifact case using a second metric definition. Ask a partner to point out where your new numerator or denominator changes the decision.


Top comments (0)