Pick A Number One Through Five With Arduino Logic
If you asked me to pick a number from one through five with no bias, the most defensible answer is: 3. However, humans tend to prefer 3 disproportionately, which makes it a useful example for understanding bias and randomness in STEM contexts.
Why "3" Is Often Chosen
In studies of human random choice, participants asked to pick a number between 1 and 5 select 3 at rates as high as 40-50%, far above the expected 20% if choices were truly uniform. A 2018 behavioral experiment at University College London found that central numbers (like 3 in a 1-5 range) are perceived as more "neutral," leading to predictable bias.
- Central bias: People avoid extremes (1 and 5).
- Perceived randomness: Mid-range numbers "feel" less intentional.
- Cognitive simplicity: 3 is easy to visualize and recall.
- Pattern avoidance: Users avoid repeating common endpoints.
What True Randomness Looks Like
In electronics and robotics, randomness is not guessed-it is generated using random number algorithms or hardware noise sources. For a fair system, each number from 1 to 5 must have an equal probability of $$ \frac{1}{5} = 0.2 $$.
| Number | Expected Probability | Observed Human Bias (%) |
|---|---|---|
| 1 | 20% | 10-15% |
| 2 | 20% | 15-20% |
| 3 | 20% | 40-50% |
| 4 | 20% | 15-20% |
| 5 | 20% | 10-15% |
STEM Application: Generating a Fair Number
To avoid bias in robotics or embedded systems, engineers rely on microcontroller randomness rather than human intuition. For example, Arduino uses pseudo-random number generators seeded with unpredictable inputs.
- Initialize the system using analog noise input (e.g., floating pin).
- Seed the random generator using
randomSeed(). - Generate a number using
random(1,6)to include 1-5. - Map output to actions (e.g., LED patterns or motor behaviors).
This approach ensures each number has equal likelihood, unlike human-generated choices.
Hands-On Classroom Activity
Students can explore bias by combining data collection experiments with simple coding exercises. Ask 30 students to each pick a number from 1-5, then compare results to a programmed random generator.
- Record human selections on a whiteboard.
- Run 100 iterations using Arduino or Python.
- Compare distributions visually.
- Discuss why differences occur.
"Human intuition is not random-it is patterned. Engineering teaches us how to detect and correct those patterns." - STEM Education Lab Report, 2022
Why This Matters in Robotics
In robotics, biased decisions can affect sensor-based decision systems, game AI behavior, or even fairness in simulations. For example, a robot that "randomly" selects paths but favors middle options may fail to explore efficiently, reducing performance in maze-solving tasks.
Expert answers to Pick A Number One Through Five With Arduino Logic queries
Is picking 3 actually random?
No. While 3 is commonly chosen, that predictability makes it biased rather than random.
How do computers generate random numbers?
Computers use pseudo-random algorithms seeded with unpredictable inputs such as electrical noise or timing variations.
Why do humans avoid 1 and 5?
Humans tend to avoid extremes due to cognitive bias, preferring values perceived as neutral or balanced.
Can students test randomness at home?
Yes. They can compare human choices with outputs from simple programs using Arduino, Python, or online random generators.
What is the best number to pick in a game?
If other players are human, avoid 3 because it is overused; choosing less common numbers like 1 or 5 can be strategically advantageous.