Sub topic 1
What Analogical Thinking Is and Why It Works
Prerequisites
This chapter assumes you have solved problems in some field, such as engineering, writing, teaching, or operations. You should be able to describe a problem in plain language. The two short Python examples are optional. Reading them requires only knowing what a list, a dictionary, and a function are.
What an analogy is
An analogy is a claim that two situations share a pattern of relationships, even though the things in them are different. Analogical thinking is the practice of using that claim to solve a problem. You find a similar problem that has already been solved, usually in another field, and carry its solution over.
Two terms appear throughout this tutorial:
- The source is the familiar situation you borrow from.
- The target is the problem you want to solve.
A common example is the atom. Early models described electrons as orbiting a nucleus the way planets orbit a sun. The planets are not the atom, and the sun is not the nucleus. What is shared is a relation: a small object is held in a path around a large central object by an attraction. If you know how orbits behave, you can ask whether electrons behave similarly.
An analogy is not a proof. It produces candidate ideas, which are guesses worth testing. The rest of this chapter explains why those guesses are often good, and why they are sometimes wrong.
Why it works
Problems repeat their structure
Many problems have the same underlying structure in different fields. Queues form in supermarkets, in network routers, and in hospital waiting rooms. Feedback loops appear in thermostats, in pricing, and in learning. Fields develop solutions independently, and a solution for one structure often applies to every field that has that structure.
Experts already store knowledge as structure
Research on expertise suggests that experienced people organize what they know around principles, not surface details. A novice sorts physics problems by what they show, such as ramps or pulleys. An expert sorts them by the law that solves them. Analogical thinking uses this ability on purpose. It asks you to describe a problem by its structure so that a match in another field becomes visible.
A mapping turns old knowledge into new questions
The core move is a mapping. A mapping pairs entities in the source with entities in the target. Relations then carry across with the entities. If the source says "A attracts B" and A maps to X and B maps to Y, the analogy suggests "X attracts Y". That suggestion is a question to check, not a fact.
The following code shows the mechanism with the atom example. It is a small model, not a reasoning engine. It only rewrites relations through a mapping.
# Source domain: planets orbiting a sun (relations among entities)
source_relations = [
("attracts", "sun", "planet"),
("more_massive_than", "sun", "planet"),
("orbits", "planet", "sun"),
]
# Mapping between entities of the source and the target (the atom)
mapping = {"sun": "nucleus", "planet": "electron"}
def transfer(relations, entity_map):
"""Rewrite each source relation in terms of target entities."""
return [(rel, entity_map[a], entity_map[b]) for rel, a, b in relations]
candidates = transfer(source_relations, mapping)
for rel in candidates:
print(rel)
# ('attracts', 'nucleus', 'electron')
# ('more_massive_than', 'nucleus', 'electron')
# ('orbits', 'electron', 'nucleus')The output contains three candidate claims about the atom. The first two hold up reasonably well. The third is only partly right, because the planetary picture of electron orbits was later replaced by a quantum model. The code cannot tell you which candidates survive. Evidence does that.
Surface similarity versus structural similarity
Two things can look alike in two different ways.
- Surface similarity means shared appearance: the same objects, words, or setting. A bank "branch" and a tree "branch" share a word and nothing else useful.
- Structural similarity means shared relationships: the same roles, constraints, and cause-and-effect links.
People tend to recall sources by surface similarity, because surface features are easy to notice. Useful analogies depend on structure. A river delta and a company's sales network look nothing alike, but both are systems that split a flow into many branches. A solution for one can inform the other.
The table shows the difference.
| Pair | Surface match | Structural match | Useful for borrowing? |
|---|---|---|---|
| A bank branch and a tree branch | Yes (the word) | No | No |
| A hospital waiting room and a network router | No | Yes (arrivals, a limited server, a queue) | Yes |
| Two web shops selling shoes | Yes | Partly (depends on the problem) | Sometimes |
Much of the skill in this tutorial is learning to ignore the first column and read the second.
How a borrowed solution moves
Analogical thinking follows a rough sequence. Later chapters treat each step in detail. This chapter gives the overview.
The feedback arrow matters. A failed test is information. It tells you which relation in the mapping was wrong, and you can revise the mapping or choose a different source.
A worked example: slow cooling and search
Metallurgists make strong metal by heating it and then cooling it slowly. Hot atoms move freely. Slow cooling lets them settle into a low-energy, orderly arrangement. Fast cooling traps them in a worse arrangement.
Now take a target problem: finding a good solution in a search where a greedy method gets stuck in a poor local answer. The mapping looks like this:
| Source (metal) | Target (search) |
|---|---|
| Arrangement of atoms | A candidate solution |
| Energy of the arrangement | Cost of the solution |
| Temperature | Willingness to accept worse moves |
| Slow cooling | Gradually reducing that willingness |
The structural relation is this: allowing some disorder early helps you escape bad arrangements, and removing it gradually lets the system settle. Transferred to search, it becomes the following procedure.
import math
import random
def anneal(cost, neighbor, x, temp=1.0, cooling=0.995, steps=5000):
"""Minimize cost(x), borrowing the idea of slow cooling from metallurgy."""
best = x
for _ in range(steps):
candidate = neighbor(x)
delta = cost(candidate) - cost(x)
# Always accept improvements; accept worse moves with a probability
# that shrinks as the temperature falls.
if delta <= 0 or random.random() < math.exp(-delta / temp):
x = candidate
if cost(x) < cost(best):
best = x
temp *= cooling
return best
result = anneal(
cost=lambda x: (x - 3) ** 2,
neighbor=lambda x: x + random.uniform(-0.5, 0.5),
x=0.0,
)
print(round(result, 2)) # close to 3.0The loop has the same shape as the source story. The variable temp plays the role of temperature. The test random.random() < math.exp(-delta / temp) accepts worse moves more often when temp is high. The line temp *= cooling is the slow cooling. Because the result depends on random choices, the printed value will vary slightly between runs, but it should be close to 3.0.
Notice what was borrowed and what was not. The idea of controlled willingness to accept worse states came from physics. The details, such as the neighbor function and the cost function, had to be written for the target. Adapting a borrowed solution to the target's own constraints is a separate step, and a later chapter covers it.
Where analogies fail
An analogy works only as far as the mapped relations hold in the target. Common failure modes appear even at this early stage.
- Surface bias. You pick a source because it looks like the target, not because the relations match.
- Over-extension. The analogy holds for two or three relations, and you assume it holds for all of them. The planetary atom correctly suggested attraction and failed on other points.
- Hidden assumptions. The source solution depends on something that the target lacks. Slow cooling needs many cheap steps. If each step in your target costs a week, annealing may be impractical.
- Treating a candidate as a conclusion. The mapping gives a guess. Skipping the test turns a guess into an error.
Why this skill is worth practicing
Analogical thinking widens the pool of solutions you can draw on. It reduces the chance that you reinvent something that another field solved decades ago. It also gives you a disciplined way to explain a new problem to others: you name the source, show the mapping, and say which relations you expect to hold. Others can then challenge the specific mapping instead of arguing about whether the comparison "feels right."
The next chapters build the skills that make this reliable: telling surface from structure, building the mapping, restating a problem abstractly, finding sources, and testing the result.
Summary of key ideas
- An analogy shares a pattern of relationships, not appearance.
- The source is what you borrow from. The target is the problem you want to solve.
- A mapping pairs entities, and relations transfer through it as candidate claims.
- Structural similarity is useful. Surface similarity often misleads.
- Every transferred claim needs a test, and failed tests tell you how to repair the mapping.
Exercise
A team wants to reduce crowding at a theme park entrance. Someone suggests borrowing from airport security lanes, which split travelers into fast and slow lines. Another person suggests borrowing from a rollercoaster, because "it's also at a theme park." Which source is better by the standard of this chapter, and why? Name one relation you would check before using the airport idea.
Show answer
The airport lanes are the better source because they share structure with the target: a stream of arrivals, a limited-capacity checkpoint, and a queue. The rollercoaster shares only surface similarity (the same setting). Before using the airport idea, check whether visitors can be sorted into fast and slow groups at the entrance in advance, for example by whether they already hold tickets, since the source solution depends on that relation.
Exercise
Using the atom example, write one relation from the source that transfers well to the target and one that breaks or only partly holds. Say how you would find out which is which.
Show answer
"The nucleus attracts the electron" transfers well, since the nucleus and electron attract each other. "The electron follows a fixed orbit around the nucleus" only partly holds, because later quantum models describe electrons as probability distributions and not as paths. You would find out by comparing each transferred claim against experimental evidence about atoms, not by relying on the mapping alone.