Episode 14
The Favourite Lantern
Duck and Robot tabulate and total the votes in a frequency table to determine the winner at a lantern contest.


















Episode transcript
A crown for a lantern
Duck is holding up a piece of paper crown over 3 lantern designs in the monitor. Robot is holding an empty results board outside the monitor.
Diagram values: STAR; MOON; SUN
Duck: I need to announce a winner of my lantern contest. I've buffed this crown twice.
Robot points at the 5 individual vote tokens in the monitor, in this order: star, moon, star, moon, sun. Duck looks them over. He holds his crown under one wing.
Diagram values: STAR MOON STAR MOON SUN
Robot: Everybody had just 1 vote token.
Inside the monitor: Duck attempts to move the crown to the first star token. Four other tokens are still visible.
Duck: The star's already in place. Shall I put a crown on it?
Robot carefully raises a pincer to prevent the premature coronation. The five vote tokens stay in place and the results board is still blank.
Diagram values: STAR MOON STAR MOON SUN
Robot: What lantern was most voted on?
Count every vote
All counters are at zero. Duck places the crown on a shelf in the monitor.
Diagram values: STAR 0; MOON 0; SUN 0
Robot: Remember to start all counters at zero.
Duck moves first star and first moon tokens to a counted tray in the monitor. There are 3 tokens not in the counted tray.
Diagram values: STAR 1; MOON 1; SUN 0
Duck: My crown is still open for grabs.
The row for star becomes 2 from 1. The row for moon remains 1. The row for sun remains 0.
Diagram values: STAR 2; MOON 1; SUN 0
Robot: Two stars down!
Duck moves fourth token, the moon, to the counted tray. Two on star. Two on moon. Last sun token stays alone.
Diagram values: STAR 2; MOON 2; SUN 0
Duck: The moon gets two votes. The star gets two votes.
Duck moves last sun token over to counted tray.
Diagram values: STAR 2; MOON 2; SUN 1; 2 + 2 + 1 = 5
Robot: I've done a complete count. The final sun count is 1.
Two winners
Duck wishes for star to win.
Diagram values: STAR 2; MOON 2; SUN 1
Duck: Both of them end at 2. Is the star the winner because I like points?
Duck has the single crown in between the two top lanterns.
Diagram values: STAR 2; MOON 2; SUN 1; MODES: STAR, MOON
Robot: Star and moon both have two. So, both are modes.
Duck attempts to hold the crown made of paper between the star and moon lanterns without ripping it in a tight reaction shot. Robot's amber eyes gaze after the wobbly crown.
Duck: Two winning designs! I came in with one crown.
Robot pulls out a completed count board and an empty rule card. The count board is still showing star two, moon two, sun one. Duck neatly returns the crown back to its shelf.
Diagram values: STAR 2; MOON 2; SUN 1
Robot: The vote results are a draw. There needs to be a separate rule for picking one winner out of a draw.
One more vote
Duck has a new sun token in the monitor. The previous 5 tokens are counted. The new sun token is not yet counted.
Diagram values: STAR 2; MOON 2; SUN 1; NEW: SUN
Duck: What are the leading designs after that vote?
Duck moves new sun token in the counted tray. Robot changes sun count from 1 to 2. You can see all 6 tokens.
Diagram values: STAR 2; MOON 2; SUN 2
Robot: 1 becomes 2.
Duck sees the three lanterns and his one paper crown.
Diagram values: MODES: STAR, MOON, SUN
Duck: Three designs have the same top count. I should have shined three crowns.
Duck puts all three lanterns on appropriate platform inside.
Robot: We could share the stage...
Robot is laughing outside of monitor, wearing mustard scarf.
Diagram values: STAR 2; MOON 2; SUN 2
Duck: I'm wearing the crown myself. Let the lanterns share the stage.
The lesson
A frequency table records how often a given value appears. The most frequent value is the mode. If there are multiple values that are the most frequent then all of them are modes. So star and moon are both modes. You know there is a tie because of counting, but if you want a contest winner to be picked you'd need a tie-break rule.
Try it
Go back to your original score: 2 stars, 2 moons, 1 sun. Instead of the sun vote as in the comic, let's add another moon vote. What design has the most votes now?
Answer
Diagram values: STAR 2; MOON 3; SUN 1; 2+3+1=6
Moon is the only mode since 3 is the most. There are 6 votes total.