Score Aggregation Explorer¶
Run the Score Aggregation Explorer MicroSim Fullscreen
About This MicroSim¶
A scan runs about eight checks. Each one ends as passed, failed or not checked. This MicroSim turns the same eight results into a score with two rules.
- Rule A (neutral 50): passed counts 100, failed counts 0, not checked counts 50. The score is the average over all 8 checks.
- Rule B (drop the unknowns): the score is the average over the checks that ran. If no check ran, the score is 100.
A Rule B score is a false all-clear when it is 90 or more and three or more checks did not run. The coverage line shows how many of the 8 checks ran.
The check names, the two rules and the five scenarios are illustrative; they are not the running example's exact formula.
How to Use¶
- Look at the eight tiles for the scenario.
- Decide whether Rule B's score will be a False all-clear or Supported, and press that button.
- Press Reveal to see both scores, the coverage line and the reason.
- Press Next scenario and repeat for all five.
- After scenario 5, press Open sandbox. Click any tile to cycle it through passed, failed and not checked, and watch both scores change.
- Hover over the tiles, the score panels and the coverage line to read more.
Iframe Embed Code¶
You can add this MicroSim to any web page by adding this to your HTML:
<iframe src="https://arunbatchu.github.io/good-enough-engineering/sims/score-aggregation-explorer/main.html"
height="584px"
width="100%"
scrolling="no"></iframe>
Lesson Plan¶
Learning Objective¶
Compare the scores that two aggregation rules give for the same eight check results, and identify the scenarios where the rule that averages only the checks that ran produces a false all-clear.
Grade Level¶
Adult professional (Good Enough Engineering)
Duration¶
10-15 minutes
Prerequisites¶
Three-state check result, the no false all-clear rule, parallel checks and score aggregation.
Activities¶
- Predict (5 min): Work through the five scenarios, marking each before you reveal it.
- Explore (5 min): In the sandbox, find the fewest passed checks that still make Rule B say 100.
- Discuss (5 min): Why does Rule A score 56 when one check passed and seven did not run? What should a member hear in that case?
Assessment¶
Mastery is 5 of 5 scenarios marked correctly before reveal. Changing tiles in the sandbox is exploration, not evidence.
References¶
- Chapter 9: Working With Outside Services - the sections on the no false all-clear rule and score aggregation.
- Promise.allSettled() - MDN Web Docs.
- p5.js reference - p5.js documentation.