Code Defense Lab mark

Code Defense Lab

Statistics and Data Science Education / Scatterplot Regression Defense

Adapt the same algorithm to a changed contract without throwing away the original reasoning model.

Step 4 of 5 80% Complete

Checkpoint 4

Mutation Task

This is the first transfer test. The student is no longer explaining the original algorithm; they must adapt it when the environment changes.

Enabled modules: Hotspot, Trace, Mutation, Repair

terminal

Mutation Prompt

Modify your R workflow so it safely removes incomplete rows before calling lm() or drawing the scatterplot.

Keep the original modeling logic, but change the data contract safely. A strong response makes the smallest possible fix without resetting the design.

description scatterplot_regression_defense_mutation.R
12345678910
Submit Mutation send