Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Learn through experiments

Repair a messy event log

Which rows are observations and which are recording errors?

Entering midway? Revisit Who answered the survey? for the preceding worked example, or start here and use the explanation below.

1 · Try

Start with a concrete question

Six original synthetic service records contain one repeated event ID, one missing duration and one impossible negative duration. The trace shows every row.

Try the initial inputs, then write a prediction before changing one setting. All calculations run locally on your CPU.

Go directly to the experiment · Review basic mathematics

2 · Predict

What do you expect?

Predict whether replacing missing with zero makes service appear faster.

3 · Experiment

Change one thing. Inspect what happens.

  1. Disable all repairs and inspect each source row.
  2. Enable duplicate and validity checks separately; name the contract each enforces.
  3. Compare excluding missing with inserting zero. Write a data-quality note before quoting the mean.
Experiment inputs
Inputs
Your settings
Mechanism
Calculation below
Evidence
Compare outcomes
Mean recorded duration20 minutes
Rows used3
Missing rows in source1

Compare the current results

Every bar starts at zero and uses the same numeric scale in this chart. The upper bound automatically adjusts to the largest current value (at least 1), so compare the numbers when changing inputs. Units and quantities come from each label; different kinds of quantity are not interchangeable. Displayed values are rounded to at most six significant digits.
030
  • Row 1: magnitude of duration10
    Row 1: magnitude of duration: 10Horizontal bar from zero to 10, on the shared zero to 30 numeric axis.
  • Row 2: magnitude of duration20
    Row 2: magnitude of duration: 20Horizontal bar from zero to 20, on the shared zero to 30 numeric axis.
  • Row 3: magnitude of duration30
    Row 3: magnitude of duration: 30Horizontal bar from zero to 30, on the shared zero to 30 numeric axis.

Follow the calculation

  1. a: keep 10 minutes.
  2. b: keep 20 minutes.
  3. c: keep 30 minutes.
  4. c: duplicate event excluded.
  5. d: missing duration excluded from mean, retained as missing in audit.
  6. e: negative duration quarantined.
  7. Retained sum 60 / 3 rows = 20 minutes.

Repair according to a documented contract. Missing is not zero, and duplicate records are not independent new events.

Repair an editable event table

Keep a copy of the original rows in your notes. Remove the repeated event c, quarantine the negative duration, and decide how to represent missing d without inventing zero. Inspect the table after editing and explain every deletion. The inspector validates numeric cells, not event identity or the wisdom of a repair.

44/8,000 characters. Drafts save locally and are included in backups. Importing or opening a draft never runs it.

Compare with my earlier draft
event_id,minutes
a,10
b,20
c,30
c,30
d,
e,-5

Explain what you changed and why in your observation notes. Text differences do not establish quality.

Inspect an example solution after your attempt
event_id,minutes
a,10
b,20
c,30

This is one worked example. Test another input and explain its limitations.

Captures keep your inputs, prediction and observation. Results are recalculated from those inputs. Resetting inputs keeps your captures and challenge history.

4 · Understand

Explain the mechanism

Repair a messy event log

Six original synthetic service records contain one repeated event ID, one missing duration and one impossible negative duration. The trace shows every row.

Predict before changing inputs

Predict whether replacing missing with zero makes service appear faster.

Understand the mechanism

An observation is an event, not necessarily a row. Repeated ID c represents the same event and must not gain extra weight.

With duplicate and negative checks enabled and missing excluded, valid values are 10, 20, 30: mean 60/3 = 20 minutes. Zero-filling the missing record gives 60/4 = 15.

Quarantine means retain a rejected record for investigation rather than silently rewriting it. This fixed fixture remains visible in the trace.

Calculate it yourself

Mean = retained sum / retained row count. Valid duration ≥ 0; one row per event ID.

Guided investigation

  1. Disable all repairs and inspect each source row.

  2. Enable duplicate and validity checks separately; name the contract each enforces.

  3. Compare excluding missing with inserting zero. Write a data-quality note before quoting the mean.

Assumptions and limitations

  • Event identities and the meaning of negative durations are known here. A real repair must consult the data contract.

  • Excluding missing rows can still bias an estimate. No repair creates the absent measurement.

Further investigations

High school: Audit an invented school activity log and list exclusions.

College: Implement a validator retaining raw rows, reason codes and a clean view.

Working professionals: Prepare a dashboard data-quality specification with missingness counts and owners.

Your implementation or data task

Keep a copy of the original rows in your notes. Remove the repeated event c, quarantine the negative duration, and decide how to represent missing d without inventing zero. Inspect the table after editing and explain every deletion. The inspector validates numeric cells, not event identity or the wisdom of a repair.

Use the editable workspace on this page. Its output is practice evidence; explain why it satisfies the contract and test a fresh case.

Optional public-data follow-up

The existing local Iris CSV contains 150 plant-measurement rows from Fisher (1936), distributed by UCI under CC BY 4.0. Read the supplied attribution before reusing it. Its row IDs were generated for this site; they are not biological specimen IDs. The existing data-quality lesson introduces synthetic teaching alterations in memory and labels them as alterations, not original source defects.

Download local Iris CSV · Attribution and alteration notes · Work through its data-quality investigation

5 · Apply

Try a fresh case

New valid records are 5, 15, 25, with one missing row. If you exclude missing, what is the mean?

This is a public practice check. Retries support learning; matching a number does not certify independent proficiency.

Take the investigation further

Choose any extension. These are project prompts for you to carry out; they are not automatically assessed.

School investigation

Audit an invented school activity log and list exclusions.

College investigation

Implement a validator retaining raw rows, reason codes and a clean view.

Workplace investigation

Prepare a dashboard data-quality specification with missingness counts and owners.

6 · Continue

Keep the evidence, choose your next step

Completion records your own decision that you have worked through this investigation. Practice checks and independent project evidence are separate.