Five relationships, a few synthetic messages — only Mia's side counts for her twin.
The Digital Twin
The case of Mia: compute in your browser how her twin depends on who she is talking to.
A digital twin is never the picture of a person alone — it is the picture of a relationship. Here you see it in black and white: the same Mia shows a different mix of the five symbiont roles with each person. The Python code from the book runs straight in your browser; you don't need to install anything.
The workshop
Four cells, one shared memory. What you compute above is still available below — so run them from top to bottom.
For each role a small list of telltale words. (Roles, not labels for people — see Chapter 6.)
signalwords.For each relationship: count the hits per role and convert to per cent. The aggregate is the mean over all relationships.
One bar per relationship, the aggregate below. The first time, matplotlib loads briefly.
Try it out
Change one of Mia's messages in Step 1 — to her mother, say — so that she gives more than she takes. Run Steps 3 and 4 again: how far does the red Leech share drop, and how does the aggregate shift?
Or enter your own (voluntarily shared, anonymised) chats in Step 1. You test two lessons from the book for yourself: the twin depends on the other person, and a good twin is an aggregate — but even the aggregate hides how different a person is from one relationship to the next.