E14 Check Bounded Table Sample against Saved Contract
Use your current course session. Preparation and course runner · R script ↓
E14 Check Bounded Table Sample against Saved Contract
Goal: Check a deliberately bounded sample.
Prerequisites: E12; policies and bad_policies in the workspace.
MANUAL: Select the saved contract, run DataRaft: Check Bounded Table Sample against Saved Contract and choose a table. Try policies, then bad_policies.
training_step(
"E14",
{
print(nrow(policies))
},
needs = c("E12"),
enabled = training_options$gui,
optional = TRUE
)Expected result: Counts for a bounded sample. The H04 contract has no nonnegative rule, so a negative premium need not fail.
Task: Why can bad_policies pass this structural contract?